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 9c1d74d  SLING-9324 : Improve api jar generation
9c1d74d is described below

commit 9c1d74dd5aa0460b3facbebe922499b909308ed6
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Thu Apr 9 06:59:49 2020 +0200

    SLING-9324 : Improve api jar generation
---
 src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 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 1c89336..2cee7c1 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
@@ -1435,8 +1435,10 @@ public class ApisJarMojo extends 
AbstractIncludingFeatureMojo {
         for(final ArtifactInfo info : ctx.getArtifactInfos()) {
             boolean addDirectory = false;
             for(final Clause clause : info.getUsedExportedPackages(region)) {
-                addDirectory = true;
-                javadocPackages.add(clause.getName());
+                if ( 
!ctx.getPackagesWithoutJavaClasses().contains(clause.getName())) {
+                    addDirectory = true;
+                    javadocPackages.add(clause.getName());
+                }
             }
             if ( addDirectory && info.getSourceDirectory() != null ) {
                 
sourceDirectories.add(info.getSourceDirectory().getAbsolutePath());

Reply via email to