This is an automated email from the ASF dual-hosted git repository. veithen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
The following commit(s) were added to refs/heads/master by this push: new cb80854 Execute tests hermetically cb80854 is described below commit cb808543997b4e5c0fd66b1b8922374b1ae1ee7a Author: Andreas Veithen <andreas.veit...@gmail.com> AuthorDate: Wed Dec 30 18:55:39 2020 +0000 Execute tests hermetically --- .../shape/PolymorphicShapePortTypeImpl.java | 2 +- modules/xmlbeans/pom.xml | 7 +++++++ pom.xml | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) 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 @@ import javax.jws.WebService; 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>