0

I need to add a crypto provider to the embedded JBoss used by Seam for integration tests.

For the regular JBoss it's a simple matter, just drop the files into the /lib folder of the server instance. With the embedded JBoss, however, things seem to be different. I've tried putting the jars in /embedded-jboss/bootstrap/lib and /embedded-jboss but no change, the classes are not seen.

I've read http://community.jboss.org/wiki/EmbeddedAndJavaSE and also looked in the source of org.jboss.embedded.Bootstrap but I haven't found a way yet. The build is done with Maven if it matters.

Thanks a lot for any suggestions.

4

1 回答 1

0

与此同时,我找到了答案:它们可以添加到运行测试的插件的类路径中,如下所示。为我工作。

 <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
        <!-- snip -->
        <additionalClasspathElements>
            <additionalClasspathElement>add/here/your/jar</additionalClasspathElement>
        </additionalClasspathElements>
于 2010-09-07T15:32:27.073 回答