GitHub user charly4711 created a discussion: Cannot get Implementation Dependency to work in Maven NB Module project
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 ... https://bits.netbeans.org/mavenutilities/nbm-maven-plugin/nbm-maven-plugin/index.html https://www.mojohaus.org/nbm-maven-plugin/index.html ... I've even looked at various github repos of plugins from the NB Plugin Portal, but they're either using project.xml style definitions or aren't using implementation dependencies in any shape or form I can detect. What I've tried: ``` <dependencies> <dependency> <groupId>org.netbeans.api</groupId> <artifactId>org-netbeans-api-annotations-common</artifactId> <version>RELEASE290</version> </dependency> <dependency> <groupId>org.netbeans.modules</groupId> <artifactId>org-netbeans-modules-maven</artifactId> <version>RELEASE290</version> </dependency> ``` And then: ``` <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.1.2</version> <configuration> <archive> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> <moduleDependencies> <dependency> <id>org.netbeans.modules:org-netbeans-modules-maven</id> <type>impl</type> <!--<explicitValue>1</explicitValue>--> </dependency> </moduleDependencies> </archive> </configuration> </plugin> ``` 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: 29-e45e218307fce4891f6ea1d58efb5ff7031518e2 2.171.0.1.1 org.netbeans.modules.maven/2 1 (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: ``` <nbm> <dependencies> <dependency> <id>org.netbeans.modules:org-netbeans-modules-maven</id> <type>impl</type> <explicitValue>1</explicitValue> </dependency> </dependencies> </nbm> ``` 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. Anybody here have any? TIA, C. GitHub link: https://github.com/apache/netbeans/discussions/9416 ---- 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
