Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362492 - Errors resolving dependency to org.eclipse.objectteams.otdt.core.patch.feature.group
Summary: Errors resolving dependency to org.eclipse.objectteams.otdt.core.patch.featur...
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-31 10:27 EDT by Alan Mosely CLA
Modified: 2021-04-28 16:55 EDT (History)
2 users (show)

See Also:


Attachments
category.xml for eclipse-repository (1.06 KB, text/xml)
2011-10-31 10:31 EDT, Alan Mosely CLA
no flags Details
example project (1.32 KB, application/zip)
2011-11-02 20:41 EDT, Alan Mosely CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Mosely CLA 2011-10-31 10:27:05 EDT
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
Comment 1 Alan Mosely CLA 2011-10-31 10:31:26 EDT
Created attachment 206214 [details]
category.xml for eclipse-repository
Comment 2 Igor Fedorenko CLA 2011-11-01 16:53:09 EDT
Please provide complete standalone project that demonstrates the problem.
Comment 3 Alan Mosely CLA 2011-11-02 20:41:00 EDT
Created attachment 206376 [details]
example project
Comment 4 Igor Fedorenko CLA 2011-11-04 10:23:15 EDT
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.
Comment 5 Alan Mosely CLA 2011-11-04 10:55:03 EDT
(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.
Comment 6 Igor Fedorenko CLA 2011-11-06 22:37:06 EST
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>