Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Error at the final step of the Tycho demo with 0.13.0

does this also happen if you build the parent pom (i.e. including both feature and product modules)?

.qualifier replacement assumes the qualifier is the same for the whole reactor; this is not the case of you build feature and product with separate mvn invocations.

Regards,
Jan

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Chris Leon
Sent: Dienstag, 13. März 2012 04:25
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Error at the final step of the Tycho demo with 0.13.0

Hi, 

I was running through the Tycho demo at linked to from the Tycho home page (https://github.com/jsievers/tycho-demo), in an effort to figure out how it all worked.  Everything looks good, until the final step, when I tried to use mvn install to produce an executable product.

The error output is below, and the zip file containing the projects is attached.  The problem seems to be the qualifier of the feature.  If the feature has already been built, you get the warning in the output below: 

[WARNING] The following locally built units have been used to resolve project dependencies:
[WARNING]   tychodemo.bundle/1.0.0.201203130254
[WARNING]   tychodemo.feature.feature.group/1.0.0.201203130254
[WARNING]   tychodemo.feature.feature.jar/1.0.0.201203130254

and the qualifier time stamp doesn't match the (later) qualifier used when the product gets built.  For my purposes, I'd be fine rebuilding the feature every time, but running 'mvn clean install' doesn't seem to do the job.  But, if I delete the tychodemo.feature/target directory, and re run 'mvn install' to get it to build both feature and product with the same qualifier value, things work and I get a runnable executable.  It seems that either the product should be able to resolve the feature though, or possibly have a way to force a rebuild of the feature if it can't.  Note that the feature->plugin dependency appears to not have this problem.

I'm new to both Maven and Tycho, so if anyone can tell me if that's as expected, or I'm missing something in my set up, I'd appreciate it!

-------------
[INFO] Scanning for projects...
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[INFO] Resolving target platform for project MavenProject: tychodemo:tychodemo.repository:1.0.0-SNAPSHOT @ /Users/sharakan/Documents/maven/tychodemo.repository/pom.xml
[INFO] Fetching p2.index (0B of 96B at 0B/s) from http://download.eclipse.org/releases/helios/
[INFO] Fetching p2.index (128B of 96B at 0B/s) from http://download.eclipse.org/releases/helios/
[INFO] 1 operation remaining.
[INFO] Adding repository http://download.eclipse.org/releases/helios/
[INFO] Fetching p2.index (0B of 93B at 0B/s) from http://download.eclipse.org/releases/helios/201006230900/
[INFO] 1 operation remaining.
[INFO] Fetching p2.index (119B of 93B at 0B/s) from http://download.eclipse.org/releases/helios/201006230900/
[INFO] Fetching p2.index (0B of 93B at 0B/s) from http://download.eclipse.org/releases/helios/201009240900/
[INFO] 1 operation remaining.
[INFO] Fetching p2.index (119B of 93B at 0B/s) from http://download.eclipse.org/releases/helios/201009240900/
[INFO] Fetching p2.index (0B of 93B at 0B/s) from http://download.eclipse.org/releases/helios/201102250900/
[INFO] Fetching p2.index (119B of 93B at 0B/s) from http://download.eclipse.org/releases/helios/201102250900/
[INFO] Fetching p2.index (0B of 96B at 0B/s) from http://download.eclipse.org/releases/helios/
[INFO] 1 operation remaining.
[INFO] Fetching p2.index (128B of 96B at 0B/s) from http://download.eclipse.org/releases/helios/
[INFO] Adding repository http://download.eclipse.org/releases/helios/
[INFO] Fetching p2.index (0B of 93B at 0B/s) from http://download.eclipse.org/releases/helios/201006230900/
[INFO] 1 operation remaining.
[INFO] Fetching p2.index (119B of 93B at 0B/s) from http://download.eclipse.org/releases/helios/201006230900/
[INFO] Fetching p2.index (0B of 93B at 0B/s) from http://download.eclipse.org/releases/helios/201009240900/
[INFO] 1 operation remaining.
[INFO] Fetching p2.index (119B of 93B at 0B/s) from http://download.eclipse.org/releases/helios/201009240900/
[INFO] Fetching p2.index (0B of 93B at 0B/s) from http://download.eclipse.org/releases/helios/201102250900/
[INFO] 1 operation remaining.
[INFO] Fetching p2.index (119B of 93B at 0B/s) from http://download.eclipse.org/releases/helios/201102250900/
[WARNING] The following locally built units have been used to resolve project dependencies:
[WARNING]   tychodemo.bundle/1.0.0.201203130254
[WARNING]   tychodemo.feature.feature.group/1.0.0.201203130254
[WARNING]   tychodemo.feature.feature.jar/1.0.0.201203130254
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building tychodemo.repository 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- tycho-packaging-plugin:0.13.0:build-qualifier (default-build-qualifier) @ tychodemo.repository ---
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean-1) @ tychodemo.repository ---
[INFO] Deleting /Users/sharakan/Documents/maven/tychodemo.repository/target
[INFO] 
[INFO] --- tycho-p2-publisher-plugin:0.13.0:publish-products (default-publish-products) @ tychodemo.repository ---
[INFO] 
[INFO] --- tycho-p2-publisher-plugin:0.13.0:publish-categories (default-publish-categories) @ tychodemo.repository ---
[INFO] 
[INFO] --- tycho-p2-repository-plugin:0.13.0:assemble-repository (default-assemble-repository) @ tychodemo.repository ---
[WARNING] Mirror tool: "Problems resolving provisioning plan.": ["Unable to satisfy dependency from tychodemo.product 1.0.0.201203130303 to tychodemo.feature.feature.group [1.0.0.201203130303]."]
[WARNING] More information on the preceding warning(s) can be found here:
[WARNING] - http://wiki.eclipse.org/Tycho_Messages_Explained#Mirror_tool
[INFO] 
[INFO] --- tycho-p2-repository-plugin:0.13.0:archive-repository (default-archive-repository) @ tychodemo.repository ---
[INFO] Building zip: /Users/sharakan/Documents/maven/tychodemo.repository/target/tychodemo.repository.zip
[INFO] 
[INFO] --- tycho-p2-director-plugin:0.13.0:materialize-products (materialize-products) @ tychodemo.repository ---
[INFO] Calling director with arguments: [-metadatarepository, file:/Users/sharakan/Documents/maven/tychodemo.repository/target/publisherRepository/,file:/Users/sharakan/Documents/maven/tychodemo.repository/target/targetPlatformRepository/, -artifactrepository, file:/Users/sharakan/Documents/maven/tychodemo.repository/target/publisherRepository/,file:/resolution-context-artifacts@/Users/sharakan/Documents/maven/tychodemo.repository,file:/Users/sharakan/.m2/repository/, -installIU, tychodemo.product, -destination, /Users/sharakan/Documents/maven/tychodemo.repository/target/products/tychodemo.product/macosx/cocoa/x86_64, -profile, DefaultProfile, -profileProperties, org.eclipse.update.install.features=true, -roaming, -p2.os, macosx, -p2.ws, cocoa, -p2.arch, x86_64]
Installing tychodemo.product 1.0.0.201203130303.
Installation failed.
Cannot complete the install because one or more required items could not be found.
 Software being installed: Tycho Demo 1.0.0.201203130303 (tychodemo.product 1.0.0.201203130303)
 Missing requirement: Tycho Demo 1.0.0.201203130303 (tychodemo.product 1.0.0.201203130303) requires 'tychodemo.feature.feature.group [1.0.0.201203130303]' but it could not be found
Application failed, log file location: /Users/sharakan/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1331607784700.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.162s
[INFO] Finished at: Mon Mar 12 23:03:27 EDT 2012
[INFO] Final Memory: 51M/103M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-director-plugin:0.13.0:materialize-products (materialize-products) on project tychodemo.repository: P2 director return code was 13 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

-------------

Thanks,

Chris



Back to the top