Can't run Maven cargo plugin with the shortened command mvn cargo:deploy

View: New views
3 Messages — Rating Filter:   Alert me  

Can't run Maven cargo plugin with the shortened command mvn cargo:deploy

by Cecchi Sandrone :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
I have a strange problem running cargo. If I try to launch cargo with:

mvn cargo:deploy

I receive this error:

V:\Workspace\PLX-WebApplication>mvn cargo:deployer-redeploy
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cargo'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not exist or no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Jan 30 12:17:24 CET 2009
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------

while calling the entire command:
mvn org.codehaus.cargo:cargo-maven2-plugin:1.0-beta-2:deployer-redeploy

V:\Workspace\PLX-WebApplication>mvn org.codehaus.cargo:cargo-maven2-plugin:1.0-beta-2:deployer-redeploy
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building PLX WebApplication
[INFO]    task-segment: [org.codehaus.cargo:cargo-maven2-plugin:1.0-beta-2:deployer-redeploy]
[INFO] ------------------------------------------------------------------------
[INFO] [cargo:deployer-redeploy]
[INFO] [mcat6xRemoteDeployer] Redeploying [V:\Workspace\PLX-WebApplication\target\PLX-WebApplication.war]
[INFO] [mcat6xRemoteDeployer] Undeploying [V:\Workspace\PLX-WebApplication\target\PLX-WebApplication.war]
[INFO] [mcat6xRemoteDeployer] Deploying [V:\Workspace\PLX-WebApplication\target\PLX-WebApplication.war]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 20 seconds
[INFO] Finished at: Fri Jan 30 12:18:53 CET 2009
[INFO] Final Memory: 6M/12M
[INFO] ------------------------------------------------------------------------

Re: Can't run Maven cargo plugin with the shortened command mvn cargo:deploy

by S. Ali Tokmen-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

Did you add the CARGO plug-in as a dependency in your pom.xml file?

Cheers

S. Ali Tokmen
savas-ali.tokmen@...

Office: +33 4 76 29 76 19
GSM:    +33 66 43 00 555

Bull, Architect of an Open World TM
http://www.bull.com



Cecchi Sandrone a écrit :

> Hi all,
> I have a strange problem running cargo. If I try to launch cargo with:
>
> mvn cargo:deploy
>
> I receive this error:
>
> V:\Workspace\PLX-WebApplication>mvn cargo:deployer-redeploy
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'cargo'.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not
> exist or no valid version could be found
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Fri Jan 30 12:17:24 CET 2009
> [INFO] Final Memory: 2M/4M
> [INFO]
> ------------------------------------------------------------------------
>
> while calling the entire command:
> mvn org.codehaus.cargo:cargo-maven2-plugin:1.0-beta-2:deployer-redeploy
>
> V:\Workspace\PLX-WebApplication>mvn
> org.codehaus.cargo:cargo-maven2-plugin:1.0-beta-2:deployer-redeploy
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building PLX WebApplication
> [INFO]    task-segment:
> [org.codehaus.cargo:cargo-maven2-plugin:1.0-beta-2:deployer-redeploy]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [cargo:deployer-redeploy]
> [INFO] [mcat6xRemoteDeployer] Redeploying
> [V:\Workspace\PLX-WebApplication\target\PLX-WebApplication.war]
> [INFO] [mcat6xRemoteDeployer] Undeploying
> [V:\Workspace\PLX-WebApplication\target\PLX-WebApplication.war]
> [INFO] [mcat6xRemoteDeployer] Deploying
> [V:\Workspace\PLX-WebApplication\target\PLX-WebApplication.war]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 20 seconds
> [INFO] Finished at: Fri Jan 30 12:18:53 CET 2009
> [INFO] Final Memory: 6M/12M
> [INFO]
> ------------------------------------------------------------------------
>  


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Can't run Maven cargo plugin with the shortened command mvn cargo:deploy

by Cecchi Sandrone :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No...I added Cargo only in the <plugins> list...Do I need to add to dependencies too?

<plugin>
   <groupId>org.codehaus.cargo</groupId>
   <artifactId>cargo-maven2-plugin</artifactId>
   <version>1.0-beta-2</version>
</plugin>

S. Ali Tokmen-4 wrote:
Hello

Did you add the CARGO plug-in as a dependency in your pom.xml file?

Cheers

S. Ali Tokmen
savas-ali.tokmen@bull.net

Office: +33 4 76 29 76 19
GSM:    +33 66 43 00 555

Bull, Architect of an Open World TM
http://www.bull.com



Cecchi Sandrone a écrit :
> Hi all,
> I have a strange problem running cargo. If I try to launch cargo with:
>
> mvn cargo:deploy
>
> I receive this error:
>
> V:\Workspace\PLX-WebApplication>mvn cargo:deployer-redeploy
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'cargo'.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-cargo-plugin' does not
> exist or no valid version could be found
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Fri Jan 30 12:17:24 CET 2009
> [INFO] Final Memory: 2M/4M
> [INFO]
> ------------------------------------------------------------------------
>
> while calling the entire command:
> mvn org.codehaus.cargo:cargo-maven2-plugin:1.0-beta-2:deployer-redeploy
>
> V:\Workspace\PLX-WebApplication>mvn
> org.codehaus.cargo:cargo-maven2-plugin:1.0-beta-2:deployer-redeploy
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building PLX WebApplication
> [INFO]    task-segment:
> [org.codehaus.cargo:cargo-maven2-plugin:1.0-beta-2:deployer-redeploy]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [cargo:deployer-redeploy]
> [INFO] [mcat6xRemoteDeployer] Redeploying
> [V:\Workspace\PLX-WebApplication\target\PLX-WebApplication.war]
> [INFO] [mcat6xRemoteDeployer] Undeploying
> [V:\Workspace\PLX-WebApplication\target\PLX-WebApplication.war]
> [INFO] [mcat6xRemoteDeployer] Deploying
> [V:\Workspace\PLX-WebApplication\target\PLX-WebApplication.war]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 20 seconds
> [INFO] Finished at: Fri Jan 30 12:18:53 CET 2009
> [INFO] Final Memory: 6M/12M
> [INFO]
> ------------------------------------------------------------------------
>  


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email