SLING-1404 - use build-helper-maven-plugin to select ports in all modules that do integration testing
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@915282 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/inplace-integration-test/pom.xml b/inplace-integration-test/pom.xml
index 934a355..fd9a2a8 100644
--- a/inplace-integration-test/pom.xml
+++ b/inplace-integration-test/pom.xml
@@ -27,7 +27,6 @@
<name>Sample In-Place Integration Test</name>
<description>Sling Integration Test Demo Project</description>
<properties>
- <http.port>8888</http.port>
<jetty.scan.interval.seconds>0</jetty.scan.interval.seconds>
<jetty.sling.home>target/sling</jetty.sling.home>
<test.host>localhost</test.host>
@@ -45,6 +44,25 @@
<build>
<plugins>
<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.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.0.1</version>