make archetype compatible with new plugin and default to Apache NetBeans 11.0
diff --git a/pom.xml b/pom.xml
index d2cbdc2..2213159 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,7 +54,7 @@
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
- <version>2.0</version>
+ <version>3.1.1</version>
</plugin>
</plugins>
</pluginManagement>
@@ -62,7 +62,7 @@
<extension>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>archetype-packaging</artifactId>
- <version>2.0</version>
+ <version>3.1.1</version>
</extension>
</extensions>
</build>
@@ -71,7 +71,7 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
- <version>0.12</version>
+ <version>0.13</version>
<configuration>
<excludes>
<exclude>src/main/resources/archetype-resources/**</exclude>
diff --git a/src/main/resources/META-INF/maven/archetype-metadata.xml b/src/main/resources/META-INF/maven/archetype-metadata.xml
index 81edb21..e5535aa 100644
--- a/src/main/resources/META-INF/maven/archetype-metadata.xml
+++ b/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -58,7 +58,7 @@
</fileSets>
<requiredProperties>
<requiredProperty key="netbeansVersion">
- <defaultValue>RELEASE81</defaultValue>
+ <defaultValue>RELEASE110</defaultValue>
</requiredProperty>
</requiredProperties>
</archetype-descriptor>
diff --git a/src/main/resources/archetype-resources/application/pom.xml b/src/main/resources/archetype-resources/application/pom.xml
index 21ee414..a10102d 100644
--- a/src/main/resources/archetype-resources/application/pom.xml
+++ b/src/main/resources/archetype-resources/application/pom.xml
@@ -60,7 +60,7 @@
<build>
<plugins>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
+ <groupId>org.apache.netbeans.utilities</groupId>
<artifactId>nbm-maven-plugin</artifactId>
</plugin>
<!-- Permits NbModuleSuite to be run in integration-test phase: -->
@@ -91,7 +91,7 @@
<build>
<plugins>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
+ <groupId>org.apache.netbeans.utilities</groupId>
<artifactId>nbm-maven-plugin</artifactId>
<executions>
<execution>
diff --git a/src/main/resources/archetype-resources/branding/pom.xml b/src/main/resources/archetype-resources/branding/pom.xml
index 36ba370..e51711d 100644
--- a/src/main/resources/archetype-resources/branding/pom.xml
+++ b/src/main/resources/archetype-resources/branding/pom.xml
@@ -29,7 +29,7 @@
<build>
<plugins>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
+ <groupId>org.apache.netbeans.utilities</groupId>
<artifactId>nbm-maven-plugin</artifactId>
</plugin>
<plugin>
@@ -37,7 +37,9 @@
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<!-- to have the jar plugin pickup the nbm generated manifest -->
- <useDefaultManifestFile>true</useDefaultManifestFile>
+ <archive>
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+ </archive>
</configuration>
</plugin>
</plugins>
diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml
index 3d0e03a..385704f 100644
--- a/src/main/resources/archetype-resources/pom.xml
+++ b/src/main/resources/archetype-resources/pom.xml
@@ -16,6 +16,9 @@
Repository hosting NetBeans modules, especially APIs.
Versions are based on IDE releases, e.g.: RELEASE691
To create your own repository, use: nbm:populate-repository
+
+ If you use Apache NetBeans starting with Apache NetBeans 9.0
+ you can remove the netbeans repository section
-->
<repository>
<id>netbeans</id>
@@ -28,9 +31,9 @@
<pluginManagement>
<plugins>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
+ <groupId>org.apache.netbeans.utilities</groupId>
<artifactId>nbm-maven-plugin</artifactId>
- <version>4.1</version>
+ <version>4.2</version>
<extensions>true</extensions>
<configuration>
<brandingToken>${D}{brandingToken}</brandingToken>
@@ -41,16 +44,16 @@
<!-- NetBeans 6.9+ requires JDK 6, starting NetBeans 7.4 source 1.7 is required -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>2.5.1</version>
+ <version>3.8.1</version>
<configuration>
- <source>1.7</source>
- <target>1.7</target>
+ <source>1.8</source>
+ <target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
- <version>2.4</version>
+ <version>3.1.2</version>
</plugin>
</plugins>
</pluginManagement>