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
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
|