[jbosstools-issues] [JBoss JIRA] (JBIDE-21821) JBoss Developer Studio Marketplace Install Breaks Egit in Mars.2

Nick Boldt (JIRA) issues at jboss.org
Wed Mar 9 12:53:00 EST 2016


    [ https://issues.jboss.org/browse/JBIDE-21821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174475#comment-13174475 ] 

Nick Boldt commented on JBIDE-21821:
------------------------------------

To further clarify why egit views disappear after installing JBT 4.3.0.Final:

when you install JBoss Tools EGit Integration (or possibly something else in JBT?) it pulls in org.eclipse.egit.ui.importer_4.0.0 which depends on org.eclipse.jgit_4.0, available from our associateSite-liked default "last stable" target plaform [1]. (4.1 is NOT preinstalled in Eclipse JEE bundle, and is not on the Mars site, so p2 can't find a newer version to install 4.1 instead.)

[1] http://download.jboss.org/jbosstools/targetplatforms/jbosstoolstarget/mars/

 So even if you've already got jgit 4.1 installed, you break your installation (egit stops working) because:

{code}
  Bundle was not resolved because of a uses contraint violation.
  org.osgi.service.resolver.ResolutionException: Uses constraint violation.
 Unable to resolve resource org.eclipse.egit.ui [osgi.identity; osgi.identity="org.eclipse.egit.ui"; type="osgi.bundle"; 
version:Version="4.1.1.201511131810-r"; singleton:="true"] 
because it is exposed to package 'org.eclipse.jgit.transport' from resources 
org.eclipse.jgit [osgi.identity; osgi.identity="org.eclipse.jgit"; type="osgi.bundle"; version:Version="4.1.1.201511131810-r"] and 
org.eclipse.jgit [osgi.identity; osgi.identity="org.eclipse.jgit"; type="osgi.bundle"; version:Version="4.0.3.201509231615-r"] 
via two dependency chains.{code}

So by removing access to jgit 4.0 in the TP, we eliminate the second dependency chain. 

My workaround above was to uninstall org.jboss.tools.openshift.egit.integration.feature ("JBoss Tools EGit Integration") from the 4.3.1.CR1 site and reinstall it from a site which includes the 4.1 version of org.eclipse.egit.ui.importer.

> JBoss Developer Studio Marketplace Install Breaks Egit in Mars.2
> ----------------------------------------------------------------
>
>                 Key: JBIDE-21821
>                 URL: https://issues.jboss.org/browse/JBIDE-21821
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: build, marketplace
>            Reporter: Thomas Mäder
>            Assignee: Nick Boldt
>            Priority: Blocker
>             Fix For: 4.3.1.CR1
>
>         Attachments: FrameworkEvent ERROR.txt, jbt-error, jgit40_41_JBDS.installed.txt, jgit40_41_JBT.installed.txt
>
>
> Installing Red Hat JBoss Developer Studio 9.0.0GA into a fresh Eclipse 4.5.2 (for Eclipse Committers) causes Egit to break.
> # Install Eclipse 4.5.2
> # In the Marketplace, search for "jboss developer studio"
> # You get a single result: Red Hat JBoss Developer Studio 9.0.0 GA
> # Install it 
> # Restart
> # Observe: the EGit views and preferences are missing
> # Observe: you get messages in the Eclipse error log concerning a dependency version incompatibility



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jbosstools-issues mailing list