[ 
http://jira.codehaus.org/browse/MNG-4511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Bentmann closed MNG-4511.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0-alpha-6
         Assignee: Benjamin Bentmann

Fixed in [r895035|http://svn.apache.org/viewvc?view=revision&revision=895035].

> API incompatibility in MavenProjectBuilder (Maven-3)
> ----------------------------------------------------
>
>                 Key: MNG-4511
>                 URL: http://jira.codehaus.org/browse/MNG-4511
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 3.0-alpha-5
>         Environment: OSX, commandline, HEAD revision from SVN
>            Reporter: Nigel Magnay
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-alpha-6
>
>
> I have a plugin which bombs out (using a fresh baked M3 from SVN):
> [ERROR] Failed to execute goal 
> org.codehaus.cargo:cargo-maven2-plugin:1.1-DEV-SNAPSHOT:uberwar 
> (default-uberwar) on project realtime-application: Execution default-uberwar 
> of goal org.codehaus.cargo:cargo-maven2-plugin:1.1-DEV-SNAPSHOT:uberwar 
> failed: An API incompatibility was encountered while executing 
> org.codehaus.cargo:cargo-maven2-plugin:1.1-DEV-SNAPSHOT:uberwar: 
> java.lang.NoSuchMethodError: 
> org.apache.maven.project.MavenProjectBuilder.buildWithDependencies(Ljava/io/File;Lorg/apache/maven/artifact/repository/ArtifactRepository;Lorg/apache/maven/profiles/ProfileManager;)Lorg/apache/maven/project/MavenProject;
> I believe the MOJO is using 
> /**
>      * @component
>      */
>     private MavenProjectBuilder mavenProjectBuilder;
> ...
>        MavenProject mavenProject2 = mavenProjectBuilder.buildWithDependencies(
>                 art2.getFile(), localRepository, profileManager);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to