Unsupported Protocol Error when deploying a 3rd party jar. What should I do?

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.