Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Not A Bug
-
Affects Version/s: 1.2.0, 1.2.3
-
Fix Version/s: 1.2.4
-
Component/s: Documentation
-
Labels:None
-
Environment:Windows XP
-
Complexity:Intermediate
-
Tested on JDKs:1.6
-
Number of attachments :
Description
in the pom
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.2.0</version>
<configuration>
<container>
<containerId>tomcat7x</containerId>
<home>E:/appft/apache-tomcat-7.0.29</home>
</container>
<configuration>
<!-- for an unknow reason, cargo do not create the directory !!! -->
<home>target/tomcat7x</home>
<type>standalone</type>
</configuration>
<deployables>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<type>war</type>
</deployable>
</deployables>
</configuration>
</plugin>
Console output
[INFO] --- cargo-maven2-plugin:1.2.0:deploy (default-cli) @ wicket-quickstart --- [INFO] [edDeployerDeployMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-tomcat:jar:1.2.0 for container tomcat7x [INFO] [stalledLocalDeployer] Deploying [E:\SLGD6749\Data\Projet-TAO\00_workspace\Etude Wicket\wicket-quickstart\target\wicket-quickstart-1.0.2-SNAPSHOT.war] to [target/tomcat7x/webapps]... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.031s [INFO] Finished at: Wed Aug 01 12:35:44 CEST 2012 [INFO] Final Memory: 9M/23M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.2.0:deploy (default-cli) on project wicket-quickstart: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.2.0:deploy failed: Failed to deploy [E:\SLGD6749\Data\Projet-TAO\00_workspace\Etude Wicket\wicket-quickstart\target\wicket-quickstart-1.0.2-SNAPSHOT.war] to [target/tomcat7x/webapps]: Target deployable directory does not exist: target/tomcat7x/webapps -> [Help 1]
Hi Zart
In order to configure a container (including the deployables), you should use cargo:configure and not cargo:deploy
Thank you