NIFI-976 antrun that copies in the project version to the archetype metadata for controller service archetype

This commit is contained in:
Bryan Bende 2015-11-09 13:40:24 -05:00
parent bc636f2e08
commit 52101181e8
2 changed files with 22 additions and 2 deletions

View File

@ -32,7 +32,27 @@
<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> <plugin>

View File

@ -17,7 +17,7 @@
<requiredProperties> <requiredProperties>
<requiredProperty key="artifactBaseName" /> <requiredProperty key="artifactBaseName" />
<requiredProperty key="nifiVersion" > <requiredProperty key="nifiVersion" >
<defaultValue>0.3.0-SNAPSHOT</defaultValue> <defaultValue>NIFIVERSION</defaultValue>
</requiredProperty> </requiredProperty>
<requiredProperty key="package"> <requiredProperty key="package">
<defaultValue>${groupId}.${artifactBaseName}</defaultValue> <defaultValue>${groupId}.${artifactBaseName}</defaultValue>