Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] publish-product errors when using release qualifiers

> In the product file, we'd like to specify the exact version for the
> dependency example-feature: "0.1.0.qualifier" and not just "0.0.0".

This is not an exact version - AFAIK, you cannot expect a "qualifier" in a reference to be replaced. This means that you specify a broken dependency, and with the p2 publisher included in Tycho 0.16.0, this is noticed and reported with the message:

"Included element example-feature.feature.group 0.1.0 is missing. Cannot determine filter for requirement to this element."



> -----Original Message-----
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-
> bounces@xxxxxxxxxxx] On Behalf Of Beat Strasser
> Sent: Mittwoch, 16. Januar 2013 17:47
> To: Tycho-users
> Subject: [tycho-user] publish-product errors when using release qualifiers
> 
> Hi there
> 
> Concerning bug 382482 [Allow auto-qualified OSGi versions in releases],
> we use the following solution for our company projects:
> 
> We keep the ".qualifier" suffix in all manifests/feature.xml and
> products when doing a release. We set strictVersions=false and
> forceContextQualifier=RELEASE when building a release version. See the
> attached patch of the rcp example itp04-rcp.
> 
> In the product file, we'd like to specify the exact version for the
> dependency example-feature: "0.1.0.qualifier" and not just "0.0.0".
> 
> This works perfectly - for Tycho 0.15.0. But with Tycho 0.16.0, there
> are problems when Tycho publishes the product, see the error below.
> 
> Why is this? Am I really forced to use "0.0.0"?
> 
> Regards,
> Beat
> 
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building RCP Example Product 1.0.0
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
> eclipse-repository ---
> [INFO] Deleting
> /home/b8/tmp/tycho-demo/org.eclipse.tycho-demo/itp04-rcp/eclipse-
> repository/target
> [INFO]
> [INFO] --- tycho-packaging-plugin:0.16.0:build-qualifier
> (default-build-qualifier) @ eclipse-repository ---
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
> eclipse-repository ---
> [INFO]
> [INFO] --- tycho-p2-publisher-plugin:0.16.0:publish-products
> (default-publish-products) @ eclipse-repository ---
> [WARNING] The following locally built units have been used to resolve
> project dependencies:
> [WARNING]   example-feature-2.feature.jar/0.2.0.RELEASE
> [WARNING]   example-feature.feature.jar/0.1.0.RELEASE
> [WARNING]   example-feature_root.win32.win32.x86/0.1.0.RELEASE
> [WARNING]   example-feature_root.gtk.linux.x86/0.1.0.RELEASE
> [WARNING]   example-bundle/0.1.0.RELEASE
> [WARNING]   example-feature-2.feature.group/0.2.0.RELEASE
> [WARNING]   example-feature.feature.group/0.1.0.RELEASE
> [WARNING]   example-feature_root/0.1.0.RELEASE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] RCP Parent ........................................ SUCCESS
> [0.144s]
> [INFO] RCP Example Bundle (Product Application) .......... SUCCESS
> [1.105s]
> [INFO] RCP Example Feature ............................... SUCCESS
> [0.547s]
> [INFO] RCP Example Feature 2 ............................. SUCCESS
> [0.132s]
> [INFO] RCP Example Product ............................... FAILURE
> [0.838s]
> [INFO] RCP Example Target Definition ..................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 16.493s
> [INFO] Finished at: Wed Jan 16 17:22:05 CET 2013
> [INFO] Final Memory: 61M/378M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.eclipse.tycho:tycho-p2-publisher-plugin:0.16.0:publish-products
> (default-publish-products) on project eclipse-repository: Exception
> while publishing product
> /home/b8/tmp/tycho-demo/org.eclipse.tycho-demo/itp04-rcp/eclipse-
> repository/example.product:
> "publishing result": ["Included element example-feature.feature.group
> 0.1.0 is missing. Cannot determine filter for requirement to this
> element."] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal
> org.eclipse.tycho:tycho-p2-publisher-plugin:0.16.0:publish-products
> (default-publish-products) on project eclipse-repository: Exception
> while publishing product
> /home/b8/tmp/tycho-demo/org.eclipse.tycho-demo/itp04-rcp/eclipse-
> repository/example.product
> 	at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java
> :203)
> 	at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java
> :148)
> 	at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java
> :140)
> 	at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Li
> fecycleModuleBuilder.java:84)
> 	at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Li
> fecycleModuleBuilder.java:59)
> 	at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(L
> ifecycleStarter.java:183)
> 	at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStar
> ter.java:161)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:134)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
> pl.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(Launche
> r.java:409)
> 	at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Exception
> while publishing product
> /home/b8/tmp/tycho-demo/org.eclipse.tycho-demo/itp04-rcp/eclipse-
> repository/example.product
> 	at
> org.eclipse.tycho.plugins.p2.publisher.PublishProductMojo.publishContent(P
> ublishProductMojo.java:90)
> 	at
> org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo.execute(Abstrac
> tPublishMojo.java:38)
> 	at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuild
> PluginManager.java:107)
> 	at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java
> :195)
> 	... 19 more
> Caused by: org.eclipse.tycho.p2.tools.FacadeException: "publishing
> result": ["Included element example-feature.feature.group 0.1.0 is
> missing. Cannot determine filter for requirement to this element."]
> 	at
> org.eclipse.tycho.p2.tools.publisher.PublisherServiceImpl.handlePublisherS
> tatus(PublisherServiceImpl.java:168)
> 	at
> org.eclipse.tycho.p2.tools.publisher.PublisherServiceImpl.executePublisher
> (PublisherServiceImpl.java:157)
> 	at
> org.eclipse.tycho.p2.tools.publisher.PublisherServiceImpl.publishProduct(P
> ublisherServiceImpl.java:92)
> 	at
> org.eclipse.tycho.plugins.p2.publisher.PublishProductMojo.publishContent(P
> ublishProductMojo.java:86)
> 	... 22 more


Back to the top