attach VERSION.txt as artifact an setup so parse-version is only called
at root level
This commit is contained in:
parent
b34ccc5915
commit
9d73866c43
20
pom.xml
20
pom.xml
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue