Deployment with cargo plugin

i want to deploy my War with cargo-maven2-plugin but its not work like expected.
when i deploy the first time, its works, but when i deploy a second time i got an error after undeploy is executed.

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.7.16:redeploy (deploy) on project XXX-deploy: Execution deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.7.16:redeploy failed: Deployment has failed: null

here my code:



Can you try with the Payara customized version of the Maven Cargo plugin.

version: 1.8.4-payara-p1 (Payara_PatchedProjects/org/codehaus/cargo at master · payara/Payara_PatchedProjects · GitHub)

GitHub - payara/Payara_PatchedProjects can be used as Maven repository in your project.


is there another possibility? because I can’t downlode the pluginh from Github.
i tried with 1.8.5 but it still dont#t working.

You should add the Payara specific version of Maven Cargo using this plugin repository configuration

            <name>Payara Patched Externals</name>