make sure JAVA_HOME is set before tests are run

relates to #12961
This commit is contained in:
Britta Weber 2015-08-26 18:08:03 +02:00
parent de2fcd4be4
commit 3f40e1ca3c
1 changed files with 16 additions and 1 deletions

17
pom.xml
View File

@ -462,6 +462,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>
@ -526,7 +527,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>enforce-versions</id>
@ -561,6 +561,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>