Giovanni van der Schelde created ARCHETYPE-674:
--------------------------------------------------
Summary: Generating a partial archetype has an API incompatibility
with Maven 4
Key: ARCHETYPE-674
URL: https://issues.apache.org/jira/browse/ARCHETYPE-674
Project: Maven Archetype
Issue Type: Bug
Affects Versions: 3.2.1
Reporter: Giovanni van der Schelde
Attachments: demo-issue.zip
With Maven 4, when you install a partial archetype and want to run mvn
archetype:generate on an existing project the generation fails with the
following error:
{code:java}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate (default-cli) on
project demo: Execution default-cli of goal
org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate failed: An API
incompatibility was encountered while executing
org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate:
java.lang.NoSuchMethodError: 'java.lang.Object
org.apache.maven.model.Plugin.getGoals()' {code}
It also completely removes the content of the pom.xml of the existing project.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)