You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by pa...@apache.org on 2020/11/16 15:04:34 UTC

[sling-slingfeature-maven-plugin] branch master updated: SLING-9912: take tag into account for source lookup from scm.

This is an automated email from the ASF dual-hosted git repository.

pauls pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-slingfeature-maven-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new b71b02b  SLING-9912: take tag into account for source lookup from scm.
b71b02b is described below

commit b71b02b91d336106de1b9355e6923c4f5b0c1ff2
Author: Karl Pauls <ka...@gmail.com>
AuthorDate: Mon Nov 16 16:01:42 2020 +0100

    SLING-9912: take tag into account for source lookup from scm.
---
 src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java b/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java
index a72625f..f4b2ea3 100644
--- a/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java
+++ b/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java
@@ -1344,7 +1344,7 @@ public class ApisJarMojo extends AbstractIncludingFeatureMojo {
 
                 CheckOutScmResult result = null;
                 try {
-                    if (scmVersion != null) {
+                    if (scmVersion == null) {
                         result = scmManager.checkOut(repository, fileSet, true);
                     } else {
                         result = scmManager.checkOut(repository, fileSet, scmVersion, true);