Making :update-version profile instead

This commit is contained in:
Joakim Erdfelt 2011-08-19 12:13:54 -07:00
parent b34ccc5915
commit 4698cc05c5
1 changed files with 31 additions and 14 deletions

45
pom.xml
View File

@ -46,20 +46,6 @@
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-version-maven-plugin</artifactId>
<version>1.0.1</version>
<executions>
<execution>
<id>gen-versiontxt</id>
<phase>compile</phase>
<goals>
<goal>gen-version-text</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
@ -172,6 +158,11 @@
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-version-maven-plugin</artifactId>
<version>1.0.2-SNAPSHOT</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
@ -441,6 +432,32 @@
<module>jetty-osgi</module>
</modules>
</profile>
<profile>
<id>update-version</id>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jetty.toolchain</groupId>
<artifactId>jetty-version-maven-plugin</artifactId>
<executions>
<execution>
<id>gen-versiontxt</id>
<phase>generate-resources</phase>
<goals>
<goal>gen-version-text</goal>
</goals>
<configuration>
<refreshTags>true</refreshTags>
<copyGenerated>true</copyGenerated>
<attachArtifact>false</attachArtifact>
<updateDate>true</updateDate>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>cobertura</id>
<reporting>