Maven 3 is used to manage the build process. To build this plugin, please make sure you have the following installed:-
- The Git command line tools
- A recent JDK (the current Oracle JDK is recommended)
- Maven 3 (http://maven.apache.org/download.html)
You then clone and checkout master trunk:-
$ git clone git://github.com/scalatest/scalatest-maven-plugin.git
$ cd scalatest-maven-plugin
Finally use the following commands to build for ScalaTest Maven Plugin:
$ mvn clean package
The built output will be available in target/.
To use the ScalaTest Maven plugin, you need to disable SureFire and enable ScalaTest. Here's an example of how to do this in your pom.xml:
<!-- disable surefire -- >
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.7</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
<!-- enable scalatest -- >
<plugin>
<groupId>org.scalatest</groupId>
<artifactId>maven-scalatest-plugin</artifactId>
<version>1.0.M2</version>
<configuration>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<junitxml>.</junitxml>
<filereports>WDF TestSuite.txt</filereports>
</configuration>
<executions>
<execution>
<id>test</id>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>