Hot deployment of JavaEE applications using Maven-Cargo pluin

377 views Asked by At

I am using maven-cargo plugin for deployment of a very simple JavaEE application. And I was able to run and deploy to jboss but the hot deployment of the class files and jsps is not working. (By hot deployment I mean when I change my Java classes then the changes should be reflected in the application without the server being getting restarted.)

For understanding cargo, I went through their documentation:

https://codehaus-cargo.github.io/cargo/Maven2+plugin.html

and various other So links also :

maven - Failed to execute cargo:start

Maven2: Cargo plugin hot deployment & Jonas support

Deploy web application using Cargo plugin to remote server

But none of posts gives an adequate answer to the questions.

I am using following maven goals which I am using to run and deploy my application : cargo:deploy cargo:run

Following the configuration done in pom.xml :

    <plugin>
      <groupId>org.codehaus.cargo</groupId>
      <artifactId>cargo-maven2-plugin</artifactId>
      <version>1.7.7</version>
      <configuration>
        <container>
          <containerId>jboss71x</containerId>
          <type>installed</type>
          <home>C:\softwares\jboss\jboss-eap</home>
        </container>
        <configuration>
            <type>existing</type>
          <home>C:\softwares\jboss\jboss-eap\standalone</home>
        </configuration>
        <deployer>
          <type>installed</type>
        </deployer>
        <deployables>
          <deployable>
            <groupId>com.test</groupId>
            <artifactId>test-demo</artifactId>
            <type>war</type>
          </deployable>
        </deployables>
      </configuration>
      <dependencies>
        <dependency>
          <groupId>org.jboss.as</groupId>
          <artifactId>jboss-as-controller-client</artifactId>
          <version>7.0.2.Final</version>
        </dependency>
      </dependencies>
    </plugin>
0

There are 0 answers