[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Failed to execute goal "publish-products"
|
eclipse-application is deprecated [1], and the build log should have told you so.
I guess your best bet is to take the working example
http://git.eclipse.org/c/tycho/org.eclipse.tycho-demo.git/tree/itp04-rcp
and go step by step from there.
Regards,
Jan
[1] http://wiki.eclipse.org/Tycho_Messages_Explained#.5BWARNING.5D_The_packaging_type_.27eclipse-application.27_is_deprecated.3B_use_.27eclipse-repository.27_instead.
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Maherzia BELAAZI
Sent: Dienstag, 8. Oktober 2013 11:50
To: Tycho user list
Subject: Re: [tycho-user] Failed to execute goal "publish-products"
Thanks a lot Mikhail for your answer.
The full error message is:
-----------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.18.1:publish-products (default-publish-products) on project com.st.stworkbench.platform: Execution default-publish-products of goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.18.1:publish-products failed: Tycho build extension not configured for MavenProject: com.st:com.st.stworkbench.platform:0.0.1-SNAPSHOT @ /prj/cpt_idtec/dev/belaazim/demo-tycho/STWorkbench-build/com.st.stworkbench.platform/pom.xml -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.18.1:publish-products (default-publish-products) on project com.st.stworkbench.platform: Execution default-publish-products of goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.18.1:publish-products failed: Tycho build extension not configured for MavenProject: com.st:com.st.stworkbench.platform:0.0.1-SNAPSHOT @ /prj/cpt_idtec/dev/belaazim/demo-tycho/STWorkbench-build/com.st.stworkbench.platform/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: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:318)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:414)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-publish-products of goal org.eclipse.tycho:tycho-p2-publisher-plugin:0.18.1:publish-products failed: Tycho build extension not configured for MavenProject: com.st:com.st.stworkbench.platform:0.0.1-SNAPSHOT @ /prj/cpt_idtec/dev/belaazim/demo-tycho/STWorkbench-build/com.st.stworkbench.platform/pom.xml
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:115)
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: com.st:com.st.stworkbench.platform:0.0.1-SNAPSHOT @ /prj/cpt_idtec/dev/belaazim/demo-tycho/STWorkbench-build/com.st.stworkbench.platform/pom.xml
at org.eclipse.tycho.core.utils.TychoProjectUtils.getTargetPlatform(TychoProjectUtils.java:63)
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:53)
at org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo.execute(AbstractPublishMojo.java:37)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
Just for information, before testing “eclipse-repository” packaging type I tried to build my product using “eclipse-application” packaging : the build success but I don’t got the product I wish (there was no executable, or dropins or about_files folders … :just features plugins folders and the .eclipseproduct file)
So two questions :
1. how to use “eclipse-repository” packaging type to success in building my product ?
2. how to configure “eclipse-application” or “eclipse-repository” packaging types to customize my final product ?
Thanks for your help.
Maherzia
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Mikhail Kalkov
Sent: dimanche 6 octobre 2013 10:25
To: Tycho user list
Subject: Re: [tycho-user] Failed to execute goal "publish-products"
Hi Maherzia,
The error message just says that Tycho was unable to create p2 IU for your product and root files and to add them to the resulting repository. Maybe, there is a problem with your .product, maybe there is a problem with your root files (executables), maybe something else. You should read the log more carefully to find out the reason. There must have been a more descriptive message before the one you gave to us.
Kind regards,
Mikhail Kalkov
Purple Scout AB
Software Developer
Address: Kyrkogatan 20-22, SE-41110 Gothenburg, Sweden
Phone: +46 (0) 732 - 051405
E-mail: mikhail.kalkov@xxxxxxxxxxxxxx
Web: www.purplescout.se
________________________________________
Från: "Maherzia BELAAZI" <maherzia.belaazi@xxxxxx>
Till: tycho-user@xxxxxxxxxxx
Skickat: fredag, 4 okt 2013 18:13:16
Ämne: [tycho-user] Failed to execute goal "publish-products"
Hello,
I’m using tycho to build an eclipse product.
I get this error while proceeding with “eclipse-repository” packaging type.
“Failed to execute goal org.eclipse.tycho:tycho-p2-publisher-plugin:018.1:publish-products (default-publish-products)”
I don’t understand the cause of this error. Below you find the “pom.xml” I used for my product.
Any help is so welcome !
Thanks in advance,
Maherzia
This is the pom.xml of my product.
###########################
<artifactId>com.st.stworkbench.platform</artifactId>
<packaging>eclipse-repository</packaging>
<properties>
<tycho-version>0.18.1</tycho-version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-publisher-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<publishArtifacts>true</publishArtifacts>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
<createArtifactRepository>true</createArtifactRepository>
<compress>true</compress>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
</execution>
<execution>
<id>archive-products</id>
<goals>
<goal>archive-products</goal>
</goals>
</execution>
</executions>
<!-- (optional) customize the root folder name of the product zip -->
<configuration>
<products>
<product>
<!-- This id needs to match your id in your .product file -->
<id>com.st.stworkbench.platform.product</id>
<rootFolder>STWorkbench</rootFolder>
</product>
</products>
</configuration>
</plugin>
</plugins>
</build>
###########################
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user