diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-12-01 13:46:36 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-12-01 13:46:36 +0100 |
commit | 29d4aa57e2301cd0822465bad3b458cbecbe61c5 (patch) | |
tree | eec0e1b28acd45ce0f6aa0d34c907819dc3e05c6 /server/sonar-web/pom.xml | |
parent | c9632d8ffeb9c9a8354ac8503142b69d57a60476 (diff) | |
download | sonarqube-29d4aa57e2301cd0822465bad3b458cbecbe61c5.tar.gz sonarqube-29d4aa57e2301cd0822465bad3b458cbecbe61c5.zip |
Use an available port for JS tests
Diffstat (limited to 'server/sonar-web/pom.xml')
-rw-r--r-- | server/sonar-web/pom.xml | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/server/sonar-web/pom.xml b/server/sonar-web/pom.xml index 27efe591792..a7d263fd129 100644 --- a/server/sonar-web/pom.xml +++ b/server/sonar-web/pom.xml @@ -108,6 +108,24 @@ </executions> </plugin> <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>reserve-network-port</id> + <goals> + <goal>reserve-network-port</goal> + </goals> + <phase>process-resources</phase> + <configuration> + <portNames> + <portName>jsTestPort</portName> + </portNames> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <executions> @@ -139,7 +157,7 @@ <goal>grunt</goal> </goals> <configuration> - <arguments>${gruntTask}</arguments> + <arguments>${gruntTask} --port=${jsTestPort}</arguments> </configuration> </execution> </executions> |