1 Reply Latest reply on Mar 29, 2017 3:50 PM by mjobanek

    Tomcat 8 Managed with Maven

    tnguyen90

      Hi all,

       

      I am able to get Arquillian to run the Junit test.

       

      But, when I do an Maven: clean install, the changes that I set in Tomcat-user.xml and server.xml are wiped. Then I would have to go back and change the setting in-order for the junit test to pass.

      Is there a way to have "clean install" not create a new target/server/tomcat?

       

      Arquillian.xml

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>

      <arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

        <container default="true" qualifier="arquillian-weld-ee-embedded">

          <configuration>

            <property name="chameleonTarget">tomcat:8.0.41:MANAGED</property>

            <property name="jmxPort">8099</property>

            <property name="user">both</property> 

            <property name="pass">admin</property>

          </configuration>

        </container>

      </arquillian>

       

      Parent Pom:

      <profiles>

          <profile>

            <id>arquillian-tomcat-managed</id>

            <activation>

              <activeByDefault>true</activeByDefault>

            </activation>

            <build>

              <plugins>

                <plugin>

                  <artifactId>maven-surefire-plugin</artifactId>

                  <version>2.14.1</version>

                  <configuration>

                    <systemPropertyVariables>

                      <arquillian.launch>arquillian-tomcat-managed</arquillian.launch>

                      <chameleon.target>tomcat:8.0.41:MANAGED</chameleon.target>

                    </systemPropertyVariables>

                  </configuration>

                </plugin>

              </plugins>

            </build>

          </profile>

        </profiles>

       

      Thank you for your time!