[ 
https://jira.codehaus.org/browse/MNG-5545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=337019#comment-337019
 ] 

Sascha Vujevic edited comment on MNG-5545 at 12/10/13 5:26 AM:
---------------------------------------------------------------

Thank you for the hint.

My question is : how can I make my mojo compatible with both 3.0.x and
3.1.x and why can't find my mojo org.sonatype.aether which is in the plugin.xml 
?

It looks like it uses the org.eclipse.aether from maven 3.1.x whithout looking 
in my plugin.xml.

Thank you very much in advance !
Sascha
                
      was (Author: george-stark):
    Thank you for the hint.

My question is : how can I make my mojo compatible with both 3.0.x and
3.1.x ?

Thank you very much in advance !
Sascha
                  
> NoClassDefFoundError: 
> org/sonatype/aether/resolution/ArtifactResolutionException
> --------------------------------------------------------------------------------
>
>                 Key: MNG-5545
>                 URL: https://jira.codehaus.org/browse/MNG-5545
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Dependencies, Plugin API, POM
>    Affects Versions: 3.1.0
>         Environment: Windows XP
>            Reporter: Sascha Vujevic
>         Attachments: build.log, examplemojo.zip, mojocaller.zip
>
>
> Hello maven-developers,
> i hope this is the right tracker.
> I am implementing a mojo which uses classes from org.sonatype.aether.
> With maven 3.0.x the build succeeds, with maven 3.1.0 it breaks with error 
> shown in the log-file.
> My question is, why the maven-build uses the org.eclipse.aether (still 
> milestone) from the maven-installation (where org.sonatype.aether is not 
> included) instead of useing it from the pluging.xml.
> The parameter @requiresDependencyResolution runtime seems not to work.
> I have attached the log-file and 2 projects, examplemojo is the mojo and 
> mojocaller is the caller.
> Just install examplemojo and call "mvn call package on" mojocaller.
> Thank you for your help.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to