ingwarsw / arquillian-suite-extension

Arquillian extension that will force single deployment for all tests
Apache License 2.0
67 stars 20 forks source link

Even specify @ArquillianSuiteDeployment, the arquillian still removes old war deployment and install the new one #55

Closed phamngoctan closed 4 years ago

phamngoctan commented 4 years ago

Hello all,

Just a comment about this issue, it took me one day to figure it out. Maybe it would help someone who had the same issue. The issue is that: I accidentally set the maven pom.xml like this: `

org.apache.maven.plugins
    <artifactId>maven-failsafe-plugin</artifactId>
    <version>2.19.1</version>
    <configuration>
      <forkMode>always</forkMode>
      <argLine>-Xms512m -Xmx2048m -XX:MaxPermSize=128m</argLine>
      <systemPropertyVariables>
        <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
        <jboss.home>${project.build.directory}/wildfly-${version.wildfly}</jboss.home>
      </systemPropertyVariables>
      <redirectTestOutputToFile>false</redirectTestOutputToFile>
    </configuration>
  </plugin>

`

The forkMode with 'always' value makes the test run the deployments every Integration Test.

Just a remark for others. Thanks.