Index: src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java =================================================================== --- src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java (revision 427968) +++ src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java (working copy) @@ -114,6 +114,13 @@ private List classpathElements; /** + * Additional elements to be appended to the classpath + * + * @parameter + */ + private List additionalClasspathElements; + + /** * Base directory where all reports are written to. * * @parameter expression="${project.build.directory}/surefire-reports" @@ -565,6 +572,23 @@ surefireBooter.addSurefireClassPathUrl( classpathElement ); } + + if ( additionalClasspathElements != null && additionalClasspathElements.size() > 0 ) + { + + for ( Iterator i = additionalClasspathElements.iterator(); i.hasNext(); ) + { + String classpathElement = (String) i.next(); + getLog().debug( "Adding " + classpathElement + " to the classpath" ); + surefireBooter.addClassPathUrl( classpathElement ); + surefireBooter.addSurefireClassPathUrl( classpathElement ); + } + } + else { + getLog().debug( "No additions to classpath" ); + } + + // ---------------------------------------------------------------------- // Forking // ----------------------------------------------------------------------