1 Reply Latest reply on Jan 20, 2016 7:04 AM by Jay SenSharma

    how do remote deploy using cargo on jboss e.a.p. 6.3.x ??

    Wenderson Souza Newbie

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

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

        <modelVersion>4.0.0</modelVersion>

        <groupId>br.com.app.sample</groupId>

        <artifactId>app-sample</artifactId>

        <packaging>pom</packaging>

        <version>1.0-SNAPSHOT</version>

        <name>app-sample</name>

        <url>http://maven.apache.org</url>

        <dependencies>

          <dependency>

            <groupId>junit</groupId>

            <artifactId>junit</artifactId>

            <version>3.8.1</version>

            <scope>test</scope>

          </dependency>

          <dependency>

        <groupId>org.codehaus.cargo</groupId>

        <artifactId>cargo-maven2-plugin</artifactId>

              <version>1.4.18</version>

        </dependency>

          <dependency>

        <groupId>org.jboss.as</groupId>

        <artifactId>jboss-as-controller-client</artifactId>

        <version>7.1.0.Final</version>

      </dependency>

        </dependencies>

        <modules>

          <module>app-sample-core</module>

          <module>app-sample-web</module>

          <module>app-sample-ear</module>

        </modules>

       

        <build>

              <plugins>

                  <plugin>

                      <groupId>org.codehaus.cargo</groupId>

                      <artifactId>cargo-maven2-plugin</artifactId>

                      <version>1.4.18</version>

                      <configuration>

                          <container>

                              <containerId>jboss7x</containerId>

          <type>remote</type>

                          </container>

                          <configuration>

        <type>runtime</type>

        <properties>

        <cargo.hostname>localhost</cargo.hostname>

        <cargo.jboss.management-native.port>19999</cargo.jboss.management-native.port>

        </properties>

        </configuration>

                  <type>remote</type> 

                   <deployables> 

                       <deployable> 

                           <groupId>br.com.app.sample.web</groupId>

        <artifactId>app-sample-web</artifactId>

                           <type>war</type> 

                       </deployable> 

                   </deployables> 

                      </configuration>

                  </plugin>

              </plugins>

          </build>   

      </project>