Merge pull request #13124 from brwe/check-java-home

make sure JAVA_HOME is set before tests are run
This commit is contained in:
Britta Weber 2015-09-16 11:55:10 +02:00
commit d498006525
1 changed files with 16 additions and 1 deletions

17
pom.xml
View File

@ -478,6 +478,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -542,7 +543,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>enforce-versions</id>
@ -577,6 +577,21 @@
<goal>display-info</goal>
</goals>
</execution>
<execution>
<id>enforce-java-home-is-set</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireEnvironmentVariable>
<variableName>JAVA_HOME</variableName>
<message>"JAVA_HOME must be set and point to the jdk to run the tests"</message>
</requireEnvironmentVariable>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
<plugin>