I'm starting to develop a plugin and want to integrate with the rest of our development process and so use Maven as a build tool. I'm attempting to use the nbm Maven plugin to produce an nbm file that I can then use to load as a plugin.
I'm got my project set up with a simple example plugin using the bootcamp as a starting point. It's compiling fine but I'm having an issue with packaging and dependencies. Here's my relevant Maven section.
Code: Select all
<dependencies>
<!-- Netbeans API that forms the basis for Gephi plugin integration -->
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-api-annotations-common</artifactId>
<version>RELEASE712</version>
</dependency>
<!-- Gephi libraries and extension points -->
<dependency>
<groupId>org.gephi</groupId>
<artifactId>toolkit</artifactId>
<version>0.8.5</version>
<scope>provided</scope>
</dependency>
</dependencies>
Code: Select all
[ERROR] Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:3.7:manifest (default-manifest) on project library-gephi-metrics: Module dependency has friend
dependency on org.openide.utilbut is not listed as friend. -> [Help 1]
Has anyone had any success with this approach? Anything I'm missing?
thanks,
Jonny