[
https://issues.jboss.org/browse/JBDS-4136?page=com.atlassian.jira.plugin....
]
Nick Boldt edited comment on JBDS-4136 at 10/27/16 2:02 PM:
------------------------------------------------------------
PRs are merged but new TP hasn't trickled down to devstudio rpm build yet. So...
0. Install devstudio rpm - rh-eclipse46-devstudio-10.2-0.20161027.1443.el7.x86_64.rpm (or
newer)
1. start up eclipse:
{code}
rm -fr ~/.eclipse
scl enable rh-eclipse46 bash
cd /opt/rh/rh-eclipse46/root/usr/lib64/eclipse/
./eclipse -consolelog -console -debug | tee /tmp/rh-eclipse46-devstudio10.2.log.`date
+%Y%m%d-%H%M`.txt{code}
(wait for 4 minutes to resolve all the contraint violations: 13:46:51 - 13:50:45)
2. Window > Prefs > Install/Update > Avail Software Sites > disable everything
(because it's insanely slow if you don't), then add
https://devstudio.jboss.com/targetplatforms/jbdevstudiotarget/4.61.0.AM2-...
> OK add
https://devstudio.jboss.com/10.0/snapshots/updates/ > OK > OK
3. Help > Install new > select
https://devstudio.jboss.com/targetplatforms/jbdevstudiotarget/4.61.0.AM2-...
> uncheck "group items by category" > search for m2e > install m2e and
m2e-wtp features:
{code}org.eclipse.m2e.feature
org.eclipse.m2e.wtp.feature{code}
was (Author: nickboldt):
PRs are merged but new TP hasn't trickled down to devstudio rpm build yet. So...
0. Install devstudio rpm - rh-eclipse46-devstudio-10.2-0.20161027.1443.el7.x86_64.rpm (or
newer)
1. start up eclipse:
{code}
rm -fr ~/.eclipse
scl enable rh-eclipse46 bash
cd /opt/rh/rh-eclipse46/root/usr/lib64/eclipse/
./eclipse -consolelog -console -debug | tee /tmp/rh-eclipse46-devstudio10.2.log.`date
+%Y%m%d-%H%M`.txt{code}
(wait for 4 minutes to resolve all the contraint violations: 13:46:51 - 13:50:45)
2. Window > Prefs > Install/Update > Avail Software Sites > disable
everything, then add
https://devstudio.jboss.com/targetplatforms/jbdevstudiotarget/4.61.0.AM2-...
> OK > OK
3. Help > Install new > select
https://devstudio.jboss.com/targetplatforms/jbdevstudiotarget/4.61.0.AM2-...
> uncheck "group items by category" > search for m2e > install m2e and
m2e-wtp features:
{code}org.eclipse.m2e.feature
org.eclipse.m2e.wtp.feature{code}
Uses constraint violation - org.slf4j.api vs. slf4j.api
-------------------------------------------------------
Key: JBDS-4136
URL:
https://issues.jboss.org/browse/JBDS-4136
Project: Red Hat JBoss Developer Studio (devstudio)
Issue Type: Bug
Components: build, maven, rpm, target-platform
Affects Versions: 10.2.0.AM2
Reporter: Nick Boldt
Assignee: Nick Boldt
Fix For: 10.2.0.AM3
Attachments: ds4610AM1.p2diff.txt, enabled-sites-wtp-update.png,
jbt4602AM1.p2diff.txt, new-m2e.egit.png
Latest bit of rpm madness...
This conflict occurred:
{code}
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.m2e.wtp.jpa
[931]
Bundle was not resolved because of a uses contraint violation.
org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to
resolve resource org.eclipse.m2e.wtp.jpa [osgi.identity; type="osgi.bundle";
version:Version="1.3.1.20160831-1005";
osgi.identity="org.eclipse.m2e.wtp.jpa"; singleton:="true"] because it
is exposed to package 'org.slf4j' from resources org.slf4j.api [osgi.identity;
type="osgi.bundle"; version:Version="1.7.2.v20121108-1250";
osgi.identity="org.slf4j.api"] and slf4j.api [osgi.identity;
type="osgi.bundle"; version:Version="1.7.4";
osgi.identity="slf4j.api"] via two dependency chains.
Chain 1:
org.eclipse.m2e.wtp.jpa [osgi.identity; type="osgi.bundle";
version:Version="1.3.1.20160831-1005";
osgi.identity="org.eclipse.m2e.wtp.jpa"; singleton:="true"]
require: (osgi.wiring.bundle=org.slf4j.api)
|
provide: osgi.wiring.bundle: org.slf4j.api
org.slf4j.api [osgi.identity; type="osgi.bundle";
version:Version="1.7.2.v20121108-1250";
osgi.identity="org.slf4j.api"]
Chain 2:
org.eclipse.m2e.wtp.jpa [osgi.identity; type="osgi.bundle";
version:Version="1.3.1.20160831-1005";
osgi.identity="org.eclipse.m2e.wtp.jpa"; singleton:="true"]
require: (osgi.wiring.bundle=org.slf4j.api)
|
provide: osgi.wiring.bundle; bundle-version:Version="1.7.2.v20121108-1250";
osgi.wiring.bundle="org.slf4j.api"
org.slf4j.api [osgi.identity; type="osgi.bundle";
version:Version="1.7.2.v20121108-1250";
osgi.identity="org.slf4j.api"]
require:
(&(osgi.wiring.bundle=ch.qos.logback.classic)(&(bundle-version>=1.0.7)(!(bundle-version>=1.0.8))))
|
provide: osgi.wiring.bundle; bundle-version:Version="1.0.7.v20121108-1250";
osgi.wiring.bundle="ch.qos.logback.classic"
ch.qos.logback.classic [osgi.identity; type="osgi.bundle";
version:Version="1.0.7.v20121108-1250";
osgi.identity="ch.qos.logback.classic"]
import: (&(osgi.wiring.package=org.slf4j)(version>=1.7.0))
|
export: osgi.wiring.package: org.slf4j
slf4j.api [osgi.identity; type="osgi.bundle";
version:Version="1.7.4"; osgi.identity="slf4j.api"]
at org.eclipse.osgi.container.Module.start(Module.java:444)
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1620)
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1599)
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1571)
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1514)
at
org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340){code}
So, since slf4j.api is installed via 5 upstream projects (5 symlinks, actually, to
rh-java-common):
{code}
$➔ find . -name "*slf4j.api*jar" -exec ls -l {} \;
lrwxrwxrwx 1 root root 81 Oct 11 13:00
./share/eclipse/droplets/jgit/eclipse/plugins/slf4j.api_1.7.4.jar ->
../../../../../../../../../rh-java-common/root/usr/share/java/slf4j/slf4j-api.jar
lrwxrwxrwx 1 root root 81 Oct 12 05:19
./share/eclipse/droplets/linuxtools-docker/eclipse/plugins/slf4j.api_1.7.4.jar ->
../../../../../../../../../rh-java-common/root/usr/share/java/slf4j/slf4j-api.jar
lrwxrwxrwx 1 root root 81 Oct 11 14:46
./share/eclipse/droplets/egit-egit/eclipse/plugins/slf4j.api_1.7.4.jar ->
../../../../../../../../../rh-java-common/root/usr/share/java/slf4j/slf4j-api.jar
lrwxrwxrwx 1 root root 75 Oct 21 09:58
./share/eclipse/droplets/mylyn-versions-git/eclipse/plugins/slf4j.api_1.7.4.jar ->
../../../../../../../../../rh-java-common/root/usr/share/java/slf4j/api.jar
lrwxrwxrwx 1 root root 81 Oct 11 14:46
./share/eclipse/droplets/egit-mylyn/eclipse/plugins/slf4j.api_1.7.4.jar ->
../../../../../../../../../rh-java-common/root/usr/share/java/slf4j/slf4j-api.jar
{code}
... I removed it from the RPM in favour of the other bundle, which was already installed
into the fedora/rhel eclipse.
BUT... since this RH SCL rh-java-common *slf4j-api.jar* exports a different, incompatible
bundle name:
{code}Bundle-SymbolicName: slf4j.api{code}
than the one in devstudio's update site / target platform
{code}Bundle-SymbolicName: org.slf4j.api{code}
NOW, I'm getting this:
{code}
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.m2e.wtp.jpa
[931]
Unresolved requirement: Require-Bundle: org.slf4j.api;
bundle-version="1.6.2"
{code}
Snjezana got this too in m2e.core:
{code}BundleException: Could not resolve module: org.eclipse.m2e.core.ui [866]
Unresolved requirement: Require-Bundle: org.eclipse.m2e.maven.runtime;
bundle-version="[1.7.0,1.8.0)"
-> Bundle-SymbolicName: org.eclipse.m2e.maven.runtime;
bundle-version="1.7.0.20160603-1931"; singleton:="false"
org.eclipse.m2e.maven.runtime [876]
Unresolved requirement: Require-Bundle: org.slf4j.api;
bundle-version="1.6.2"{code}
So... not sure what to do to solve this. :(
I suppose the best case would be for the m2e and w2e-wtp bundles to depend on the
slf4j.api PACKAGES instead of BUNDLES, so that they can run on the fedora/rhel versions
instead of those from the devstudio update site / target platform.
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)