Maven 2.0.9 adds the correct order, so you absolutely need this version or higher to work below.
Secondly, you need an updated plugin. The guys from Maven are working on a fix, fix it in their jail, but this is what I urgently need. So for now, I fixed it myself, and you can pull the Modified Plugin source code from github.
Edit: see http://jira.codehaus.org/browse/MECLIPSE-388
There are two ways to install it: either pull my modified code, or install it, or load a pre-assembled jar and just add it.
Build plugin
Run maven install from the plugin drop-down directory and add the following to your plugins section of your pom projects:
<build> </plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.8-cpfix</version> </plugin> </plugins> </build>
Download the jar
Alternatively, if you do not want to download and compile yourself, you can simply get the jar file and install it yourself.
After starting the file
mvn install:install-file -Dfile=<path-to-file> -DgroupId=org.apache.maven.plugins \ -DartifactId=maven-eclipse-plugin -Dversion=2.8-cpfix -Dpackaging=jar
Regardless of how you installed it now, when you run mvn eclipse:eclipse , it will pick up the modified code and order the dependencies based on the order you specified in the pom file, without alphabetical order. It also places the JRE container at the top of the dependencies.
I hope the real version of this code comes out soon, but at the same time, this fix worked for me in my project, and I hope it can help others.
Paul Keeble Jul 17 '10 at 17:06 2010-07-17 17:06
source share