I'm working with maven projects in Eclipse (Indigo).
In order to compile some classes that need endorsed libraries (webservices-api.jar) I go to "Properties/Java Build Path/Order and Export" and move "Maven Dependecies" before "JRE System Library".
The problem is that whenever I click on the "Maven/Update Project configuration" option the entries are rearranged and "JRE System Library" is always the first entry, and the code no longer compiles.
Is there a way to have M2E remember my choice and stop rearranging the libraries?
Thanks in advance
The solution I ended up implementing is having an ant target do a replacement in the .classpath file to swap the classpath containers. I add an ant builder to my project that calls that target and then refresh the project before the java compiler. A little complex, but it works like a charm.