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>