You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2023/02/15 09:31:00 UTC

[jira] [Updated] (MPLUGINTESTING-59) Documentation for plugin testing uses deprecated mvn archetype:create which not work.

     [ https://issues.apache.org/jira/browse/MPLUGINTESTING-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated MPLUGINTESTING-59:
------------------------------------------
    Fix Version/s: 4.0.0-alpha-1
                       (was: 3.4.0)

> Documentation for plugin testing uses deprecated mvn archetype:create which not work.
> -------------------------------------------------------------------------------------
>
>                 Key: MPLUGINTESTING-59
>                 URL: https://issues.apache.org/jira/browse/MPLUGINTESTING-59
>             Project: Maven Plugin Testing
>          Issue Type: Bug
>            Reporter: Benjamin Herbert
>            Assignee: Sylwester Lachiewicz
>            Priority: Minor
>              Labels: documentation
>             Fix For: 4.0.0-alpha-1
>
>
> The page https://maven.apache.org/plugin-testing/maven-plugin-testing-harness/getting-started/index.html shows an example which leads to an error message.
> The command is:
> mvn archetype:create \
>   -DgroupId=org.apache.maven.plugin.my \
>   -DartifactId=maven-my-plugin \
>   -DarchetypeArtifactId=maven-archetype-mojo
> This leads to the following error message.
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli) on project standalone-pom: Unable to parse configuration of mojo org.apache.maven.plugins:maven-archetype-plugin:2.4:create for parameter #: Cannot create instance of interface org.apache.maven.artifact.repository.ArtifactRepository: org.apache.maven.artifact.repository.ArtifactRepository.<init>() -> [Help 1]
> The documentation states, that the create mojo should be used instead:
> mvn archetype:generate \
>   -DgroupId=org.apache.maven.plugin.my \
>   -DartifactId=maven-my-plugin \
>   -DarchetypeArtifactId=maven-archetype-mojo
> instead.
> If this is true, the documentation should be updated accordingly



--
This message was sent by Atlassian Jira
(v8.20.10#820010)