Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Maven 2.0.9 adds correct ordering so you absolutely must have that version or higher for the below to work.</p> <p>Secondly you need the an updated plugin. The Maven guys are working on a fix, its in their jira to fix but this is something I urgently needed. So in the meantime I have fixed this myself and you can pull the <a href="http://github.com/PaulKeeble/maven-eclipse-plugin/tree/classpath_sorting_fix" rel="nofollow noreferrer">Modified plugin source code</a> from github.</p> <p>Edit: Refer to <a href="http://jira.codehaus.org/browse/MECLIPSE-388" rel="nofollow noreferrer">http://jira.codehaus.org/browse/MECLIPSE-388</a></p> <p>There are two ways to install it, either pull my modified code and install it or download the prebuilt jar and just add it.</p> <h2>Building the plugin</h2> <p>Run <code>maven install</code> from the plugin directory you checked out and then add the following in your plugins section of your projects pom:</p> <pre><code>&lt;build&gt; &lt;/plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt; &lt;version&gt;2.8-cpfix&lt;/version&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; </code></pre> <h2>Download the jar</h2> <p>Alternatively if you don't want to download and compile yourself then you can just get hold of the <a href="http://github.com/downloads/PaulKeeble/maven-eclipse-plugin/maven-eclipse-plugin-2.8-cpfix.jar" rel="nofollow noreferrer">jar file</a> and install it yourself.</p> <p>Once you have the file run </p> <pre><code>mvn install:install-file -Dfile=&lt;path-to-file&gt; -DgroupId=org.apache.maven.plugins \ -DartifactId=maven-eclipse-plugin -Dversion=2.8-cpfix -Dpackaging=jar </code></pre> <p>Regardless of how you installed it now when you run <code>mvn eclipse:eclipse</code> it will pick up the modified code and order the dependencies based on the order you defined in your pom file, no alphabetical ordering. It will also put the JRE container at the top of the dependencies.</p> <p>Hopefully the real version of this code will come out soon, but in the meantime this fix has worked for me on my project and I hope it can help some others as well.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload