Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to undo Mark goal run as ignored in Eclipse build in Eclipse preferences?

Tags:

eclipse

maven

m2e

I mistakenly clicked the "Mark goal run as ignored in Eclipse build in Eclipse preferences (experimental)":

enter image description here

Where/How do I undo this?

like image 343
Withheld Avatar asked Dec 14 '12 20:12

Withheld


1 Answers

m2e uses a file YOUR_WORKSPACE/.metadata/.plugins/org2.eclipse.m2e.core/lifecycle-mapping-metadata.xml to store the global lifecycle mappings.

You could manually open this file and remove the corresponding entries. After that you should reload the global lifecycle mappings using the 'reload workspace lifecycle mappings metadata' in window > preferences > maven > lifecycle mappings. But you could also edit the file while Eclipse isn't running. In this case you don't have to reload anything.

If you have only added one ignore then you can delete the file completely (maybe make a backup somewhere just to be safe). If you want to remove one but leave the others then take everything between <pluginExecution> and </pluginExecution> for your choice.

I hope this helps a bit. :)

like image 186
chkal Avatar answered Oct 21 '22 00:10

chkal