]> source.dussan.org Git - archiva.git/commitdiff
add a profile for ci servers to cleanup file ~/.m2/archiva.xml
authorOlivier Lamy <olamy@apache.org>
Mon, 3 Oct 2011 07:43:20 +0000 (07:43 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 3 Oct 2011 07:43:20 +0000 (07:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1178319 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-test/pom.xml

index 0d6786011c6c5a69c198841268e8067d0946da52..93d9cfb8aff07ae40520e1b9c935e7a69f61c5de 100644 (file)
         <maxWaitTimeInMs>3600000</maxWaitTimeInMs>
       </properties>
     </profile>
+    <profile>
+      <id>ci-server</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <version>1.6</version>
+            <executions>
+              <execution>
+                <id>cleanup-files</id>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+                <configuration>
+                  <tasks>
+                    <delete file="${user.home}/.m2/archiva.xml" quiet="true"/>
+                  </tasks>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 
   <pluginRepositories>