Conflicting Dependencies [message #1832425] |
Thu, 17 September 2020 11:33  |
Eclipse User |
|
|
|
I use Eclipse from a custom Docker image and use the headless p2 director application to install plugins / features. Recently, I've been working on upgrading to version 2020-09 and ran into some conflicting dependencies when trying to install some plugins. I'd like to understand how to correctly resolve these conflicts, but am specifically limited to resolving them using the headless director application as these commands need to be run as part of a Docker image build
One of the specific scenarios I'm running into is attempting to install the IBM WebSphere Application Server V8.5x Developer Tools plugin. When I attempt to install it I get an error because the WebSphere plugin depends on org.eclipse.jdt.debug 3.10.0.v20160418-1524, but org.eclipse.jdt.debug 3.16.0.v20200828-0821 is already installed. I am able to install the WebSphere plugin through the Eclipse Marketplace UI, so that leads me to blelieve the plugin is compatible with the newer JDI Debug Model. Here's the command I'm running and the response:
$ /opt/eclipse/eclipse \
> -clean -purgeHistory \
> -application org.eclipse.equinox.p2.director \
> -noSplash \
> -repository \
> public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/updates/wdt/2020-09_comp/ \
> -installIUs \
> com.ibm.websphere.wdt.st.v85.feature.group
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
log4j:WARN Please initialize the log4j system properly.
Installing com.ibm.websphere.wdt.st.v85.feature.group 20.0.900.v20200826_1754.
Installation failed.
Cannot complete the install because of a conflicting dependency.
Software being installed: WebSphere® Application Server V8.5 Tools 20.0.900.v20200826_1754 (com.ibm.websphere.wdt.st.v85.feature.group 20.0.900.v20200826_1754)
Software currently installed: Eclipse Java Development Tools 3.18.500.v20200902-1800 (org.eclipse.jdt.feature.group 3.18.500.v20200902-1800)
Only one of the following can be installed at once:
JDI Debug Model 3.16.0.v20200828-0821 (org.eclipse.jdt.debug 3.16.0.v20200828-0821)
JDI Debug Model 3.10.0.v20160418-1524 (org.eclipse.jdt.debug 3.10.0.v20160418-1524)
Cannot satisfy dependency:
From: Maven tools for Java EE - Core 1.1.605.v20200826_1754 (com.ibm.etools.maven.javaee.core 1.1.605.v20200826_1754)
To: osgi.bundle; com.ibm.ws.st.core [1.0.710,2.0.0)
Cannot satisfy dependency:
From: Maven Tools for Java EE 1.2.0.v20200826_1754 (com.ibm.etools.maven.javaee.feature.feature.group 1.2.0.v20200826_1754)
To: org.eclipse.equinox.p2.iu; com.ibm.etools.maven.javaee.core [1.1.605.v20200826_1754,1.1.605.v20200826_1754]
Cannot satisfy dependency:
From: Java EE Development Tools 1.0.401.v20200826_1754 (com.ibm.wdt.javaee.feature.feature.group 1.0.401.v20200826_1754)
To: org.eclipse.equinox.p2.iu; com.ibm.etools.maven.javaee.feature.feature.group [1.2.0.v20200826_1754,1.2.0.v20200826_1754]
Cannot satisfy dependency:
From: WebSphere® Application Server V8.5 Tools 20.0.900.v20200826_1754 (com.ibm.websphere.wdt.st.v85.feature.group 20.0.900.v20200826_1754)
To: org.eclipse.equinox.p2.iu; com.ibm.wdt.javaee.feature.feature.group 1.0.300
Cannot satisfy dependency:
From: WebSphere® Application Server Liberty Tools 1.0.909.v2020-08-26_1523 (com.ibm.ws.st.core 1.0.909.v2020-08-26_1523)
To: java.package; com.sun.jdi 0.0.0
Cannot satisfy dependency:
From: Eclipse Java Development Tools 3.18.500.v20200902-1800 (org.eclipse.jdt.feature.group 3.18.500.v20200902-1800)
To: org.eclipse.equinox.p2.iu; org.eclipse.jdt.debug [3.16.0.v20200828-0821,3.16.0.v20200828-0821]
There were errors. See log file: /opt/eclipse/configuration/1600355125617.log
What's the best / correct way to resolve this scenario? I've found some good information here, but still confused about a few things. First, is creating a p2.inf file defining an acceptable version range for the org.eclipse.jdt.feature.group dependency the right solution? Second, if it's the right solution, where does this file go? I did find some p2.inf files under the features directory of my eclipse installation, but I don't see one for org.eclipse.jdt.feature.group. Those directories also have versions in their name, so i'm pretty confused on where to put my custom p2.inf file.
Thanks in advance for the help and if there's any other information you need, I'm happy to provide it.
|
|
|
Re: Conflicting Dependencies [message #1832476 is a reply to message #1832425] |
Fri, 18 September 2020 09:59  |
Eclipse User |
|
|
|
I intentionally removed the `http://` from the repository option of the director application call because it was getting flagged as an external link. External links are not allowed on your first post in the Eclipse forums apparently.
|
|
|
Powered by
FUDForum. Page generated in 0.06888 seconds