SLING-1404 - use build-helper-maven-plugin to dynamically select port for testing
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@915273 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 042dceb..52ecbaf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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>