Permalink
Browse files

Bar

  • Loading branch information...
1 parent 5bb9eb5 commit f8e0d5bf66c8d4c6315be294e7347a4474bb4126 @anagrius anagrius committed Oct 28, 2011
Showing with 30 additions and 5 deletions.
  1. +30 −5 nsp/authorization-lookup-ws/pom.xml
@@ -98,20 +98,45 @@
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
- <artifactId>buildnumber-maven-plugin</artifactId>
- <version>1.0</version>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.1</version>
<executions>
<execution>
- <phase>validate</phase>
+ <phase>process-resources</phase>
<goals>
- <goal>create</goal>
+ <goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
- <doCheck>true</doCheck>
+ <executable>git</executable>
+ <arguments>
+ <argument>log</argument>
+ <argument>--pretty=format:buildNumber = %H</argument>
+ <argument>-n1</argument>
+ </arguments>
+ <outputFile>${project.build.directory}/git.properties</outputFile>
</configuration>
</plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>properties-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>read-project-properties</goal>
+ </goals>
+ <configuration>
+ <files>
+ <file>${project.build.directory}/git.properties</file>
+ </files>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>

0 comments on commit f8e0d5b

Please sign in to comment.