attach VERSION.txt as artifact an setup so parse-version is only called

at root level
This commit is contained in:
Jesse McConnell 2011-08-19 14:11:12 -05:00
parent b34ccc5915
commit 9d73866c43
1 changed files with 20 additions and 0 deletions

20
pom.xml
View File

@ -115,6 +115,26 @@
<goals>
<goal>parse-version</goal>
</goals>
<configuration>
<runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
</configuration>
</execution>
<execution>
<id>attach-version-classifier</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<runOnlyAtExecutionRoot>true</runOnlyAtExecutionRoot>
<artifacts>
<artifact>
<file>VERSION.txt</file>
<type>txt</type>
<classifier>version</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>