surefire 2.4.3 リリース

というわけで surefire 2.4.3 がリリースされました。
http://maven.apache.org/plugins/maven-surefire-plugin/

リリース文によると additionalClassPath についての文書が追加されたようなので以下訳文。

      • -

元:http://maven.apache.org/plugins/maven-surefire-plugin/examples/additional-classpath.html

Additional Classpath Elements

もし Surefire を実行する際にクラスパスに対して何か(リソースや特別なjarファイルなど)追加したいなら、一般にはdependencyとしてクラスパスに追加することを勧めます。共有するJarファイルをあなたの組織のプライベートなリモートレポジトリにデプロイすることを考えてください。

しかし、どうしてもクラスパスにカスタムしたリソースやJarファイルを追加したいなら additionalClasspathElements 要素を使用できます。

Additional Classpath Elements

If you need to put more stuff in your classpath when Surefire executes (e.g some funky resources or a container special jar), we normally recommend you add it to your classpath as a dependency. Consider deploying shared jars to a private remote repository for your organization.

But, if you must, you can use the additionalClasspathElements element to add custom resources/jars to your classpath.

<project>
  [...]
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <additionalClasspathElements>
                <additionalClasspathElement>path/to/additional/resources</additionalClasspathElement>
                <additionalClasspathElement>path/to/additional/jar</additionalClasspathElement>
          </additionalClasspathElements>
        </configuration>
      </plugin>
    </plugins>
  </build>
  [...]
</project>

あまりたいしたことは書かれていないような。