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:
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] 1 operation remaining.
[INFO] 1 operation remaining.
[INFO] 1 operation remaining.
[INFO] 1 operation remaining.
[INFO] 1 operation remaining.
[INFO] 1 operation remaining.
[INFO] 1 operation remaining.
[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:
[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: