Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 0.3.1-maven2
-
Fix Version/s: 1.0.1-beta-2, 1.0.1-beta-3, 1.0.1
-
Component/s: Maven2
-
Labels:None
-
Environment:OS X 10.4.9
Java 1.5.0_07
Maven 2.0.6
-
Complexity:Intermediate
-
Tested on JDKs:JDK 5
-
Number of attachments :
Description
I got this to work by using:
<deployable>
<properties>
<context>ROOT</context>
</properties>
</deployable>
(full configuration below)
I'm using the cargo-maven2-plugin 0.3.1. Unfortunately, it seems to
have a bug in that it deploys the WAR twice - once at / and a second
time at /ROOT. Obviously, its not that big of a deal, but if I use
<context>anything</context>, it only deploys it once.
Thanks,
Matt
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>0.3.1</version>
<configuration>
<wait>$
</wait>
<container>
<containerId>$
<!-
<zipUrlInstaller>
<url>${cargo.container.url}</url>
<installDir>${installDir}</installDir>
</zipUrlInstaller>
</container>
<configuration>
<home>${project.build.directory}/${cargo.container}
/container</home>
<properties>
<cargo.hostname>$
</cargo.hostname>
<cargo.servlet.port>$
</cargo.servlet.port>
</properties>
<deployables>
<deployable>
<properties>
<context>ROOT</context>
</properties>
</deployable>
</deployables>
</configuration>
</configuration>
<executions>
<execution>
<id>start-container</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-container</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
This was meant to be a way to open
CARGO-516. This fix seems to work for deploy but, ROOT context cannot be undeployed. Attaching error log.