Hi Jelle,
Could you use the 0.3-SNAPSHOT version (we've fixed that in there).
See http://cargo.codehaus.org/Maven2+Plugin+Installation
Thanks
-Vincent
PS: Next time, please use the cargo mailing lists.
On Feb 6, 2007, at 9:13 AM, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
Hi,
I'm exploring the possibilities of the Maven cargo plugin to deploy my
projects on a remote Apache Tomcat server.
I've created a small web project that contains a simple .html file
with
some info on it.
I packaged it as a WAR so I can deploy it on my server.
Now I made a cargo configuration in my project's pom.
Deploying works just fine, but when I want to undeploy the web
project,
I get a weird error.
Just like the undeploy goal isn't supported.
I've already checked the version of the maven-cargo-plugin, but
everutihing seems ok to me.
Cargo: deploy works fine as you can see
But when I try to undeploy my war, I get the following error.
C:\eGovDev\cargo-test>mvn cargo:deploy
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cargo'.
[INFO]
----------------------------------------------------------------------
--
-
---
[INFO] Building cargo-test
[INFO] task-segment: [cargo:deploy]
[INFO]
----------------------------------------------------------------------
--
-
---
[INFO] [cargo:deploy]
[INFO]
----------------------------------------------------------------------
--
[INFO] BUILD SUCCESSFUL
[INFO]
----------------------------------------------------------------------
--
[INFO] Total time: 8 seconds
[INFO] Finished at: Tue Feb 06 09:08:28 CET 2007
[INFO] Final Memory: 3M/8M
[INFO]
----------------------------------------------------------------------
--
C:\eGovDev\cargo-test>mvn cargo:undeploy
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cargo'.
[INFO]
----------------------------------------------------------------------
--
-
---
[INFO] Building cargo-test
[INFO] task-segment: [cargo:undeploy]
[INFO]
----------------------------------------------------------------------
--
-
---
[INFO] [cargo:undeploy]
[INFO]
----------------------------------------------------------------------
--
[ERROR] FATAL ERROR
[INFO]
----------------------------------------------------------------------
--
[INFO] Not supported
[INFO]
----------------------------------------------------------------------
--
[INFO] Trace
org.codehaus.cargo.container.ContainerException: Not supported
at
org.codehaus.cargo.container.spi.deployer.AbstractDeployer.undeploy(A
bstractDeployer.java:99)
at
org.codehaus.cargo.maven2.DeployerUndeployMojo.performDeployerActionO
nSingleDeployable(DeployerUndeployMojo.java:39)
at
org.codehaus.cargo.maven2.AbstractDeployerMojo.performDeployerActionO
nAllDeployables(AbstractDeployerMojo.java:104)
at
org.codehaus.cargo.maven2.AbstractDeployerMojo.doExecute(AbstractDepl
oyerMojo.java:47)
at
org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo
.java:243)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:420)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
123)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
----------------------------------------------------------------------
--
[INFO] Total time: 7 seconds
[INFO] Finished at: Tue Feb 06 09:08:57 CET 2007
[INFO] Final Memory: 3M/8M
[INFO]
----------------------------------------------------------------------
--
Here's my pom content:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>cargo.test</groupId>
<artifactId>cargo-test</artifactId>
<packaging>war</packaging>
<version>1.0</version>
<name>cargo-test</name>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>0.3-SNAPSHOT</version>
<configuration>
<configuration>
<type>existing</type>
<home>C:\Program Files\Apache Software Foundation\Tomcat 5.5</home>
</configuration>
<container>
<containerId>tomcat5x</containerId>
<home>C:\Program Files\Apache Software Foundation\Tomcat 5.5</home>
<log>C:\Program Files\Apache Software Foundation\Tomcat
5.5\logs\cargo-test.log</log>
</container>
<deployer>
<deployables>
<deployable>
<artifactId>cargo-test</artifactId>
<groupId>cargo.test</groupId>
<type>war</type>
</deployable>
</deployables>
</deployer>
</configuration>
</plugin>
</plugins>
</build>
<pluginRepositories>
<pluginRepository>
<id>cargo m2 snapshot repository</id>
<url>http://snapshots.repository.codehaus.org/</
url>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</project>
Anybody who has already worked with Cargo and got everything
running, or
already dealt with this issue?
Kind regards
Jelle
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]