Smart Tech for a better Web
When Simone Tripodi initiated the new Maven Skin Fluido, which is build on top of my favorite lib Bootstrap, I knew it is time to create an own site for JJSON. But when running site-deploy, Maven 3 reported me I have an "Unsupported protocol: 'scp'". This is because Maven 3 is not supporting scp by default anymore. Here are steps one need to make Maven 3 deploying your site via ssh.
First you need to add a dependency to your Site plugin. It is the well-known "wagon-ssh" artifact, currently available as version 2.0:
Nested in your sites project element, you need to define this:
Please note, the url is prefixed with scp (for the scp protocol of course) and after the host, you want connect to, you'll need an absolute path. For example, if you are on a shared host go to the directory in which you want to deploy and type: pwd. The resulting path is what you need to enter.
The id you define here is used to lookup a matching server entry in settings.xml:
You'll not necessary need a key and can use your holy master password. But of course it is recommended to store any passwords - not even the passphrase in the pom.xml. Better leave it out.