Use system properties in Maven test 

Joined:
08/13/2009
Posts:
164

February 15, 2012 21:26:46    Last update: February 15, 2012 21:26:46
Add configuration variables for the surefire plugin to use system properties in Maven test:
<build>
	<plugins>
	    <plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-surefire-plugin</artifactId>
		<version>2.12</version>
		<configuration>
		    <systemPropertyVariables>
			<config.home>${project.basedir}/config</config.home>
			<snother.system.property>dummy value</another.system.property>
		    </systemPropertyVariables>
		</configuration>
	    </plugin>
	</plugins>
</build>
Share |
| Comment  | Tags