There is the solution :
I need to add maven-surefire-plugin for setting system property on pom.xml file. That is only applies for test classes system property. You can set skip test if you change value of skipTests element true/false below
<project ...>
<dependencies>
...
</dependencies>
<build>
<plugins>
<plugin> .... </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<configuration>
<skipTests>true</skipTests>
<systemPropertyVariables>
<http.proxyHost>106.101.5.61</http.proxyHost>
<http.proxyPort>8080</http.proxyPort>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</project>
For more detail please refer maven surefire plugin document
No comments:
Post a Comment