aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1600367 - /aries/trunk/versioning/versioning-plugin/src/main/java/org/apache/aries/versioning/mojo/VersionCheckerMojo.java
Date Wed, 04 Jun 2014 17:22:20 GMT
Author: dkulp
Date: Wed Jun  4 17:22:20 2014
New Revision: 1600367

URL: http://svn.apache.org/r1600367
Log:
Add a skip option
Also skip the version check for "pom" packaging

Modified:
    aries/trunk/versioning/versioning-plugin/src/main/java/org/apache/aries/versioning/mojo/VersionCheckerMojo.java

Modified: aries/trunk/versioning/versioning-plugin/src/main/java/org/apache/aries/versioning/mojo/VersionCheckerMojo.java
URL: http://svn.apache.org/viewvc/aries/trunk/versioning/versioning-plugin/src/main/java/org/apache/aries/versioning/mojo/VersionCheckerMojo.java?rev=1600367&r1=1600366&r2=1600367&view=diff
==============================================================================
--- aries/trunk/versioning/versioning-plugin/src/main/java/org/apache/aries/versioning/mojo/VersionCheckerMojo.java
(original)
+++ aries/trunk/versioning/versioning-plugin/src/main/java/org/apache/aries/versioning/mojo/VersionCheckerMojo.java
Wed Jun  4 17:22:20 2014
@@ -54,6 +54,9 @@ public class VersionCheckerMojo extends 
      */
     @Parameter(property="aries.oldArtifact")
     private String oldArtifact;
+    
+    @Parameter(property="aries.skip.version.check", defaultValue = "false")
+    private boolean skip;
 
     /**
      * Location of the file.
@@ -83,6 +86,12 @@ public class VersionCheckerMojo extends 
     private MavenSession session;
     
     public void execute() throws MojoExecutionException {
+        if (skip) {
+            return;
+        }
+        if ("pom".equals(project.getPackaging())) {
+            return;
+        }
         if (oldArtifact != null) {
             try {
                 BundleInfo oldBundle = getBundleInfo(resolve(oldArtifact));



Mime
View raw message