Tomcat deploy to different webapps directory with existing configuration

70 views
Skip to first unread message

Andrew Holland

unread,
Apr 28, 2016, 4:17:54 AM4/28/16
to Codehaus Cargo
Hi,

I'm trying to deploy to deploy a webapp to a different webapps directory using the maven plugin with an existing tomcat, it seems the 'cargo.tomcat.webappsDirectory' property is not available to the 'existing' configuration?  is there any reason this was not implemented? or cannot be implemented?

Here's the configuration i used

<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration>
<container>
<containerId>tomcat7x</containerId>
<home>${env.TOMCAT_HOME}</home>
</container>
<configuration>
<type>existing</type>
<home>${env.TOMCAT_HOME}</home>
<properties>
<cargo.tomcat.webappsDirectory>webapps/somedir</cargo.tomcat.webappsDirectory>
<tomcat.webappsDirectory>webapps/somedir</tomcat.webappsDirectory>
<webappsDirectory>webapps/somedir</webappsDirectory>
</properties>
</configuration>
<deployables>
<deployable>
<properties>
<context>${flightdeck.context}</context>
</properties>
</deployable>
</deployables>
</configuration>
</plugin>

it always deploys to the webapps folder.

 
Thanks

Andy

Andrew Holland

unread,
Apr 28, 2016, 4:25:30 AM4/28/16
to Codehaus Cargo
Ignore me it does work
Reply all
Reply to author
Forward
0 new messages