{"id":1167,"hash":"6f33123586d15c106bf45b2f1f7c93a1736835a63db89fad92c5d1de80afadc3","pattern":"maven - Failed to execute cargo:start","full_message":"I'm trying to configure cargo automatic deployment in my servlet project and I have these in pom.xml file:\n\n    <dependency>\n      <groupId>org.codehaus.cargo</groupId>\n      <artifactId>cargo-core-api-module</artifactId>\n      <version>1.4.3</version>\n    </dependency>\n     <!--\n     <dependency>\n       <groupId>org.codehaus.cargo</groupId>\n       <artifactId>cargo-core-container-tomcat</artifactId>\n       <version>1.4.2-SNAPSHOT</version>\n    </dependency>\n        -->     \n    <dependency>         \n        <groupId>org.codehaus.cargo</groupId>\n        <artifactId>cargo-maven2-plugin</artifactId>\n        <version>1.4.2</version>\n    </dependency>\n    <build>\n     <plugins>\n       <!-- cargo plugin  -->\n  <plugin>\n    <groupId>org.codehaus.cargo</groupId>\n    <artifactId>cargo-maven2-plugin</artifactId>\n    <configuration>\n        <container>\n            <containerId>tomcat6x</containerId>\n            <type>remote</type>\n            <systemProperties>\n                <cargo.jvmargs>-XX:MaxPermSize=256M -Xmx1024m</cargo.jvmargs>\n            </systemProperties>\n        </container>\n        <configuration>\n            <type>runtime</type>\n            <properties>\n                <cargo.hostname>${remote.hostname}</cargo.hostname>\n                <cargo.protocol>${remote.protocol}</cargo.protocol>\n                <cargo.servlet.port>9000</cargo.servlet.port>\n                <cargo.tomcat.manager.url>http://localhost:9000/manager</cargo.tomcat.manager.url>\n                <cargo.remote.username>user</cargo.remote.username>\n                <cargo.remote.password>pass</cargo.remote.password>\n            </properties>\n        </configuration>\n        <deployer>\n            <type>remote</type>\n            <deployables>\n                <deployable>\n                    <groupId>${groupId}</groupId>\n                    <artifactId>${artifactId}</artifactId>\n                    <type>war</type>\n                    <properties>\n                        <context>latest</context>\n                    </properties>\n                </deployable>\n            </deployables>\n        </deployer>\n    </configuration>\n</plugin>\n<!-- End cargo plugin -->\n     </plugins>\n     <build>>\n\nWhen I try to start cargo via mvn clean cargo:start I get BUILD FAILURE:\n\n[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.3:start (default-cli) on project my-app: Unable to parse configuration of mojo org.codehaus.cargo:cargo-maven2-plugin:1.4.3:start for parameter deployables: Cannot find 'deployables' in class org.codehaus.cargo.maven2.configuration.Deployer -> [Help 1]\n\nany idea? tnx.","ecosystem":"cargo","package_name":"java","package_version":null,"solution":"According to the documentation \"deployer\" element can not contain \"deployables\" child element. To make things work you should place \"deployables\" under \"configuration\" element\n\n<configuration>\n      <container>\n        [...]\n      </container>\n      <configuration>\n        <type>standalone</type>\n        [...]\n      </configuration>\n      <deployables>\n        <deployable>\n          <groupId>my.war.groupId</groupId>\n          <artifactId>my-war</artifactId>\n          <type>war</type>\n        </deployable>\n      </deployables>\n    </configuration>","confidence":0.85,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/18061318/maven-failed-to-execute-cargostart","votes":1,"created_at":"2026-04-19T04:52:28.796356+00:00","updated_at":"2026-04-19T04:52:28.796356+00:00"}