Pergunta

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?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top