You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2020/05/25 06:41:52 UTC
[sling-slingfeature-maven-plugin] branch master updated: SLING-9468
: Wrong artifact id for apis jars
This is an automated email from the ASF dual-hosted git repository.
cziegeler 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 7cdecbf SLING-9468 : Wrong artifact id for apis jars
7cdecbf is described below
commit 7cdecbf2eb03e41ae84eb13cf874f4055675ed16
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon May 25 08:41:40 2020 +0200
SLING-9468 : Wrong artifact id for apis jars
---
.../java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
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 d9fdc7d..ea52ccd 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
@@ -1612,10 +1612,11 @@ public class ApisJarMojo extends AbstractIncludingFeatureMojo {
.append(artifactType.getId())
.toString();
- return ctx.getFeatureId()
- .changeClassifier(finalClassifier)
- .changeType(artifactType.getExtension())
- .changeVersion(this.apiVersion != null ? this.apiVersion : ctx.getFeatureId().getVersion());
+ return new ArtifactId(this.project.getGroupId(),
+ this.project.getArtifactId(),
+ this.apiVersion != null ? this.apiVersion : this.project.getVersion(),
+ finalClassifier,
+ artifactType.getExtension());
}
/**