maven-deploy-plugin.fml.faq.fml Maven / Gradle / Ivy
I get an Unsupported Protocol Error when deploying a 3rd party jar. What should I do?
If you are using the deploy:deploy-file
goal and encounter
this error:
"Error deploying artifact: Unsupported Protocol: 'ftp': Cannot find
wagon which supports the requested protocol: ftp"
Then you need to place the appropriate wagon provider in your
%M2_HOME%/lib
. In this case the provider needed is ftp,
so we have to place the wagon-ftp jar in the lib directory of your
Maven 2 installation.
If the error description is something like this:
"Error deploying artifact: Unsupported Protocol: 'ftp': Cannot find
wagon which supports the requested protocol: ftp
org/apache/commons/net/ftp/FTP"
Then you need to place the commons-net jar in
%M2_HOME%/lib
.
I don't want to deploy one of the artifacts in my multi-module build. Can I skip deployment?
Yes, you can skip deployment of individual modules by configuring the deploy plugin as follows: