Deployment with cargo plugin

hallo,
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:

   <profile>
        <id>payara-remote</id>
        <activation>
            <property>
                <name>deployAll</name>
                <value>true</value>
            </property>
        </activation>
        <build>
	        <plugins>
               <plugin>
                 <groupId>org.codehaus.cargo</groupId>
                   <artifactId>cargo-maven2-plugin</artifactId>
                    <configuration>
                        <configuration>
                            <properties>
                                <cargo.servlet.port>${servlet.port}</cargo.servlet.port>
                            </properties>
                        </configuration>
							<deployables>
								<deployable>
									<groupId>${groupId}</groupId>
									<artifactId>${artifactId}</artifactId>
									<type>war</type>
								</deployable>
							</deployables>
                    </configuration>
                    <executions>
                        <execution>
                            <id>deploy</id>
                            <phase>pre-integration-test</phase>
                        </execution>
                    </executions>
                </plugin>
	        </plugins>
	    </build>
    </profile>

Hi,

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.

Rudy

Hi,
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

       <pluginRepository>
            <id>payara-patched-externals</id>
            <name>Payara Patched Externals</name>
            <url>https://raw.github.com/payara/Payara_PatchedProjects/master</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>