GitHub user charly4711 created a discussion: Need help with dependency 
resolution on NBM

Hi,
so, when I try to load a given module into my running IDE, I keep getting:

INFO [org.netbeans.modules.maven.apisupport.ExecutionChecker]: Error reloading 
netbeans module in development IDE.
java.io.IOException: Cannot enable 
StandardModule:net.jarre_de_the.MavenRemoteSearch jarFile: 
/Users/khb/Sources/MavenRemoteSearch/target/nbm/clusters/extra/modules/net-jarre_de_the-MavenRemoteSearch.jar;
 problems: [module org.netbeans.api.annotations.common/1 > 1.59, module 
com.squareup.okhttp3 > 5.3.2]

What totally baffles me is that I'm working in NB16 and all my dependencies are 
towards NB16 or RELEASE160.
After adding a direct dependency in my POM, the maven task even added a 
dependency in the manifest to the version that IS the version of the module in 
NB160 (1.46):

OpenIDE-Module-Module-Dependencies: org.netbeans.modules.maven/2 = 1, or
 g.netbeans.modules.maven.indexer/2 = 16-321935444b183aea1c4ff255d8d2ab8
 d50c60606, org.openide.modules > 7.66, org.netbeans.api.annotations.com
 mon/1 > 1.46, org.openide.util > 9.26, org.netbeans.api.progress/1 > 1.
 66

Nowhere in my code do I even have the number 59 anywhere and surely NB16 
couldn't even know if I was referring to something in the annotations api that 
required a more recent version?!?

Also, what's wrong with okhttp3 when it is in here:

Class-Path: ext/net.jarre_de_the.MavenRemoteSearch/com-squareup-okhttp3/
 okhttp-jvm.jar ext/net.jarre_de_the.MavenRemoteSearch/com-squareup-okio
 /okio-jvm.jar ext/net.jarre_de_the.MavenRemoteSearch/org-jetbrains-kotl
 in/kotlin-stdlib.jar ext/net.jarre_de_the.MavenRemoteSearch/org-jetbrai
 ns/annotations.jar ext/net.jarre_de_the.MavenRemoteSearch/com-squareup-
 okio/okio.jar

and also in the actual nbm:

        0  05-31-2026 19:03   
netbeans/modules/ext/net.jarre_de_the.MavenRemoteSearch/
        0  05-31-2026 19:03   
netbeans/modules/ext/net.jarre_de_the.MavenRemoteSearch/com-squareup-okhttp3/
   868403  05-31-2026 19:03   
netbeans/modules/ext/net.jarre_de_the.MavenRemoteSearch/com-squareup-okhttp3/okhttp-jvm.jar

Any tips to unfry my brain would be appreciated.
TIA,
C.

GitHub link: https://github.com/apache/netbeans/discussions/9419

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to