Hey guys,
I'm currently trying to upgrade the Eclipse JGit dependency in NetBeans 9 Beta (from version 3.6.2 to 4.11.0) but I get an error when I start NetBeans with the latest version:
org.osgi.framework.
BundleException: The bundle "org.eclipse.jgit_4.11.0.201803080745-r
[183]" could not be resolved. Reason: Missing Constraint:
Import-Package: com.jcraft.jsch; version="[0.1.37,0.2.0)"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1184)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
at org.netbeans.core.netigso.Netigso.start(Netigso.java:183)
at org.netbeans.NetigsoHandle.startFramework(NetigsoHandle.java:186)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1344)
at org.netbeans.ModuleManager.enable(ModuleManager.java:1148)
at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:315)
at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:251)
at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:276)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:156)
at org.netbeans.core.startup.Main.getModuleSystem(Main.java:125)
at org.netbeans.core.startup.Main.start(Main.java:282)
at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98)
[catch] at java.lang.Thread.run(Thread.java:748)
I know that this requirement is coming from JGit but the JCraft dependency should be provided correctly by NetBeans (it was already required with JGit 3.6.2 and working fine).
I did find this JGit commit (4.5.0) that changed the way that the JCraft dependency was included:
https://github.com/eclipse/jgit/commit/e2cb2f8afdcfc3505f0d7ab0e084415c9358139a#diff-66e59ab180153a142ed3da762d562591