Author: bdelacretaz
Date: Tue Feb 23 10:43:44 2010
New Revision: 915273

URL: http://svn.apache.org/viewvc?rev=915273&view=rev
Log:
SLING-1404 - use build-helper-maven-plugin to dynamically select port for 
testing

Modified:
    sling/trunk/launchpad/testing/pom.xml

Modified: sling/trunk/launchpad/testing/pom.xml
URL: 
http://svn.apache.org/viewvc/sling/trunk/launchpad/testing/pom.xml?rev=915273&r1=915272&r2=915273&view=diff
==============================================================================
--- sling/trunk/launchpad/testing/pom.xml (original)
+++ sling/trunk/launchpad/testing/pom.xml Tue Feb 23 10:43:44 2010
@@ -44,11 +44,6 @@
     </scm>
 
     <properties>
-        <!--
-            Jetty default port (override with -D)
-        -->
-        <http.port>8888</http.port>
-
         <!-- path suffix for HTTP access to Sling -->
         <http.base.path />
 
@@ -104,6 +99,25 @@
                 </configuration>
             </plugin>
             <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <version>1.5</version>
+                <executions>
+                    <execution>
+                        <id>reserve-network-port</id>
+                        <goals>
+                            <goal>reserve-network-port</goal>
+                        </goals>
+                        <phase>process-resources</phase>
+                        <configuration>
+                            <portNames>
+                                <portName>http.port</portName>
+                            </portNames>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-antrun-plugin</artifactId>
                  <executions>


Reply via email to