After digging some more I found out that this requirement is actually
coming from JGit itself!

And it seems that the com.jcraft.jsch dependency has been changed in JGit
4.5, before it was declared as a "Require-Bundle" and now it's under
"Import-Package":

https://github.com/eclipse/jgit/commit/e2cb2f8afdcfc3505f0d7ab0e084415c9358139a#diff-66e59ab180153a142ed3da762d562591

And I don't know why yet but NetBeans doesn't seem to like it?!

I'll keep searching...



On Sun, Mar 18, 2018 at 12:40 AM, Christian Bourque <
christian.bour...@gmail.com> wrote:

> Hey guys,
>
> Could someone please tell me what could the source of this error (I
> updated the Eclipse JGit library to the latest version, fixed the code and
> rebuilt NetBeans but now I get this error when starting it):
>
> 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 don't understand the error because the Jcraft module is already at
> version 0.1.54 in NetBeans!
>
> Thanks,
>
> Christian
>

Reply via email to