...
To make this permanent, configure the Surefire plugin as follows:
| No Format |
|---|
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<reportFormat>brief</reportFormat>
<useFile>false</useFile>
</configuration>
</plugin>
|
Or to set the properties without configuring the plugin use global property names:
| No Format |
|---|
<properties>
<surefire.useFile>false</surefire.useFile>
</properties>
|
...
Put this in your settings.xml:
| No Format |
|---|
<!-- skip tests by default, but allow override on command line -->
<profile>
<id>skiptests</id>
<activation>
<property>
<name>!maven.test.skip</name>
</property>
</activation>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
</profile>
|
...
If you expect your code to work in anything but a basic Java application, do not depend on the system classloader.
Suggested individual changes to existing documentation
- http://maven.apache.org/plugins/maven-surefire-plugin/examples/inclusion-exclusion.html should somewhere have a link to http://ant.apache.org/manual/dirtasks.html#patterns
