Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Unresolved dependency after migration from Tycho 12.0 to 14.1

I'd say this is a bug. When build target platform is defined using
.target file, Tycho is expected to

1. collect bundles and features as configured by .target file
2. feed collected bundles to OSGi resolver

From what I can tell, Tycho "resolves" (in p2 sense of the word) project
dependencies between steps 1 and 2 and this causes problems because p2
does not support OSGi attribute matching.

@Tobias do you remember why we do this additional p2 resolution when?

I've attached a workaround that should work with 0.14.1 and 0.15.

--
Regards,
Igor

On 12-06-06 3:39 AM, Carsten Hilber wrote:
Hi Igor,
it took a while to reproduce the behavior in a standalone project. 0.15.0 is showing the same result, here is the standalone project:

git://github.com/chilber/dep-test-master.git

Thanks in advance for having a look.
Regards,
Carsten

-----Ursprüngliche Nachricht-----
Von: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] Im Auftrag von Igor Fedorenko
Gesendet: Donnerstag, 19. April 2012 15:24
An: tycho-user@xxxxxxxxxxx
Betreff: Re: [tycho-user] Unresolved dependency after migration from Tycho 12.0 to 14.1

Can you try if 0.15.0-SNAPSHOT works better? If not, please provide sample standalone project that demonstrates the problem and we'll have a look.

--
Regards,
Igor

On 12-04-19 8:11 AM, Carsten Hilber wrote:
Hi guys,

weam migrating a manifest first build with a target based platform
resolution from Tycho 12.0 to 14.1. (Same effect can be seen on 13.0).
After migrating the build seems to miss the dependency org.eclipse.ui
although it is found and resolved earlier in the p2 repo. Here's a
snippet of the debug output. In the full output you can also see that
the previous resolved bundles are having the same behavior that Ben
Abernathy described. For some reason the bundle which is not resolved
correctly is considered as System bundle == 1. Maybe that helps.

.

RESOLVED org.eclipse.ui.workbench_3.5.2.M20100113-0800 :
C:\neo\ext\m2repo\p2\osgi\bundle\org.eclipse.ui.workbench\3.5.2.M20100
113-0800\org.eclipse.ui.workbench-3.5.2.M20100113-0800.jar

RESOLVED org.eclipse.ui.forms_3.4.1.v20090714_35x :
C:\neo\ext\m2repo\p2\osgi\bundle\org.eclipse.ui.forms\3.4.1.v20090714_
35x\org.eclipse.ui.forms-3.4.1.v20090714_35x.jar

.

NOT RESOLVED net.neobp.neo.nms.sup.windows.view_1.0.0.qualifier :
C:\Users\cahi\git\neo-nms-sup-windows\net.neobp.neo.nms.sup.windows.pa
rent\net.neobp.neo.nms.sup.windows.view

Missing Constraint: Import-Package: org.eclipse.ui; version="0.0.0"

Missing Constraint: Import-Package: org.eclipse.ui.part; version="0.0.0"

[ERROR] Internal error: java.lang.RuntimeException:
org.osgi.framework.BundleException: Bundle
net.neobp.neo.nms.sup.windows.view cannot be resolved

I'll attach the full debug log, I am happy for any hint.

Thanks

Carsten



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
diff --git a/neo-dep-test-master-product/pom.xml b/neo-dep-test-master-product/pom.xml
index e93c1d5..d3071e7 100644
--- a/neo-dep-test-master-product/pom.xml
+++ b/neo-dep-test-master-product/pom.xml
@@ -10,5 +10,26 @@
   	<groupId>net.neobp.neo.test</groupId>
   	<version>1.0.0-SNAPSHOT</version>  	
   </parent>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.eclipse.tycho</groupId>
+        <artifactId>target-platform-configuration</artifactId>
+        <version>${tycho.version}</version>
+        <configuration>
+          <dependency-resolution>
+            <extraRequirements>
+              <requirement>
+                <type>eclipse-plugin</type>
+                <id>org.eclipse.ui.ide</id>
+                <versionRange>0.0.0</versionRange>
+              </requirement>
+            </extraRequirements>
+          </dependency-resolution>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
   
-</project>
\ No newline at end of file
+</project>

Back to the top