Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] javadoc:jar plugin and tycho-p2-plugin:p2-metadata-default goal

I noticed that the javadoc:javadoc goal causes duplicate execution of generate-sources, so I was looking at using javadoc:jar bound to pre-package phase so that generate-sources only runs once and I have an apidocs folder that I can package into my bundle jar. It’s working, and the apidocs is packaged into my bundle jar, but I’m then seeing the tycho-p2-plugin:p2-metadata-default plugin fail with an IllegalArgument exception.. I have the skip configuration option set for the javadoc plugin with a property. If I set that property to true and the javadoc:jar goal isn’t run then mvn completes fine (but I don’t have the javadocs then). I’m trying to setup Eclipse to debug (since that was the list’s response to the last time someone reported this exception from this plugin) but I’m having proxy problems with git.
 
[INFO] --- tycho-p2-plugin:0.17.0.LGC:p2-metadata-default (default-p2-metadata-default) @ com.lgc.dsp-core ---                                               
[DEBUG] Configuring mojo org.eclipse.tycho:tycho-p2-plugin:0.17.0.LGC:p2-metadata-default from plugin realm ClassRealm[plugin>org.eclipse.tycho:tycho-p2-plugin:0.17.0.LGC, parent: sun.misc.Launcher$AppClassLoader@12360be0]                                                                                             
[DEBUG] Configuring mojo 'org.eclipse.tycho:tycho-p2-plugin:0.17.0.LGC:p2-metadata-default' with basic configurator -->                                      
[DEBUG]   (f) attachP2Metadata = true                                                                                                                        
[DEBUG]   (f) baselineReplace = all                                                                                                                          
[DEBUG]   (f) defaultP2Metadata = true                                                                                                                       
[DEBUG]   (f) project = MavenProject: com.lgc.ds:com.lgc.dsp-core:10.0.0-SNAPSHOT @ /d01/sandboxes/hbl4218/DS_5000_10_0_0/plugins/com.lgc.dsp-core/pom.xml   
[DEBUG] -- end configuration --                                                                                                                              
[INFO] ------------------------------------------------------------------------                                                                              
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 56.568s
[INFO] Finished at: Wed May 29 13:59:56 CDT 2013
[INFO] Final Memory: 56M/462M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-plugin:0.17.0.LGC:p2-metadata-default (default-p2-metadata-default) on project com.lgc.dsp-core: Execution default-p2-metadata-default of goal org.eclipse.tycho:tycho-p2-plugin:0.17.0.LGC:p2-metadata-default failed. IllegalArgumentException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-p2-plugin:0.17.0.LGC:p2-metadata-default (default-p2-metadata-default) on project com.lgc.dsp-core: Execution default-p2-metadata-default of goal org.eclipse.tycho:tycho-p2-plugin:0.17.0.LGC:p2-metadata-default failed.
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
        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:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-p2-metadata-default of goal org.eclipse.tycho:tycho-p2-plugin:0.17.0.LGC:p2-metadata-default failed.
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: java.lang.IllegalArgumentException
        at org.eclipse.tycho.p2.impl.publisher.P2GeneratorImpl.getCanonicalArtifact(P2GeneratorImpl.java:144)
        at org.eclipse.tycho.p2.impl.publisher.P2GeneratorImpl.generateMetadata(P2GeneratorImpl.java:107)
        at org.eclipse.tycho.plugins.p2.P2MetadataMojo.attachP2Metadata(P2MetadataMojo.java:143)
        at org.eclipse.tycho.plugins.p2.P2MetadataMojo.execute(P2MetadataMojo.java:104)
        at org.eclipse.tycho.plugins.p2.P2MetadataDefaultMojo.execute(P2MetadataDefaultMojo.java:34)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        ... 20 more
 

This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.

Back to the top