[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] How could I work with 2 different versions of the same bundle in one P2 repo?
|
Well,
I've removed the p2 project from the reactor and interestingly all
bundles and features have been built properly... including the both
features containing the bundles with different versions that is not
working with the p2 project...
So, that the problem is related to P2 repository project...
In some last trial, when I remove one of the two features from the p2
category, the build runs ok...
I will try to create a example project reproducing this problem next
weekend...
regards
Cristiano
On 16/01/12 15:40, Cristiano Gavião wrote:
Hi,
I have a p2 project where I concentrate all pom-first bundles that I
use. I have create features that group those bundle properly. So my
other projects just need to point to this p2 without have to deal with
maven dependencies at all.
Now I'm facing a situation where I need to work with two different
versions of the same feature/bundles, because old projects still will
be using the old feature( with its bundles)...
So I've created a new feature project (with different ID) and added
the new bundles to it and fixed the version on the feature.xml. Each
has its maven dependencies set properly for its own bundle version.
But I can't make it work because to make tycho find those bundles I
explicitly need to declare dependencies of those bundles in the
<dependencyManagement> of the main pom.
When I declare two dependencies maven complains:
[WARNING]
[WARNING] Some problems were encountered while building the effective
model for
com.c4biz.osgiutils:com.c4biz.osgiutils.p2:eclipse-repository:0.0.1-SNAPSHOT
[WARNING]
'dependencies.dependency.(groupId:artifactId:type:classifier)' must
be unique: com.vaadin:vaadin:jar -> version 7.0.0.alpha1 vs 6.7.4 @
line 109, column 15
And tycho can't found the second bundle...
[INFO]
{org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,
osgi.ws=cocoa, osgi.arch=x86_64, osgi.os=macosx,
org.eclipse.update.install.features=true,
org.osgi.framework.system.packages=}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: com.c4biz.osgiutils.p2
raw:0.0.1.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.0.1-SNAPSHOT
[ERROR] Missing requirement: com.c4biz.osgiutils.vaadin7
0.0.1.qualifier requires 'bundle com.vaadin 7.0.0' but it could not
be found
[ERROR] Cannot satisfy dependency:
com.c4biz.osgiutils.feature.deps.vaadin-osgi7.feature.group
0.0.1.qualifier depends on: com.c4biz.osgiutils.vaadin7 0.0.0
[ERROR] Cannot satisfy dependency: com.c4biz.osgiutils.p2
raw:0.0.1.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):0.0.1-SNAPSHOT
depends on:
com.c4biz.osgiutils.feature.deps.vaadin-osgi7.feature.group
[0.0.1,0.0.2)
[ERROR]
[ERROR] Internal error: java.lang.RuntimeException: "No solution
found because the problem is unsatisfiable.": ["Unable to satisfy
dependency from com.c4biz.osgiutils.vaadin7 0.0.1.qualifier to bundle
com.vaadin 7.0.0.", "No solution found because the problem is
unsatisfiable."] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException: "No solution found because the problem is
unsatisfiable.": ["Unable to satisfy dependency from
com.c4biz.osgiutils.vaadin7 0.0.1.qualifier to bundle com.vaadin
7.0.0.", "No solution found because the problem is unsatisfiable."]
Could someone give me some clue how could I manage this such use case ?
thanks and regards,
Cristiano