Skip to content

Commit

Permalink
Do not embed Snakeyaml as bundle as it conflicts with AEMaaCS (#513)
Browse files Browse the repository at this point in the history
Only embed as private JAR inside the AC bundle
improve bnd resolver checks (by not taking into account Maven
dependencies)
This fixes #512
  • Loading branch information
kwin authored Oct 27, 2020
1 parent b19bdeb commit 92e60c6
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
4 changes: 3 additions & 1 deletion accesscontroltool-bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ Bundle-SymbolicName: biz.netcentric.cq.tools.accesscontroltool.bundle
# export all versioned packages by default
-exportcontents: ${packages;VERSIONED}
# Embed (https://groups.google.com/g/bndtools-users/c/NAdU0_X8OKY)
-includeresource: tomcat-el-api-[0-9.]*.jar;lib:=true,tomcat-jasper-el-[0-9.]*.jar;lib:=true
-includeresource: tomcat-el-api-[0-9.]*.jar;lib:=true,tomcat-jasper-el-[0-9.]*.jar;lib:=true,snakeyaml-[0-9.]*.jar;lib:=true
# broad version range for jackrabbit oak versions (as long as we need to support Oak < 1.7.12, see https://github.com/Netcentric/accesscontroltool/issues/435 and https://issues.apache.org/jira/browse/OAK-6945
Import-Package: org.apache.jackrabbit.oak.spi.security.authentication.external;resolution:=optional;version="[0,3)",org.apache.jackrabbit.oak.spi.security.authentication.external.basic;resolution:=optional;version="[0,2)",org.apache.jackrabbit.oak.*;version="[0,2)",com.adobe.granite.crypto;resolution:=optional,com.adobe.granite.jmx.annotation;resolution:=optional,com.day.cq.security.util;resolution:=optional,* ]]></bnd>
</configuration>
Expand Down Expand Up @@ -303,6 +303,7 @@ Import-Package: org.apache.jackrabbit.oak.spi.security.authentication.external;r
</goals>
<phase>verify</phase>
<configuration>
<useMavenDependencies>false</useMavenDependencies>
<bndruns>
<include>minimum-aem.bndrun</include>
</bndruns>
Expand All @@ -315,6 +316,7 @@ Import-Package: org.apache.jackrabbit.oak.spi.security.authentication.external;r
</goals>
<phase>verify</phase>
<configuration>
<useMavenDependencies>false</useMavenDependencies>
<bndruns>
<include>maximum-aem.bndrun</include>
</bndruns>
Expand Down
3 changes: 0 additions & 3 deletions accesscontroltool-package/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@
<artifactId>accesscontroltool-startuphook-bundle</artifactId>
<target>/apps/netcentric/actool/install/27</target>
</embedded>
<embedded>
<artifactId>snakeyaml</artifactId>
</embedded>
<embedded>
<artifactId>bcprov-jdk15on</artifactId>
</embedded>
Expand Down
13 changes: 13 additions & 0 deletions target-osgi-environment/maximum-environment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,19 @@
<version>1.2.4</version> <!-- uses Oak 1.3.7 -->
<scope>provided</scope>
</dependency>
<!-- OSGi bundles shipped with the ACTool package -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>${bouncycastle.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<artifactId>bcprov-jdk15on</artifactId>
<groupId>org.bouncycastle</groupId>
<version>${bouncycastle.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
Expand Down
13 changes: 13 additions & 0 deletions target-osgi-environment/minimum-environment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,19 @@
<version>2.1.6</version>
<scope>provided</scope>
</dependency>
<!-- OSGi bundles shipped with the ACTool package -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>${bouncycastle.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<artifactId>bcprov-jdk15on</artifactId>
<groupId>org.bouncycastle</groupId>
<version>${bouncycastle.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
Expand Down

0 comments on commit 92e60c6

Please sign in to comment.