Testing java persistence, want to integrate jrebel on arquillian tests. I've read something about an arquillian jrebel extension, but could not configure it well (maven dependency error).

Right now I'm just running remotely Jboss with jrebel plugin, on pom.xml:

<plugin>
            <groupId>org.zeroturnaround</groupId>
            <artifactId>jrebel-maven-plugin</artifactId>
            <executions>
                <execution>
                    <id>generate-rebel-xml</id>
                    <phase>process-resources</phase>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                </execution>
            </executions>
</plugin>

Is the above enough?

有帮助吗?

解决方案

What maven plugin does is that it generates rebel.xml configuration file. It is required to map the resources outside of the deployed application. The JVM itself should be started with a -javaagent argument (see the manual). For Arquillian, there's a community contributed extension, but I'm not sure how it actually works.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top