Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Getting error : Failed to execute goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.20.0:publish-products

Hello,

 

I have recently migrated my RCP project to Eclipse Kepler and Java 8.

 

Earlier I was using Eclipse Indigo, Maven (3.0.4) and  Tycho (0.11.0) to export my product and plugins, which was working perfectly fine.

 

To upgrade my project to Eclipse Kepler/Java 8, I downloaded the latest Tycho version 0.20.0 and latest Maven (3.2.2), and generated the pom files again.

 

I am getting this error when I run the “mvn clean verify” command:

 

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.20.0:publish-products (default-publish-products) on project XXXXXXXXXXX: Execution default-publish-products of goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.20.0:publish-products failed: Tycho build extension not configured for MavenProject: XXXXXXXXXXX:1.0.0-SNAPSHOT @ C: :\MyHome\XXXXXXXXXXX \pom.xml -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.20.0:publish-products (default-publish-products) on project XXXXXXXXXXX Execution default-publish-products of goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.20.0:publish-products failed: Tycho build extension not configured for MavenProject: XXXXXXXXXXX:1.0.0-SNAPSHOT @ C:\MyHome\ XXXXXXXXXXX \pom.xml

            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)

            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:120)

            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)

            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)

            at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)

            at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)

            at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)

            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:483)

            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.PluginExecutionException: Execution default-publish-products of goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.20.0:publish-products failed: Tycho build extension not configured for MavenProject: XXXXXXXXXXX:1.0.0-SNAPSHOT @ C:\MyHome\ XXXXXXXXXXX \pom.xml

            at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)

            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)

            ... 19 more

Caused by: java.lang.IllegalStateException: Tycho build extension not configured for MavenProject: XXXXXXXXXXX:1.0.0-SNAPSHOT @ C:\MyHome\ XXXXXXXXXXX \pom.xml

            at org.eclipse.tycho.core.utils.TychoProjectUtils.getTargetPlatform(TychoProjectUtils.java:67)

            at org.eclipse.tycho.p2.facade.RepositoryReferenceTool.addTargetPlatformRepository(RepositoryReferenceTool.java:116)

            at org.eclipse.tycho.p2.facade.RepositoryReferenceTool.getVisibleRepositories(RepositoryReferenceTool.java:97)

            at org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo.createPublisherService(AbstractPublishMojo.java:51)

            at org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo.execute(AbstractPublishMojo.java:35)

            at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)

            ... 20 more

[ERROR]

 

 

All the rest of the plugins are exported properly, but this error is occurring for the project which has the .product file ( eclipse-repository).

 

Attached are the pom files for my master project and the RCP product project.

 

Any help on what could be missing here will be highly appreciated.

 

Thanks & Regards,

Ekta

 

 

Attachment: pom-master.xml
Description: pom-master.xml

Attachment: pom-product.xml
Description: pom-product.xml

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user

Back to the top