Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added 2 minor sections

...

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