You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sven Rottstock (JIRA)" <ji...@apache.org> on 2016/06/22 14:16:58 UTC
[jira] [Comment Edited] (ARCHETYPE-488) Goal integration-test of
maven-archetype-plugin fails with 'Cannot run additions goals." in version
3.3.1
[ https://issues.apache.org/jira/browse/ARCHETYPE-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15344363#comment-15344363 ]
Sven Rottstock edited comment on ARCHETYPE-488 at 6/22/16 2:16 PM:
-------------------------------------------------------------------
[~reaal]: The upgrade of {{org.apache.maven.shared:maven-invoker}} is working for me if I add it as a dependency of maven-archetype-plugin - not as a separate plugin definition. So the _pom.xml_ should look as follows:
{code:xml}
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>2.4</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-invoker</artifactId>
<version>2.2</version>
</dependency>
</dependencies>
</plugin>
{code}
was (Author: rottstock):
The upgrade of {{org.apache.maven.shared:maven-invoker}} is working for me if I add it as a dependency of maven-archetype-plugin - not as a separate plugin definition. So the _pom.xml_ should look as follows:
{code:xml}
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<version>2.4</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-invoker</artifactId>
<version>2.2</version>
</dependency>
</dependencies>
</plugin>
{code}
> Goal integration-test of maven-archetype-plugin fails with 'Cannot run additions goals." in version 3.3.1
> ---------------------------------------------------------------------------------------------------------
>
> Key: ARCHETYPE-488
> URL: https://issues.apache.org/jira/browse/ARCHETYPE-488
> Project: Maven Archetype
> Issue Type: Bug
> Components: Plugin
> Affects Versions: 2.4
> Environment: maven-archetype-plugin 2.3
> Reporter: Andreas Horst
> Assignee: Robert Scholte
> Labels: archetype, integration-test
> Fix For: 2.5
>
>
> Running the goal 'integration-test' of the 'maven-archetype-plugin' fails with the following output:
> {noformat}
> [INFO] Invoking post-archetype-generation goals: verify
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.048 s
> [INFO] Finished at: 2015-04-23T18:17:07+02:00
> [INFO] Final Memory: 18M/309M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:integration-test (default-integration-test) on project simple-archetype:
> [ERROR] Archetype IT 'it' failed: Cannot run additions goals.
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:integration-test (default-integration-test) on project simple-archetype:
> Archetype IT 'it' failed: Cannot run additions goals.
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.MojoExecutionException:
> Archetype IT 'it' failed: Cannot run additions goals.
> at org.apache.maven.archetype.mojos.IntegrationTestMojo.execute(IntegrationTestMojo.java:258)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> ... 20 more
> [ERROR]
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> {noformat}
> This works fine in earlier versions (tested with Maven 3.2.5 and 3.2.3).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)