Re: Cargo undeploy error

2007-02-06 Thread Vincent Massol

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-testmvn 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-testmvn 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]

RE: Cargo undeploy error

2007-02-06 Thread jelle.volckaert
Hi Vincent,

I'm using the latest release of the 0.3-SNAPSHOT
I've also tried a standalone tomcat server a few minutes ago.
Mvn cargo:start and mvn cargo:deploy work fine, but cargo:undeploy gives me the 
same error.

I checked my repository and I'm using the latest release 0.3-20070124 build 6.

POM content:

plugin
  groupIdorg.codehaus.cargo/groupId
  artifactIdcargo-maven2-plugin/artifactId
  version0.3-SNAPSHOT/version
  ...
/plugin

pluginRepositories
  pluginRepository
idcargo m2 snapshot repository/id
urlhttp://snapshots.repository.codehaus.org//url
releases
  enabledtrue/enabled
/releases
  /pluginRepository
/pluginRepositories

Kind regards.


-Original Message-
From: Vincent Massol [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 6 februari 2007 10:05
To: Maven Users List
Subject: Re: Cargo undeploy error

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-testmvn 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-testmvn 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