maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r374487 - in /maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin: AbstractScmMojo.java ValidateMojo.java
Date Thu, 02 Feb 2006 20:41:41 GMT
Author: evenisse
Date: Thu Feb  2 12:41:37 2006
New Revision: 374487

URL: http://svn.apache.org/viewcvs?rev=374487&view=rev
Log:
[SCM-130] Don't require a project for scm:validate

Modified:
    maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/AbstractScmMojo.java
    maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/ValidateMojo.java

Modified: maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/AbstractScmMojo.java
URL: http://svn.apache.org/viewcvs/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/AbstractScmMojo.java?rev=374487&r1=374486&r2=374487&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/AbstractScmMojo.java
(original)
+++ maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/AbstractScmMojo.java
Thu Feb  2 12:41:37 2006
@@ -41,8 +41,7 @@
     /**
      * The SCM connection URL.
      *
-     * @parameter expression="${connectionUrl}"
-     * default-value="${project.scm.connection}"
+     * @parameter expression="${connectionUrl}" default-value="${project.scm.connection}"
      */
     private String connectionUrl;
 

Modified: maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/ValidateMojo.java
URL: http://svn.apache.org/viewcvs/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/ValidateMojo.java?rev=374487&r1=374486&r2=374487&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/ValidateMojo.java
(original)
+++ maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/ValidateMojo.java
Thu Feb  2 12:41:37 2006
@@ -28,21 +28,18 @@
  * @version $Id$
  * @goal validate
  * @execute phase="validate"
+ * @requiresProject false
  */
 public class ValidateMojo
     extends AbstractScmMojo
 {
     /**
-     * @parameter expression="${scmConnection}"
-     * default-value="${project.scm.connection}"
-     * @readonly
+     * @parameter expression="${scmConnection}" default-value="${project.scm.connection}"
      */
     private String scmConnection;
 
     /**
-     * @parameter expression="${scmDeveloperConnection}"
-     * default-value="${project.scm.developerConnection}"
-     * @readonly
+     * @parameter expression="${scmDeveloperConnection}" default-value="${project.scm.developerConnection}"
      */
     private String scmDeveloperConnection;
 
@@ -91,7 +88,7 @@
 
             getLog().error( "The invalid scm url connection: '" + connectionString + "'."
);
 
-            throw new MojoExecutionException( "Command failed." );
+            throw new MojoExecutionException( "Command failed. Bad Scm URL." );
         }
         else
         {



Mime
View raw message