mirror of https://github.com/apache/nifi.git
NIFI-976 antrun that copies in the project version to the archetype metadata
Signed-off-by: Bryan Bende <bbende@apache.org>
This commit is contained in:
parent
64b1fc983c
commit
bc636f2e08
|
@ -32,9 +32,34 @@
|
||||||
<version>2.2</version>
|
<version>2.2</version>
|
||||||
</extension>
|
</extension>
|
||||||
</extensions>
|
</extensions>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>prepare-package</phase>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<replace token="NIFIVERSION" value="${project.version}" dir="target/classes">
|
||||||
|
<include name="**/archetype-metadata.xml" />
|
||||||
|
</replace>
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<version>1.7</version>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-archetype-plugin</artifactId>
|
<artifactId>maven-archetype-plugin</artifactId>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<requiredProperties>
|
<requiredProperties>
|
||||||
<requiredProperty key="artifactBaseName" />
|
<requiredProperty key="artifactBaseName" />
|
||||||
<requiredProperty key="nifiVersion" >
|
<requiredProperty key="nifiVersion" >
|
||||||
<defaultValue>0.2.1-SNAPSHOT</defaultValue>
|
<defaultValue>NIFIVERSION</defaultValue>
|
||||||
</requiredProperty>
|
</requiredProperty>
|
||||||
<requiredProperty key="package">
|
<requiredProperty key="package">
|
||||||
<defaultValue>${groupId}.processors.${artifactBaseName}</defaultValue>
|
<defaultValue>${groupId}.processors.${artifactBaseName}</defaultValue>
|
||||||
|
|
Loading…
Reference in New Issue