]> source.dussan.org Git - archiva.git/commitdiff
fix buildnumber plugin with svn 1.7 wc
authorOlivier Lamy <olamy@apache.org>
Tue, 26 Jun 2012 20:09:37 +0000 (20:09 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 26 Jun 2012 20:09:37 +0000 (20:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1354203 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-web-common/pom.xml

index dcc8fac24c4b764c91f1276049e74c2741b3dacf..faf2d0d59c51052540b3d0295ba8edca7897bc1c 100644 (file)
               </execution>
             </executions>
             <configuration>
-              <doCheck>false</doCheck>
-              <doUpdate>false</doUpdate>
+              <!-- 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>
               <dependency>
                 <groupId>com.google.code.maven-scm-provider-svnjava</groupId>
                 <artifactId>maven-scm-provider-svnjava</artifactId>
-                <version>2.0</version>
+                <version>2.0.3</version>
+              </dependency>
+              <dependency>
+                <groupId>org.tmatesoft.svnkit</groupId>
+                <artifactId>svnkit</artifactId>
+                <version>1.7.5</version>
               </dependency>
             </dependencies>
           </plugin>
               </execution>
             </executions>
             <configuration>
-              <doCheck>false</doCheck>
-              <doUpdate>false</doUpdate>
+              <!-- 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>
         </plugins>
       </build>
     </profile>
-    <profile>
-      <id>non-canonical-buildnumber</id>
-      <activation>
-        <file>
-          <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>
-              <doCheck>false</doCheck>
-              <doUpdate>false</doUpdate>
-              <format>NON-CANONICAL_{0,date,yyyy-MM-dd_HH-mm}_{1}</format>
-              <items>
-                <item>timestamp</item>
-                <item>${user.name}</item>
-              </items>
-            </configuration>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
   </profiles>