Community
Participate
Working Groups
Build Identifier: Tycho version 0.13.0 We are using Tycho to build an Eclipse P2 repository that bundles several external plugins. Errors occur when trying to resolve dependencies from 2 plug-ins we bundle: AnyEditTools_2.4.0.201101292156.jar and org.eclipse.m2e.site_1.0.100.20110804-1717.jar We have the Eclipse Indigo repository available to Tycho as well as the individual plug-in update sites (http://andrei.gmxhome.de/eclipse/ and http://download.eclipse.org/technology/m2e/releases/). The Tycho errors when adding AnyEdit are: [ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from org.eclipse.jdt.core 3.7.0.v_OTDT_r200_201106070730 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).", "Unable to satisfy dependency from org.eclipse.jdt.core 3.7.1.v_OTDT_r201_201109101025 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).", "Unable to satisfy dependency from unity.repository raw:1.0.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):1.0.0-SNAPSHOT to AnyEditTools.feature.group [2.4.0.201101292156].", "No solution found because the problem is unsatisfiable."] -> [Help 1] The Tycho errors when adding m2eclipse are: [ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from org.eclipse.jdt.core 3.7.0.v_OTDT_r200_201106070730 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).", "Unable to satisfy dependency from org.eclipse.jdt.core 3.7.1.v_OTDT_r201_201109101025 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).", "Unable to satisfy dependency from org.eclipse.m2e.integration.tests.common 1.0.100.20110804-1717 to bundle org.hamcrest 0.0.0.", "Unable to satisfy dependency from org.eclipse.m2e.integration.tests.common 1.0.100.20110804-1717 to bundle org.hamcrest.library 0.0.0.", "No solution found because the problem is unsatisfiable."] -> [Help 1] The dependency on the otdt version of org.eclipse.jdt.core 3.7.0.v_OTDT_r200_201106070730 is the issue and the existing bugs 350133 and 330288 are related. I have tried to make the http://download.eclipse.org/objectteams/updates/ot2.0/ repository available to Tycho as it contains org.eclipse.objectteams.otdt.core.patch.feature.group but Tycho does not resolve it. I doubt these are the only 2 external plugins that will have this issue, is there a way to get Tycho to ignore these dependencies or up the correct org.eclipse.jdt.core version? Reproducible: Always Steps to Reproduce: 1. Create a Maven module with <packaging>eclipse-repository</packaging> 2. Add the following p2 repositories to your POM: http://download.eclipse.org/releases/indigo/ http://andrei.gmxhome.de/eclipse/ and http://download.eclipse.org/technology/m2e/releases/ 3. Use the category.xml attached, which references the latest versions of the m2eclipse and AnyEdit plugins 4. Tycho build fails with errors in description above 5. Add repository http://download.eclipse.org/objectteams/updates/ot2.0/ to your POM 6. Tycho build fails with same errors
Created attachment 206214 [details] category.xml for eclipse-repository
Please provide complete standalone project that demonstrates the problem.
Created attachment 206376 [details] example project
http://andrei.gmxhome.de/eclipse/ is pre-p2 update site. it does not have enough metadata to allow tycho resolve dependencies (and I am not quire sure why we still support this repository type in tycho, to be honest). What you can try, is to copy this update site locally, generated p2 metadata for it and use the result as in your pom.xml file.
(In reply to comment #4) > http://andrei.gmxhome.de/eclipse/ is pre-p2 update site. it does not have > enough metadata to allow tycho resolve dependencies (and I am not quire sure > why we still support this repository type in tycho, to be honest). What you can > try, is to copy this update site locally, generated p2 metadata for it and use > the result as in your pom.xml file. That's funny as I can resolve the JDepend plugin from that same update site with Tycho no problem. Thanks for the workaround, it implies additional maintenance on our part but if it works that should be fine. What about the case of m2eclipse as that is definitely a valid p2 repository? If you comment out the AnyEdit feature from my example project's category.xml you should only get errors related to m2eclipse.
m2e 1.0 sdk feature requires swtbot repo, everything works once I've added repository element like below. btw, you don't need to install org.eclipse.m2e.site feature. <repository> <id>swtbot</id> <layout>p2</layout> <url>http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site</url> </repository>