]> source.dussan.org Git - archiva.git/commitdiff
move cargo port to a property and selenium plugin version to pluginManagement section
authorOlivier Lamy <olamy@apache.org>
Wed, 15 Jun 2011 21:38:02 +0000 (21:38 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 15 Jun 2011 21:38:02 +0000 (21:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1136207 13f79535-47bb-0310-9956-ffa450edef68

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

index f327ab10e9bfb5cbdd7984b0a6a7311035cabf9e..3e56f8ebe143f5d395f0d6f1e2b91208cbfc2de4 100644 (file)
   <packaging>pom</packaging>
   <name>Archiva Web :: Application Tests</name>
 
+  <properties>
+    <container.test.port>9696</container.test.port>
+  </properties>
+
   <dependencies>
     <dependency>
       <groupId>org.testng</groupId>
         </includes>
       </testResource>
     </testResources>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>selenium-maven-plugin</artifactId>
+          <version>1.1</version>
+        </plugin>
+      </plugins>
+    </pluginManagement>
     <plugins>
       <plugin>
         <artifactId>maven-resources-plugin</artifactId>
                 <phase>integration-test</phase>
                 <configuration>
                   <tasks>
-                    <get src="http://localhost:9696/archiva/" dest="${project.build.directory}/index.html"/>
+                    <get src="http://localhost:${container.test.port}/archiva/" dest="${project.build.directory}/index.html"/>
                     <delete file="${project.build.directory}/index.html"/>
                   </tasks>
                 </configuration>
                 <home>${project.build.directory}/${container.name}conf</home>
                 <type>existing</type>
                 <properties>
-                  <cargo.servlet.port>9696</cargo.servlet.port>
+                  <cargo.servlet.port>${container.test.port}</cargo.servlet.port>
                   <cargo.jvmargs>${cargo.jvm.args}</cargo.jvmargs>
                 </properties>
               </configuration>
         </property>
       </activation>
       <properties>
-        <baseUrl>http://localhost:9696/archiva/</baseUrl>
+        <baseUrl>http://localhost:${container.test.port}/archiva/</baseUrl>
       </properties>
     </profile>
     <profile>
           <plugin>
             <groupId>org.codehaus.mojo</groupId>
             <artifactId>selenium-maven-plugin</artifactId>
-            <version>1.1</version>
             <executions>
               <execution>
                 <phase>pre-integration-test</phase>