[
https://issues.jboss.org/browse/JBDS-4394?page=com.atlassian.jira.plugin....
]
Lukáš Valach commented on JBDS-4394:
------------------------------------
Hmm, it didn't help. Yum isn't upgrading rh-java-common-google-gson. In the RPM
documentation \[1\] is written that we should specify version of RPM on which we would
like depend, otherwise any version will be accepted.
\[1\]
https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/...
Possibly we could try:
{code}
Requires: rh-java-common-google-gson >= 2.2.4, rh-java-common-google-gson < 3.0.0
{code}
I have discussed this topic with [~vkadlcik]. He said that it's known issue. It is
hard to maintain list of versions in spec file so they are ignoring this problem. Then
said that users shoud keep they system up to date.
So it's up to you. We can either maintain versions in spec file or mention in install
guide that it is necessary to update whole system.
Add requirement rh-java-common-google-gson
------------------------------------------
Key: JBDS-4394
URL:
https://issues.jboss.org/browse/JBDS-4394
Project: Red Hat JBoss Developer Studio (devstudio)
Issue Type: Task
Components: build, rpm
Affects Versions: 11.0.0.AM1
Reporter: Lukáš Valach
Assignee: Nick Boldt
Fix For: 11.0.0.AM1
Add requirement rh-java-common-google-gson to the RPM spec file \[1\].
\[1\]
https://github.com/jbdevstudio/jbdevstudio-product/blob/master/rpm/devstu...
----
*Reason:*
After update form Devstudio 10.2 to 10.4 I had this error in the eclipse log:
{code}
!ENTRY org.eclipse.jgit.pgm 4 0 2017-05-12 14:03:44.808
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.jgit.pgm [231]
Unresolved requirement: Import-Package: org.eclipse.jgit.lfs.server.fs;
version="[4.6.1,4.7.0)"
-> Export-Package: org.eclipse.jgit.lfs.server.fs;
bundle-symbolic-name="org.eclipse.jgit.lfs.server";
bundle-version="4.6.1.201703071140-r"; version="4.6.1";
uses:="javax.servlet, javax.servlet.http, org.eclipse.jgit.lfs.server,
org.eclipse.jgit.lfs.lib"
org.eclipse.jgit.lfs.server [230]
Unresolved requirement: Import-Package: com.google.gson;
version="[2.2.4,3.0.0)"
Unresolved requirement: Import-Package: org.eclipse.jgit.lfs.server;
version="[4.6.1,4.7.0)"
-> Export-Package: org.eclipse.jgit.lfs.server;
bundle-symbolic-name="org.eclipse.jgit.lfs.server";
bundle-version="4.6.1.201703071140-r"; version="4.6.1";
uses:="javax.servlet.http, org.eclipse.jgit.lfs.lib"
...
...
!ENTRY org.eclipse.wst.jsdt.js.node 4 0 2017-05-12 14:03:46.661
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module:
org.eclipse.wst.jsdt.js.node [653]
Unresolved requirement: Require-Bundle: com.google.gson;
bundle-version="[2.2.4,3.0.0)"
{code}
Steps to reproduce:
# Disable RHSCL 2.4 and Devstudio snapshot repo
# Add RHSCL 2.3 and Devstudio stable repo
# yum remove rh-*
# yum install rh-eclipse46-devstudio (should install 10.2.0.GA)
# check if eclipse works (I had no errors in the log)
# Disable RHSCL 2.3 and Devstudio stable repo
# Enable RHSCL 2.4 and Devstudio snapshot repo
# rm -rf ~/.eclipse
# Start the Eclipse with -clean
# There should be error I mentioned above. I didn't see any impact to users, egit
worked fine.
# sudo yum update "rh-*"
{code}
Updating:
rh-java-common-google-gson noarch
2.2.4-1.el7 rh-eclipse46-build 177 k
rh-java-common-javapackages-tools noarch
4.3.2-1.14.el7 rh-eclipse46-build 95 k
rh-java-common-lucene5 noarch
5.4.1-2.3.el7 rh-eclipse46-build 2.2 M
rh-java-common-lucene5-analysis noarch
5.4.1-2.3.el7 rh-eclipse46-build 1.3 M
rh-java-common-lucene5-analyzers-smartcn noarch
5.4.1-2.3.el7 rh-eclipse46-build 3.4 M
rh-java-common-lucene5-queries noarch
5.4.1-2.3.el7 rh-eclipse46-build 211 k
rh-java-common-lucene5-queryparser noarch
5.4.1-2.3.el7 rh-eclipse46-build 339 k
rh-java-common-lucene5-sandbox noarch
5.4.1-2.3.el7 rh-eclipse46-build 246 k
rh-java-common-python-javapackages noarch
4.3.2-1.14.el7 rh-eclipse46-build 87 k
rh-maven33-runtime
{code}
# Restart Eclipse, it will start without errors.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)