0

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>
Deep
  • 929
  • 2
  • 16
  • 32
  • . (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.) ==> if you update the application on JBoss deployment directory yes. So you change the code, compile, generate a new app, update on JBoss directory. Hot deployment means you – Francisco Melo junior Sep 01 '19 at 17:35
  • @FranciscoMelojunior :for instance when I use eclipse IDE and use the application server from inside of eclipse,the changes are automatically deployed to the server when the project builds again.I explicitly do not compile or generate a new app, it happens automatically.This is not happening when I am using cargo plugin. – Deep Sep 01 '19 at 19:29
  • humm, interesting, This is happen when you are or when you are using? add the server.log here pls. – Francisco Melo junior Sep 01 '19 at 23:04

0 Answers0