Execute tests hermetically
diff --git a/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/polymorphic/shape/PolymorphicShapePortTypeImpl.java b/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/polymorphic/shape/PolymorphicShapePortTypeImpl.java
index 9919502..2afbae7 100644
--- a/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/polymorphic/shape/PolymorphicShapePortTypeImpl.java
+++ b/modules/jaxws-integration/src/test/java/org/apache/axis2/jaxws/polymorphic/shape/PolymorphicShapePortTypeImpl.java
@@ -32,7 +32,7 @@
portName="PolymorphicShapePort",
targetNamespace="http://sei.shape.polymorphic.jaxws.axis2.apache.org",
endpointInterface="org.apache.axis2.jaxws.polymorphic.shape.sei.PolymorphicShapePortType",
- wsdlLocation="src/test/java/org/apache/axis2/jaxws/polymorphic/shape/META-INF/shapes.wsdl")
+ wsdlLocation="META-INF/shapes.wsdl")
public class PolymorphicShapePortTypeImpl implements PolymorphicShapePortType {
public Shape draw(Shape request) {
diff --git a/modules/xmlbeans/pom.xml b/modules/xmlbeans/pom.xml
index 975dd0d..01d27c8 100644
--- a/modules/xmlbeans/pom.xml
+++ b/modules/xmlbeans/pom.xml
@@ -105,6 +105,13 @@
</executions>
</plugin>
<plugin>
+ <groupId>com.github.veithen.maven</groupId>
+ <artifactId>hermetic-maven-plugin</artifactId>
+ <configuration>
+ <allowExec>true</allowExec>
+ </configuration>
+ </plugin>
+ <plugin>
<artifactId>maven-surefire-plugin</artifactId>
<inherited>true</inherited>
<configuration>
diff --git a/pom.xml b/pom.xml
index 2a7ecc2..08d7982 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1360,6 +1360,18 @@
</executions>
</plugin>
<plugin>
+ <groupId>com.github.veithen.maven</groupId>
+ <artifactId>hermetic-maven-plugin</artifactId>
+ <version>0.5.2</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate-policy</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Make test execution deterministic -->
@@ -1371,6 +1383,10 @@
<name>java.io.tmpdir</name>
<value>${project.build.directory}/tmp</value>
</property>
+ <property>
+ <name>user.home</name>
+ <value>${project.build.directory}/tmp</value>
+ </property>
</systemProperties>
</configuration>
</plugin>
@@ -1383,6 +1399,10 @@
<name>java.io.tmpdir</name>
<value>${project.build.directory}/tmp</value>
</property>
+ <property>
+ <name>user.home</name>
+ <value>${project.build.directory}/tmp</value>
+ </property>
</systemProperties>
</configuration>
</plugin>