Hi Rinku,

There is an open issue for it.. please see http://jira.codehaus.org/browse/MNG-1712

regards,
allan

Rinku wrote:
Hi,

I have meant to ask this everytime I run into similar error with wagon providers.

Why is it that the wagon provider lib needs to be copied to under M2 Home? Shouldn't this be downloaded to local repo and used from there? Is it something to do with Classworlds' realms.

Cheers,
Rahul

----- Original Message ----- From: "Allan Ramirez" <[EMAIL PROTECTED]>
To: "Maven Developers List" <[email protected]>
Sent: Tuesday, July 11, 2006 3:15 AM
Subject: Re: deploy:deploy-file


Hi,

This should be on the users mailing list. anyway, to answer your question,

When using deploy-deploy-file goal and encountered this error

"Error deploying artifact: Unsupported Protocol: 'ftp': Cannot find wagon which supports the requested protocol: ftp"

You only have to place the appropriate wagon provider to your %M2_HOME%/lib. In this case the provider needed is ftp, so we have to place the wagon-ftp jar to the lib of your m2 installation.

If the error description is something like

"Error deploying artifact: Unsupported Protocol: 'ftp': Cannot find wagon which supports the requested protocol: ftp
org/apache/commons/net/ftp/FTP"

Place also the commons-net jar to %M2_HOME%/lib.


You can find the wagon-ftp here http://www.ibiblio.org/maven2/org/apache/maven/wagon/wagon-ftp/

Cheers,
allan

Marcin Maciukiewicz wrote:
Hi!

I want to deploy my artifact via ftp. So this is my command:
mvn -e -Durl=file://ftp://some-server/root-dir/
-Dfile=com.company.models.util_1.2.0.jar
-DrepositoryId=ftp-company-snapshot -DgroupId=com.company.models
-DartifactId=com.company.models.util -Dversion=1.2.0-SNAPSHOT
-Dpackaging=jar -DgeneratePom=true deploy:deploy-file

This the result:
...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Unsupported Protocol: 'ftp': Cannot
find wagon which supports the requested protocol: ftp
...

How to register wagon for ftp transport when using command line
deployment as shown above?

Thanks,
Marcin.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to