<dependencies>
<dependency>
<groupId>org.osgi</groupId>
- <artifactId>org.osgi.core</artifactId>
+ <artifactId>osgi.core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
import com.google.common.collect.Lists;
import java.util.Arrays;
+import java.util.Dictionary;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
public int compareTo(Object reference) {
return 0;
}
+
+ @Override
+ public Dictionary<String, Object> getProperties() {
+ return null;
+ }
}
}
</dependency>
<dependency>
<groupId>org.osgi</groupId>
- <artifactId>org.osgi.core</artifactId>
+ <artifactId>osgi.core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<!-- Also add dependencies we are using -->
<dependency>
<groupId>org.osgi</groupId>
- <artifactId>org.osgi.core</artifactId>
+ <artifactId>osgi.core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
- <artifactId>org.osgi.core</artifactId>
+ <artifactId>osgi.core</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>odl-jackson-2.10</artifactId>
+ <artifactId>odl-jackson-2.11</artifactId>
<classifier>features</classifier>
<type>xml</type>
</dependency>
</parent>
<groupId>org.opendaylight.odlparent</groupId>
- <artifactId>odl-jackson-2.10</artifactId>
- <version>8.1.0-SNAPSHOT</version>
+ <artifactId>odl-jackson-2.11</artifactId>
<packaging>feature</packaging>
- <name>OpenDaylight :: Jackson 2.10.x</name>
- <description>Jackson 2.10</description>
+ <name>OpenDaylight :: Jackson 2.11.x</name>
+ <description>Jackson 2.11</description>
<properties>
<checkDependencyChange>true</checkDependencyChange>
<classifier>features</classifier>
<type>xml</type>
</dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>odl-jakarta-activation-api</artifactId>
+ <classifier>features</classifier>
+ <type>xml</type>
+ </dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.5.0" name="odl-jackson-2.9">
<feature version="0.0.0">
+ <feature>odl-jakarta-activation-api</feature>
<feature>odl-woodstox</feature>
<feature>odl-ws-rs-api</feature>
- <bundle>mvn:com.fasterxml.jackson.core/jackson-annotations/2.10.5</bundle>
- <bundle>mvn:com.fasterxml.jackson.core/jackson-core/2.10.5</bundle>
- <bundle>mvn:com.fasterxml.jackson.core/jackson-databind/2.10.5</bundle>
- <bundle>mvn:com.fasterxml.jackson.dataformat/jackson-dataformat-xml/2.10.5</bundle>
- <bundle>mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-base/2.10.5</bundle>
- <bundle>mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-json-provider/2.10.5</bundle>
- <bundle>mvn:com.fasterxml.jackson.module/jackson-module-jaxb-annotations/2.10.5</bundle>
+ <bundle>mvn:com.fasterxml.jackson.core/jackson-annotations/2.11.3</bundle>
+ <bundle>mvn:com.fasterxml.jackson.core/jackson-core/2.11.3</bundle>
+ <bundle>mvn:com.fasterxml.jackson.core/jackson-databind/2.11.3</bundle>
+ <bundle>mvn:com.fasterxml.jackson.dataformat/jackson-dataformat-xml/2.11.3</bundle>
+ <bundle>mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-base/2.11.3</bundle>
+ <bundle>mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-json-provider/2.11.3</bundle>
+ <bundle>mvn:com.fasterxml.jackson.module/jackson-module-jaxb-annotations/2.11.3</bundle>
</feature>
</features>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright © 2020 PANTHEON.tech, s.r.o. and others. All rights reserved.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ and is available at http://www.eclipse.org/legal/epl-v10.html
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.opendaylight.odlparent</groupId>
+ <artifactId>single-feature-parent</artifactId>
+ <version>8.1.0-SNAPSHOT</version>
+ <relativePath>../../single-feature-parent</relativePath>
+ </parent>
+
+ <groupId>org.opendaylight.odlparent</groupId>
+ <artifactId>odl-jakarta-activation-api</artifactId>
+ <packaging>feature</packaging>
+
+ <name>OpenDaylight :: jakarta.activation-api</name>
+ <description>Jakarta EE jakarta.activation-api</description>
+
+ <properties>
+ <checkDependencyChange>true</checkDependencyChange>
+ <failOnDependencyChange>true</failOnDependencyChange>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>jakarta.activation</groupId>
+ <artifactId>jakarta.activation-api</artifactId>
+ </dependency>
+ </dependencies>
+</project>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<features xmlns="http://karaf.apache.org/xmlns/features/v1.6.0" name="odl-jakarta-activation">
+ <feature version="0.0.0">
+ <bundle>mvn:jakarta.activation/jakarta.activation-api/1.2.2</bundle>
+ </feature>
+</features>
<classifier>features</classifier>
<type>xml</type>
</dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>odl-jakarta-activation-api</artifactId>
+ <classifier>features</classifier>
+ <type>xml</type>
+ </dependency>
<dependency>
<groupId>org.glassfish.jersey.inject</groupId>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.6.0" name="odl-jersey-2">
<feature version="0.0.0">
+ <feature>odl-jakarta-activation-api</feature>
<feature>odl-javassist-3</feature>
<feature>odl-servlet-api</feature>
<feature>odl-ws-rs-api</feature>
<module>odl-dropwizard-metrics</module>
<module>odl-gson</module>
<module>odl-guava</module>
- <module>odl-jackson-2.10</module>
+ <module>odl-jackson-2.11</module>
+ <module>odl-jakarta-activation-api</module>
<module>odl-javassist-3</module>
<module>odl-jersey-2</module>
<module>odl-jung-2.1</module>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
- <artifactId>org.osgi.core</artifactId>
+ <artifactId>osgi.core</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
- <artifactId>org.osgi.core</artifactId>
+ <artifactId>osgi.core</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
</configuration>
</execution>
<execution>
- <!-- FIXME: remove this once we have karaf-4.2.10+ -->
+ <!-- FIXME: remove this once we have karaf-4.3.0+ -->
<id>remove-scr-2.1.20</id>
<phase>prepare-package</phase>
<goals>
failonerror="true"/>
<copy file="${project.build.directory}/assembly/system/org/apache/karaf/features/framework/${karaf.version}/framework-${karaf.version}-features.xml"
tofile="${project.build.directory}/classes/system/org/apache/karaf/features/framework/${karaf.version}/framework-${karaf.version}-features.xml"/>
- <replace file="${project.build.directory}/assembly/system/org/apache/karaf/features/standard/${karaf.version}/standard-${karaf.version}-features.xml"
- token="commons-io/commons-io/2.7" value="commons-io/commons-io/2.8.0" failOnNoReplacements="true"/>
<replace file="${project.build.directory}/assembly/system/org/apache/karaf/features/standard/${karaf.version}/standard-${karaf.version}-features.xml"
token="commons-codec/commons-codec/1.14" value="commons-codec/commons-codec/1.15" failOnNoReplacements="true"/>
- <replace file="${project.build.directory}/assembly/system/org/apache/karaf/features/standard/${karaf.version}/standard-${karaf.version}-features.xml"
- token="javax.annotation/javax.annotation-api/1.3<" value="javax.annotation/javax.annotation-api/1.3.1<" failOnNoReplacements="true"/>
<copy file="${project.build.directory}/assembly/system/org/apache/karaf/features/standard/${karaf.version}/standard-${karaf.version}-features.xml"
tofile="${project.build.directory}/classes/system/org/apache/karaf/features/standard/${karaf.version}/standard-${karaf.version}-features.xml"/>
- <replace file="${project.build.directory}/assembly/system/org/ops4j/pax/web/pax-web-features/7.2.19/pax-web-features-7.2.19-features.xml"
- token="commons-codec/commons-codec/1.11" value="commons-codec/commons-codec/1.15" failOnNoReplacements="true"/>
- <replace file="${project.build.directory}/assembly/system/org/ops4j/pax/web/pax-web-features/7.2.19/pax-web-features-7.2.19-features.xml"
+ <replace file="${project.build.directory}/assembly/system/org/ops4j/pax/web/pax-web-features/7.3.9/pax-web-features-7.3.9-features.xml"
+ token="commons-codec/commons-codec/1.14" value="commons-codec/commons-codec/1.15" failOnNoReplacements="true"/>
+ <replace file="${project.build.directory}/assembly/system/org/ops4j/pax/web/pax-web-features/7.3.9/pax-web-features-7.3.9-features.xml"
token="javax.annotation/javax.annotation-api/1.3<" value="javax.annotation/javax.annotation-api/1.3.1<" failOnNoReplacements="true"/>
- <copy file="${project.build.directory}/assembly/system/org/ops4j/pax/web/pax-web-features/7.2.19/pax-web-features-7.2.19-features.xml"
- tofile="${project.build.directory}/classes/system/org/ops4j/pax/web/pax-web-features/7.2.19/pax-web-features-7.2.19-features.xml"/>
+ <copy file="${project.build.directory}/assembly/system/org/ops4j/pax/web/pax-web-features/7.3.9/pax-web-features-7.3.9-features.xml"
+ tofile="${project.build.directory}/classes/system/org/ops4j/pax/web/pax-web-features/7.3.9/pax-web-features-7.3.9-features.xml"/>
<!-- Add startup bundles to startup.properties — order is significant, bundles are wired in declaration order -->
<echo file="${project.build.directory}/assembly/etc/startup.properties" append="true">
# The following are added by opendaylight-karaf-resources
---- target/assembly/bin/inc.orig 2018-08-21 16:15:40.146423070 +0200
-+++ target/assembly/bin/inc 2018-08-21 16:15:43.798408830 +0200
+--- target/assembly/bin/inc 2020-10-27 09:19:51.940334549 +0100
++++ target/assembly/bin/inc 2020-10-27 09:36:25.438005471 +0100
@@ -243,9 +243,9 @@
- VERSION=$("${JAVA}" -version 2>&1 | ${AWK} -F '"' '/version/ {print $2}' | sed -e 's/_.*//g; s/^1\.//g; s/\..*//g; s/-.*//g;')
+ VERSION=`"${JAVA}" -version 2>&1 | ${AWK} -F '"' '/version/ {print $2}' | sed -e 's/_.*//g; s/^1\.//g; s/\..*//g; s/-.*//g;'`
- # java must be at least version 8
- if [ "${VERSION}" -lt "8" ]; then
-- die "JVM must be greater than 1.8"
-+ # java must be at least version 11 (and not newer, either)
-+ if [ "${VERSION}" -ne "11" ]; then
-+ die "JVM must be version 11"
+- die "JVM must be version 1.8 or greater"
++ # java must be at least version 11
++ if [ "${VERSION}" -lt "11" ]; then
++ die "JVM must be version 11 or greater"
fi
}
-@@ -271,6 +271,8 @@
- fi
+@@ -281,11 +281,20 @@
+ setupDefaults() {
- DEFAULT_JAVA_OPTS="-Xms${JAVA_MIN_MEM} -Xmx${JAVA_MAX_MEM} -XX:+UnlockDiagnosticVMOptions "
+ DEFAULT_JAVA_OPTS="-XX:+UnlockDiagnosticVMOptions "
+ DEFAULT_JAVA_OPTS="$DEFAULT_JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError"
+ DEFAULT_JAVA_OPTS="$DEFAULT_JAVA_OPTS -XX:+DisableExplicitGC"
- #Set the JVM_VENDOR specific JVM flags
- if [ "${JVM_VENDOR}" = "SUN" ]; then
-@@ -285,6 +287,13 @@
- fi
- fi
+ setupVendorSepcifics
+
+ DEFAULT_JAVA_OPTS="${DEFAULT_JAVA_OPTS} ${JAVA_VENDOR_OPTS}"
+ # Add default security file option
+ if [ "x$ODL_JAVA_SECURITY_PROPERTIES" != "x" ]; then
</dependency>
<dependency>
<groupId>org.opendaylight.odlparent</groupId>
- <artifactId>odl-jackson-2.10</artifactId>
+ <artifactId>odl-jackson-2.11</artifactId>
+ <version>${project.version}</version>
+ <classifier>features</classifier>
+ <type>xml</type>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.odlparent</groupId>
+ <artifactId>odl-jakarta-activation-api</artifactId>
<version>${project.version}</version>
<classifier>features</classifier>
<type>xml</type>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<type>pom</type>
- <version>2.10.5</version>
+ <version>2.11.3</version>
</dependency>
<dependency>
<groupId>com.fasterxml.woodstox</groupId>
<version>4.1.53.Final</version>
</dependency>
<dependency>
- <groupId>jakarta.xml.bind</groupId>
- <artifactId>jakarta.xml.bind-api</artifactId>
+ <groupId>jakarta.activation</groupId>
+ <artifactId>jakarta.activation-api</artifactId>
</dependency>
<dependency>
- <groupId>javax.activation</groupId>
- <artifactId>activation</artifactId>
+ <groupId>jakarta.xml.bind</groupId>
+ <artifactId>jakarta.xml.bind-api</artifactId>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-bom</artifactId>
<type>pom</type>
- <version>9.4.28.v20200408</version>
+ <version>9.4.31.v20200723</version>
</dependency>
<dependency>
<groupId>org.eclipse.xtend</groupId>
<groupId>org.ops4j.pax.web</groupId>
<artifactId>pax-web-api</artifactId>
</dependency>
- <dependency>
- <groupId>org.osgi</groupId>
- <artifactId>org.osgi.core</artifactId>
- </dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.component.annotations</artifactId>
<groupId>org.osgi</groupId>
<artifactId>osgi.cmpn</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>osgi.core</artifactId>
+ </dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito2</artifactId>
<maven.compiler.release>11</maven.compiler.release>
<!-- Used in controller, genius, infrautils, netconf, netvirt, ovsdb, serviceutils -->
- <karaf.version>4.2.10</karaf.version>
+ <karaf.version>4.3.0</karaf.version>
<!-- Supporting Libraries -->
<!-- Only used internally -->
</dependency>
<dependency>
- <groupId>javax.activation</groupId>
- <artifactId>activation</artifactId>
- <version>1.1.1</version>
+ <groupId>jakarta.activation</groupId>
+ <artifactId>jakarta.activation-api</artifactId>
+ <version>1.2.2</version>
</dependency>
+
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</dependency>
<!-- These three need to be consistent:
- jackson-2.10.5 needs woodstox-6.2.x
+ jackson-2.11.3 needs woodstox-6.2.3+
woodstox-5.3+ needs stax2-api-4.2.x
-->
<dependency>
<dependency>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
- <version>2.10.5</version>
+ <version>2.11.3</version>
<scope>import</scope>
<type>pom</type>
</dependency>
the runtime - thus the warning can be safely ignored :)
Keep this in sync with rest of OSGi:
- - OSGi R6 (now) = 1.3.0
- - OSGi R7 (next) = 1.4.0
+ - OSGi R7 (now) = 1.4.0
-->
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.component.annotations</artifactId>
- <version>1.3.0</version>
+ <version>1.4.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.cmpn</artifactId>
- <version>6.0.0</version>
+ <version>7.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
- <artifactId>org.osgi.core</artifactId>
- <version>6.0.0</version>
+ <artifactId>osgi.core</artifactId>
+ <version>7.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
<artifactId>org.osgi.service.event</artifactId>
- <version>1.3.1</version>
+ <version>1.4.0</version>
</dependency>
<dependency>
<groupId>org.apache.aries.quiesce</groupId>
<groupId>org.ops4j.pax.web</groupId>
<artifactId>pax-web-api</artifactId>
<!-- Note: keep this version synchronized with karaf -->
- <version>7.2.16</version>
+ <version>7.3.9</version>
</dependency>
<dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-bom</artifactId>
- <version>9.4.28.v20200408</version>
+ <version>9.4.31.v20200723</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<profile>
<id>disable-sft</id>
<activation>
- <!-- Karaf does not have jre.properties for JDK12+ just yet -->
- <jdk>[12,)</jdk>
+ <!-- Karaf does not have jre.properties for JDK16+ just yet -->
+ <jdk>[16,)</jdk>
</activation>
<properties>
<excludedArtifactId>jaxb-api</excludedArtifactId>
<excludedArtifactId>jaxb-runtime</excludedArtifactId>
<excludedArtifactId>jakarta.xml.bind-api</excludedArtifactId>
- <!-- javax.annotation -->
- <excludedArtifactId>activation</excludedArtifactId>
- <excludedArtifactId>jakarta.activation-api</excludedArtifactId>
<!-- Guava's annotations -->
<excludedArtifactId>error_prone_annotations</excludedArtifactId>