Author: aramirez Date: Thu Jan 26 23:59:02 2006 New Revision: 372777 URL: http://svn.apache.org/viewcvs?rev=372777&view=rev Log: -added validation if there is no protocol provided in url parameter
Modified: maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java Modified: maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java?rev=372777&r1=372776&r2=372777&view=diff ============================================================================== --- maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java (original) +++ maven/plugins/trunk/maven-deploy-plugin/src/main/java/org/apache/maven/plugin/deploy/DeployFileMojo.java Thu Jan 26 23:59:02 2006 @@ -177,7 +177,13 @@ throw new MojoExecutionException( file.getPath() + " not found." ); } - getDeployer().deploy( file, artifact, deploymentRepository, getLocalRepository() ); + String protocol = deploymentRepository.getProtocol(); + + if( protocol.equals( "" ) || protocol == null ) + { + throw new MojoExecutionException( "No transfer protocol found." ); + } + getDeployer().deploy( file, artifact, deploymentRepository, getLocalRepository() ); } catch ( ArtifactDeploymentException e ) {