You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2013/06/19 23:39:01 UTC

svn commit: r1494778 - in /maven/sandbox/trunk/dist-tools/dist-tool-plugin: pom.xml src/it/ src/it/settings.xml

Author: rfscholte
Date: Wed Jun 19 21:39:01 2013
New Revision: 1494778

URL: http://svn.apache.org/r1494778
Log:
Prepare project for ITs

Added:
    maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/it/
    maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/it/settings.xml
Modified:
    maven/sandbox/trunk/dist-tools/dist-tool-plugin/pom.xml

Modified: maven/sandbox/trunk/dist-tools/dist-tool-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/dist-tools/dist-tool-plugin/pom.xml?rev=1494778&r1=1494777&r2=1494778&view=diff
==============================================================================
--- maven/sandbox/trunk/dist-tools/dist-tool-plugin/pom.xml (original)
+++ maven/sandbox/trunk/dist-tools/dist-tool-plugin/pom.xml Wed Jun 19 21:39:01 2013
@@ -244,4 +244,36 @@
             </plugin>
         </plugins>       
     </reporting>
+    
+    <profiles>
+      <profile>
+        <id>run-its</id>
+        <build>
+          <plugins>
+	          <plugin>
+	            <groupId>org.apache.maven.plugins</groupId>
+	            <artifactId>maven-invoker-plugin</artifactId>
+	            <version>1.8</version>
+	            <configuration>
+	              <projectsDirectory>src/it</projectsDirectory>
+	              <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
+	              <preBuildHookScript>setup</preBuildHookScript>
+	              <postBuildHookScript>verify</postBuildHookScript>
+	              <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
+	              <settingsFile>src/it/settings.xml</settingsFile>
+	            </configuration>
+	            <executions>
+	              <execution>
+	                <id>integration-test</id>
+	                <goals>
+	                  <goal>install</goal>
+	                  <goal>run</goal>
+	                </goals>
+	              </execution>
+	            </executions>
+	          </plugin>
+          </plugins>
+        </build>
+      </profile>
+    </profiles>
 </project>
\ No newline at end of file

Added: maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/it/settings.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/it/settings.xml?rev=1494778&view=auto
==============================================================================
--- maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/it/settings.xml (added)
+++ maven/sandbox/trunk/dist-tools/dist-tool-plugin/src/it/settings.xml Wed Jun 19 21:39:01 2013
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<settings>
+  <profiles>
+    <profile>
+      <id>it-repo</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <repositories>
+        <repository>
+          <id>local.central</id>
+          <url>@localRepositoryUrl@</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>true</enabled>
+          </snapshots>
+        </repository>
+      </repositories>
+      <pluginRepositories>
+        <pluginRepository>
+          <id>local.central</id>
+          <url>@localRepositoryUrl@</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>true</enabled>
+          </snapshots>
+        </pluginRepository>
+      </pluginRepositories>
+    </profile>
+  </profiles>
+</settings>