[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[tycho-user] Dependency problems using tycho-source-feature plugin
|
Hi,
I am trying to use tycho-source-feature to automatically build source
features for certain features. Therefore I have setup the features'
pom.xml according to:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=345234#c24
As long as I exclude our sdk feature, building of source features works
fine:
$ ls features/de.cau.cs.kieler.synccharts.feature/target/*jar
features/de.cau.cs.kieler.synccharts.feature/target/de.cau.cs.kieler.synccharts.feature-0.6.0-SNAPSHOT.jar
features/de.cau.cs.kieler.synccharts.feature/target/de.cau.cs.kieler.synccharts.feature-sources-feature.jar
We have an sdk feature containing sources and binary features as
following:
<includes
id="de.cau.cs.kieler.synccharts.feature"
version="0.0.0"/>
<includes
id="de.cau.cs.kieler.synccharts.feature.source"
version="0.0.0"/>
When trying to build the whole thing including the sdk feature I get
the following error:
[INFO] Resolving dependencies of MavenProject: de.cau.cs.kieler:de.cau.cs.kieler.sdk.feature:0.6.0-SNAPSHOT @ /var/scratch/tig/tigline/features/de.cau.cs.kieler.sdk.feature/pom.xml
[INFO] Cannot complete the request. Generating details.
[INFO] Cannot complete the request. Generating details.
[INFO] {org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1, osgi.ws=gtk, osgi.os=linux, osgi.arch=x86, org.eclipse.update.install.features=true, org.osgi.framework.system.packages=}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: de.cau.cs.kieler.sdk.feature.feature.group 0.6.0.qualifier
[ERROR] Missing requirement: de.cau.cs.kieler.sdk.feature.feature.group 0.6.0.qualifier requires 'de.cau.cs.kieler.synccharts.feature.source.feature.group 0.0.0' but it could not be found
This isn't very surprising as the source feature is only generated at
compile time. Trying to mark the source feature includes as optional in
feature.xml leads to the following error:
[INFO] de.cau.cs.kieler.sdk.feature ...................... FAILURE [0.412s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15:29.954s
[INFO] Finished at: Sat Mar 10 08:46:06 CET 2012
[INFO] Final Memory: 670M/1445M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-packaging-plugin:0.14.0:package-feature (default-package-feature) on project de.cau.cs.kieler.sdk.feature: Execution default-package-feature of goal org.eclipse.tycho:tycho-packaging-plugin:0.14.0:package-feature failed: Could not resolve feature de.cau.cs.kieler.synccharts.feature.source_0.0.0; Path to dependency: -> [Help 1]
So is there any way to tell maven/tycho about dependencies generated at
compile time?
Tim