Message Boards

Issue in deployment of war file in the tomcat bundled 7x using cargo

M Bose, modified 10 Years ago.

Issue in deployment of war file in the tomcat bundled 7x using cargo

New Member Posts: 3 Join Date: 4/7/13 Recent Posts
Hi, I am trying start and stop the liferay tomcat bundled 7.x server which is installed locally using cargo plugin.
Code snippet: Pom.xml
------------------------------
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.0.6</version>
<executions>
<execution>
<id>start-liferay</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-liferay</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>false</skip>
<wait>false</wait>
<container>
<containerId>tomcat7x</containerId>
<home>${liferay.home}/tomcat-7.0.27
</home>
<timeout>180000</timeout>
<type>installed</type>
</container>
<configuration>
<home>${liferay.home}/tomcat-7.0.27</home>
<type>existing</type>
<properties>
<cargo.jvmargs>-Xmx1024m -XX:MaxPermSize=512m</cargo.jvmargs>
<cargo.tomcat.copywars>false</cargo.tomcat.copywars>
<cargo.servlet.port>${liferay.port}/cargo.servlet.port> <cargo.logging>high</cargo.logging>
</properties>
</configuration>
</configuration>
</plugin>


The issue is the cargo plugin is deploying the war file to the <tomcat_server>/webapps folder instead of the desired ${liferay.home}/deploy .I know which can be achieved by the configuration settings.But am facing issue to override the default behaviour of the cargo plugin i.e. it deploys the generated war file in the <tomcat_server>/webapps folder .I tried to set <cargo.tomcat.copywars> to false like provided in the code snippet above but it didn't help me to stop copying the war from {projectname.directory}/target to {tomcat_server}/webapps:

So any inputs on this will be a hearty welcome.

Regards,
thumbnail
Andres Luuk, modified 10 Years ago.

RE: Issue in deployment of war file in the tomcat bundled 7x using cargo

New Member Posts: 11 Join Date: 12/19/11 Recent Posts
Did this question got posted in the right forum? This sub forum is for JRebel related questions.
For JRebel is should not matter if the file is deployed in deploy or webapps. If the server finds the deployed app then everything should be ok.
Just in case I give the link for jrebel first aid:
http://zeroturnaround.com/software/jrebel/jrebel-first-aid/