Sunday, September 1, 2013

maven site-deploy - [ERROR] Unsupported protocol: 'scp'

During executing
mvn site-deploy
I met strange error.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:2.4:deploy (default-deploy) on project 
cubiculus-interface: Unsupported protocol: 'scp': Cannot find wagon which supports the requested protocol: scp: java.util.NoSuchElementException
I didn't found anything about this problem on net. So hopefully it will by useful for someone. My problem was in maven-site-plugin which was in version 2.4. This works fine with maven 2.* but not with maven 3.*. Solution is to remove plugin explicit versioning or use version 3.2 like this:

 maven-site-plugin
 3.2

No comments:

Post a Comment