Note that there are some explanatory texts on larger screens.

plurals
  1. POCan a maven mojo relying on Aether be compatible with Maven 3.0.x and 3.1.x?
    primarykey
    data
    text
    <p><a href="http://maven.apache.org/docs/3.1.0/release-notes.html">The 3.1.0 release of Maven</a> relies on Eclipse Aether (org.eclipse.aether) instead of Sonatype Aether (org.sonatype.aether). This seems to break compatibility for plugins relying on Sonatype aether : try running such plugins and you'll run into :</p> <pre><code>java.lang.NoClassDefFoundError: org/sonatype/aether/* Caused by: java.lang.ClassNotFoundException: org.sonatype.aether.* </code></pre> <p>As documented in <a href="https://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound">https://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound</a> </p> <p>Now, <strong>is it possible to make a mojo relying on aether classes</strong> (such as org.sonatype.aether.RepositorySystemSession) <strong>run both with Maven 3.0.x and Maven 3.1.x ?</strong> </p> <p>Or do I have to release two versions of the same plugin, one for 3.0.x and one for 3.1.x ? Putting enforcer rules like this :</p> <pre><code> &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-enforcer-plugin&lt;/artifactId&gt; &lt;version&gt;1.3&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;enforce-maven&lt;/id&gt; &lt;goals&gt; &lt;goal&gt;enforce&lt;/goal&gt; &lt;/goals&gt; &lt;configuration&gt; &lt;rules&gt; &lt;requireMavenVersion&gt; &lt;version&gt;[3.0,3.1)&lt;/version&gt; &lt;/requireMavenVersion&gt; &lt;/rules&gt; &lt;/configuration&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; </code></pre> <p><a href="http://mail-archives.apache.org/mod_mbox/maven-dev/201307.mbox/%3CCAJHJdS80QHndKLbjHznmBr7vywnQF8PxeUn1uFhX_EXAa_HV9g@mail.gmail.com%3E">I already posted the question on Maven developers mailing list</a>, but no answer so far...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
 

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