Showing posts with label maven. Show all posts
Showing posts with label maven. Show all posts

Thursday, June 03, 2010

Maven SureFire Plugin With Multiple Executions

Sometime it is desired to run a set of tests multiple times in the same module. When this need arises, it is best to make use of executions in the sure fire plugin.

Reference: Targeting maven-surefire-plugin to lifecycle phases (turn off "test" phase execution)

Monday, September 15, 2008

Surefire Plugin fails to do java endorsed

Suppose you are trying to endorse xerces and xalan in your surefire plugin and you see errors such as:
Caused by: java.lang.RuntimeException: internal error
at org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl.applyFacets1(Unknown Source)
at org.apache.xerces.impl.dv.xs.SchemaDVFactoryImpl.createBuiltInTypes(Unknown Source)
at org.apache.xerces.impl.dv.xs.SchemaDVFactoryImpl.(UnknownSource)
... 45 more

This may mean that your setting of endorsed directory is not being propagated properly to the forked jvm by surefire. This was an issue in the 2.4.2 version of surefire.

This has been fixed in Surefire 2.4.3 (http://jira.codehaus.org/browse/SUREFIRE-491)