[ 
https://issues.apache.org/jira/browse/ARCHETYPE-674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17905892#comment-17905892
 ] 

Yu Yu commented on ARCHETYPE-674:
---------------------------------

Should we consider the compatibility mode of archetype with Maven 4.0? After 
updating the dependency of maven to 4.0.0-rc-1, I noticed many similar issues.
 
 

> 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
>            Priority: Major
>         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)

Reply via email to