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]

Reply via email to