You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by kw...@apache.org on 2020/07/26 18:53:08 UTC
[jackrabbit-filevault] branch master updated: JCRVLT-419 embed
ConnectionOptions to still be compatible with older distributions
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git
The following commit(s) were added to refs/heads/master by this push:
new 6079b4b JCRVLT-419 embed ConnectionOptions to still be compatible with older distributions
6079b4b is described below
commit 6079b4b952170aeeef941b7ee87a97c5551e45c7
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Sun Jul 26 20:52:58 2020 +0200
JCRVLT-419 embed ConnectionOptions to still be compatible with older
distributions
fix bundle resolving for vault-core by not including a 2nd version by
default
---
parent/pom.xml | 4 ++--
target-osgi-environment/pom.xml | 11 +----------
vault-core/bnd.bnd | 4 +++-
vault-rcp/pom.xml | 1 -
4 files changed, 6 insertions(+), 14 deletions(-)
diff --git a/parent/pom.xml b/parent/pom.xml
index 75bfc4c..56703f7 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -186,8 +186,8 @@ Bundle-Category: jackrabbit
</executions>
<configuration>
<useMavenDependencies>true</useMavenDependencies>
- <!-- do not include any regular scopes (https://github.com/bndtools/bnd/blob/38ef85e389678370304846d6b09ffd31f9efb87d/biz.aQute.bnd.maven/src/aQute/bnd/maven/lib/resolve/Scope.java#L13), compare with https://github.com/bndtools/bnd/issues/4207 -->
- <scopes>distro</scopes>
+ <!-- also include compile scoped dependencies (https://github.com/bndtools/bnd/blob/38ef85e389678370304846d6b09ffd31f9efb87d/biz.aQute.bnd.maven/src/aQute/bnd/maven/lib/resolve/Scope.java#L13), compare with https://github.com/bndtools/bnd/issues/4207 -->
+ <scopes>compile</scopes>
<failOnChanges>false</failOnChanges><!-- reuse for multiple bundles which all require different minimum container -->
<writeOnChanges>false</writeOnChanges>
</configuration>
diff --git a/target-osgi-environment/pom.xml b/target-osgi-environment/pom.xml
index 634af34..2ea7a35 100644
--- a/target-osgi-environment/pom.xml
+++ b/target-osgi-environment/pom.xml
@@ -189,11 +189,6 @@
<version>${jackrabbit.version}</version>
</dependency>
<dependency>
- <groupId>org.apache.jackrabbit</groupId>
- <artifactId>jackrabbit-spi</artifactId>
- <version>${jackrabbit.version}</version>
- </dependency>
- <dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.jcr.api</artifactId>
<version>2.4.0</version>
@@ -223,11 +218,7 @@
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.jackrabbit.vault</groupId>
- <artifactId>org.apache.jackrabbit.vault</artifactId>
- <version>3.1.38</version>
- </dependency>
+
</dependencies>
</project>
diff --git a/vault-core/bnd.bnd b/vault-core/bnd.bnd
index 176c860..7a499be 100644
--- a/vault-core/bnd.bnd
+++ b/vault-core/bnd.bnd
@@ -19,4 +19,6 @@ Import-Package: org.apache.jackrabbit.*;version=!,\
DynamicImport-Package: *
-includeresource: @txw2-[0-9.]*.jar!/com/sun/xml/txw2/output/(IndentingXMLStreamWriter|DelegatingXMLStreamWriter).*,\
@woodstox-core-[0-9.]*.jar!/!module-info.class,\
- @stax2-api-[0-9.]*.jar!/!module-info.class,
\ No newline at end of file
+ @stax2-api-[0-9.]*.jar!/!module-info.class
+# The following package contains the newly added ConnectionOptions which needs to be embedded here for this bundle to be compatible with older distributions
+-conditionalpackage: org.apache.jackrabbit.spi2dav
\ No newline at end of file
diff --git a/vault-rcp/pom.xml b/vault-rcp/pom.xml
index 6019e64..8cb8e49 100644
--- a/vault-rcp/pom.xml
+++ b/vault-rcp/pom.xml
@@ -92,7 +92,6 @@
<groupId>org.apache.jackrabbit.vault</groupId>
<artifactId>org.apache.jackrabbit.vault</artifactId>
<version>3.1.38</version>
- <scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>