The baselinetest plugin can be invoked by calling the test phase of the build lifecycle.
mvn test
Contexts should be placed in the src/test/contexts directory. Suites should be placed in the src/test/suites directory. Test classes should be placed in the src/test/java directory. Results will appear in the target/test/results directory.
The baselinetest plugin must first be configured in your pom.xml as follows:
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <groupId>net.sf.baselinetest</groupId> <artifactId>baselinetest-maven-plugin</artifactId> <version>1.5.1</version> <configuration> <contexts>simple</contexts> <suites>*</suites> <runMaxMemory>512m</runMaxMemory> </configuration> <executions> <execution> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> </plugins> ... <dependencies> <dependency> <groupId>net.sf.baselinetest</groupId> <artifactId>baselinetest</artifactId> <version>1.5.1</version> <scope>test</scope> </dependency> ... </dependencies> </build>