I've started to try out Maven 4 and have run into an issue with Maven
4.0.0-rc-2 and maven-install-plugin 4.0.0-beta-1. Are they supposed to be
compatible or is it expected?

[*ERROR*] Failed to execute goal
org.apache.maven.plugins:maven-install-plugin:4.0.0-beta-1:install
*(default-install)* on project bom-test-parent: *Execution default-install
of goal org.apache.maven.plugins:maven-install-plugin:4.0.0-beta-1:install
failed: An API incompatibility was encountered while executing
org.apache.maven.plugins:maven-install-plugin:4.0.0-beta-1:install:
java.lang.NoSuchMethodError: 'org.apache.maven.api.Artifact
org.apache.maven.api.Project.getPomArtifact()'*

[*ERROR*] *-----------------------------------------------------*

[*ERROR*] *realm =
plugin>org.apache.maven.plugins:maven-install-plugin:4.0.0-beta-1*

[*ERROR*] *strategy =
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy*

[*ERROR*] *urls[0] =
file:/Users/anders/.m2/repository/org/apache/maven/plugins/maven-install-plugin/4.0.0-beta-1/maven-install-plugin-4.0.0-beta-1.jar*

[*ERROR*] *urls[1] =
file:/Users/anders/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/4.0.0-beta-1/maven-plugin-annotations-4.0.0-beta-1.jar*

[*ERROR*] *Number of foreign imports: 1*

[*ERROR*] *import: Entry[import  from realm ClassRealm[maven.api.v4,
parent: null]]*

/Anders

Reply via email to