Return-Path: X-Original-To: apmail-maven-commits-archive@www.apache.org Delivered-To: apmail-maven-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5186D64A6 for ; Wed, 27 Jul 2011 19:49:52 +0000 (UTC) Received: (qmail 24978 invoked by uid 500); 27 Jul 2011 19:49:52 -0000 Delivered-To: apmail-maven-commits-archive@maven.apache.org Received: (qmail 24761 invoked by uid 500); 27 Jul 2011 19:49:51 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 24754 invoked by uid 99); 27 Jul 2011 19:49:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2011 19:49:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2011 19:49:49 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6BA1823888BD; Wed, 27 Jul 2011 19:49:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1151605 - /maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractDeployMojo.java Date: Wed, 27 Jul 2011 19:49:29 -0000 To: commits@maven.apache.org From: hboutemy@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110727194929.6BA1823888BD@eris.apache.org> Author: hboutemy Date: Wed Jul 27 19:49:28 2011 New Revision: 1151605 URL: http://svn.apache.org/viewvc?rev=1151605&view=rev Log: improved error message to be sufficient for fix: the link is only here as complementary info Modified: maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractDeployMojo.java Modified: maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractDeployMojo.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractDeployMojo.java?rev=1151605&r1=1151604&r2=1151605&view=diff ============================================================================== --- maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractDeployMojo.java (original) +++ maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractDeployMojo.java Wed Jul 27 19:49:28 2011 @@ -355,13 +355,20 @@ public abstract class AbstractDeployMojo } catch ( UnsupportedProtocolException e ) { - log.error( "Unsupported protocol for site deployment: '" + repository.getProtocol() + "'." ); - log.error( "Supported protocols at this moment: " + getSupportedProtocols() + "." ); - log.error( "For adding new protocols to the site plugin, see " - + "http://maven.apache.org/plugins/maven-site-plugin/examples/adding-deploy-protocol.html" ); + String shortMessage = + "Unsupported protocol: '" + repository.getProtocol() + "' for site deployment to " + + "distributionManagement.site.url=" + repository.getUrl() + "."; + String longMessage = + "Supported protocols at this moment: " + getSupportedProtocols() + ".\n" + + " You can add protocols through wagon providers either as maven-site-plugin dependency or " + + "extension.\n" + + " For more information, see " + + "http://maven.apache.org/plugins/maven-site-plugin/examples/adding-deploy-protocol.html"; - throw new MojoExecutionException( "Unsupported protocol for site deployment: '" + repository.getProtocol() - + "'.", e ); + log.error( shortMessage ); + log.error( longMessage ); + + throw new MojoExecutionException( null, shortMessage, "\n" + shortMessage + "\n" + longMessage ); } catch ( TransferFailedException e ) {