Plugin manipulating POM files
"AlexFalappa" <[email protected]> Tue, 24 May 2016 07:16:49 +0000
| Newsgroups | gmane.comp.java.netbeans.devel |
|---|---|
| Message-ID | <[email protected]> |
Thanks a lot Benno, I merged your pull request.
For the record the correct dependencies were:
Code:
...
<dependency>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-maven-model</artifactId>
<version>${netbeans.api.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.modules</groupId>
<artifactId>org-netbeans-modules-maven-embedder</artifactId>
<version>${netbeans.api.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-modules-xml-xam</artifactId>
<version>${netbeans.api.version}</version>
</dependency>
...
where netbeans.api.version is a property with the platform version (e.g. RELEASE81).
While the correct nbm plugin configuration was:
Code:
<configuration>
<moduleDependencies>
<dependency>
<id>org.netbeans.modules:org-netbeans-modules-maven-model</id>
<type>impl</type>
</dependency>
<dependency>
<id>org.netbeans.modules:org-netbeans-modules-maven-embedder</id>
<type>impl</type>
</dependency>
</moduleDependencies>
</configuration>
Will try the yenta suggestion as an improvement.
markiewb wrote:
> Hej Alex,
>
> done. See https://github.com/AlexFalappa/nb-springboot/pull/12 (https://github.com/AlexFalappa/nb-springboot/pull/12)
>
> But as a warning: implementation dependencies are not easy to maintain. You have to recompile your plugin for every version. Sooner or later I would switch to use yenta [1], which adds your module as a friend at runtime, as you can see in [2]
>
> [1] https://bitbucket.org/jglick/yenta/overview (https://bitbucket.org/jglick/yenta/overview)
> [2] https://github.com/search?l=maven-pom&q=org.netbeans.contrib.yenta&type=Code&utf8=%E2%9C%93 (https://github.com/search?l=maven-pom&q=org.netbeans.contrib.yenta&type=Code&utf8=%E2%9C%93)
>
>
>
> With kind regards, markiewb
>