Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Failed to execute goal tycho-p2-plugin:0.16.0:p2-metadata (attached-p2-metadata) - IllegalArgumentException

From the code, I would suspect that there is a fatal error before the point where the build stops, but that error is not properly handled. Check the log for details.

 

If you want to debug the Tycho code, here are instructions how to do it: http://wiki.eclipse.org/Developing_Tycho

 

Regards

Tobias

 

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of a-herbe@xxxxxxxx
Sent: Mittwoch, 9. Januar 2013 16:51
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Failed to execute goal tycho-p2-plugin:0.16.0:p2-metadata (attached-p2-metadata) - IllegalArgumentException

 

Hello,

Today, i've got a new error that i can't fix in a process that work fine before in the same context.

When a run command "mvn -X -e -P${versionType} -Dresume=false release:prepare release:perform" in Jenkins for a Tycho project, i've got :


Failed to execute goal org.eclipse.tycho:tycho-p2-plugin:0.16.0:p2-metadata (attached-p2-metadata) on project com.XXXXX.socle.rcp: Execution attached-p2-metadata of goal org.eclipse.tycho:tycho-p2-plugin:0.16.0:p2-metadata failed. IllegalArgumentException

Others parameters such as "Release Version", next "Development Version", SCM login/password/tag/comment have been set by Jenkins.

Add maven debug option (-X -e) don't show any clues to fix it.

Is there anyone who know where i can start to debug this error ?

You can look at the attachments for the full log (Jenkins) and the effective pom.

[INFO] [ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-plugin:0.16.0:p2-metadata (attached-p2-metadata) on project com.XXXXX.socle.rcp: Execution attached-p2-metadata of goal org.eclipse.tycho:tycho-p2-plugin:0.16.0:p2-metadata failed. IllegalArgumentException -> [Help 1]
[INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-p2-plugin:0.16.0:p2-metadata (attached-p2-metadata) on project com.XXXXX.socle.rcp: Execution attached-p2-metadata of goal org.eclipse.tycho:tycho-p2-plugin:0.16.0:p2-metadata failed.
[INFO]         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
[INFO]         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
[INFO]         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
[INFO]         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
[INFO]         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
[INFO]         at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
[INFO]         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
[INFO]         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
[INFO]         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
[INFO]         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
[INFO]         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
[INFO]         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
[INFO]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO]         at java.lang.reflect.Method.invoke(Method.java:597)
[INFO]         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
[INFO]         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
[INFO]         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
[INFO]         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[INFO] Caused by: org.apache.maven.plugin.PluginExecutionException: Execution attached-p2-metadata of goal org.eclipse.tycho:tycho-p2-plugin:0.16.0:p2-metadata failed.
[INFO]         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
[INFO]         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
[INFO]         ... 19 more
[INFO] Caused by: java.lang.IllegalArgumentException
[INFO]         at org.eclipse.tycho.p2.impl.publisher.P2GeneratorImpl.getCanonicalArtifact(P2GeneratorImpl.java:142)
[INFO]         at org.eclipse.tycho.p2.impl.publisher.P2GeneratorImpl.generateMetadata(P2GeneratorImpl.java:105)
[INFO]         at org.eclipse.tycho.plugins.p2.P2MetadataMojo.attachP2Metadata(P2MetadataMojo.java:143)
[INFO]         at org.eclipse.tycho.plugins.p2.P2MetadataMojo.execute(P2MetadataMojo.java:104)
[INFO]         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
[INFO]         ... 20 more



Regards
Anthony H.


Back to the top