Cannot get Implementation Dependency to work in Maven NB Module project #9416
-
|
Hi, I'm trying to update an old module and think I'm almost there, but I'm missing an implementation dependency and cannot seem to get it to work with the maven project. I've consulted ... What I've tried: And then: Tried various permutations of spec type or impl type with or without explicitValues of various kinds of versions from the MANIFEST.MF in the jar file retrieved from the maven dependency: (where 1 should be the implementation version and 2.171.0.1.1 the spec version.) I've also tried a module.xml in the project's root directory like this: But no matter what, mvn package won't stop complaining about my module not being friends with org-netbenas-modules-maven :( I find the wording in the docs not terribly precise in all cases and a practical and complete example for the various cases of NB module dependencies would help. TIA, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
facepalm ... the actual module dependencies configuration does NOT go there but into the configuration for the nbm-maven-plugin ... kinda obvious once you know it :S I'm getting a follow-up error for missing classes, but with verifyRuntime = warn, I can compile the module. |
Beta Was this translation helpful? Give feedback.
facepalm
OK, I'm a bit of an idiot.
While the page here shows a snippet for the maven-jar-plugin and how you need to configure that ...
https://bits.netbeans.org/mavenutilities/nbm-maven-plugin/nbm-maven-plugin/manifest-mojo.html
... the actual module dependencies configuration does NOT go there but into the configuration for the nbm-maven-plugin ... kinda obvious once you know it :S