</plugins>
</build>
- <profiles>
- <profile>
- <id>svn-1.7-buildnumber</id>
- <activation>
- <file>
- <exists>../../../.svn/</exists>
- <missing>.svn</missing>
- </file>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>buildnumber-maven-plugin</artifactId>
- <executions>
- <execution>
- <phase>generate-resources</phase>
- <goals>
- <goal>create</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <!-- Use committed revision so it does not change every time svn update is run -->
- <useLastCommittedRevision>true</useLastCommittedRevision>
- <!-- default revision number if unavailable -->
- <revisionOnScmFailure>??????</revisionOnScmFailure>
- <providerImplementations>
- <svn>javasvn</svn>
- </providerImplementations>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>com.google.code.maven-scm-provider-svnjava</groupId>
- <artifactId>maven-scm-provider-svnjava</artifactId>
- <version>2.0.3</version>
- </dependency>
- <dependency>
- <groupId>org.tmatesoft.svnkit</groupId>
- <artifactId>svnkit</artifactId>
- <version>1.7.5</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
-
- </profile>
- <profile>
- <id>svn-buildnumber</id>
- <activation>
- <file>
- <exists>.svn</exists>
- </file>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>buildnumber-maven-plugin</artifactId>
- <executions>
- <execution>
- <phase>generate-resources</phase>
- <goals>
- <goal>create</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <!-- Use committed revision so it does not change every time svn update is run -->
- <useLastCommittedRevision>true</useLastCommittedRevision>
- <!-- default revision number if unavailable -->
- <revisionOnScmFailure>??????</revisionOnScmFailure>
- <providerImplementations>
- <svn>javasvn</svn>
- </providerImplementations>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
-
</project>