Hi Emilian, You're right! After doing some research I found out that the JCraft dependency isn't working because it's not OSGi compliant!
But I found an alternative JCraft artifact that is repackaged by Apache especially for OSGi purposes: https://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch I'll try with this one instead! Thanks a lot! C. On Mon, Mar 19, 2018 at 1:53 AM, Emilian Bold <emilian.b...@protonmail.ch> wrote: > > [...] before it was declared as a "Require-Bundle" and now it's under > > "Import-Package": > > And I don't know why yet but NetBeans doesn't seem to like it?! > > Well, this is the OSGI layer. I can't find the actual documentation but on > this old wiki I don't see Import-Package mentioned: > http://wiki.netbeans.org/OSGiAndNetBeans > > Could you create a demo OSGi module with Import-Package and see if it runs > inside NetBeans? Might be a bug. > > --emi > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > On 19 March 2018 2:02 AM, Christian Bourque <christian.bour...@gmail.com> > wrote: > > > 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/e2cb2f8afdcfc3505f0d7ab0e08441 > 5c9358139a#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 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@netbeans.incubator.apache.org > For additional commands, e-mail: dev-h...@netbeans.incubator.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > >