<parent>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>odlparent</artifactId>
- <version>3.0.0-SNAPSHOT</version>
+ <version>4.0.8-SNAPSHOT</version>
<relativePath>../../odlparent</relativePath>
</parent>
<artifactId>opendaylight-karaf-resources</artifactId>
<description>Resources for opendaylight-karaf</description>
<packaging>jar</packaging>
<name>ODL :: odlparent :: ${project.artifactId}</name>
+ <properties>
+ <!-- There are a lot of duplicate classes in the dependencies below, but this is not a real issue,
+ because this is not a real Java artifact; it's just packaging. (TODO: Ideally, this artifact should
+ just have odlparent-lite not odlparent as parent, and not run Java static code analysis tools.)
+ -->
+ <duplicate-finder.skip>true</duplicate-finder.skip>
+ </properties>
<dependencies>
<dependency>
<groupId>org.apache.karaf.features</groupId>
failonerror="true" ignorewhitespace="true"/>
<copy file="${project.build.directory}/assembly/bin/instance.bat"
tofile="${project.build.directory}/classes/bin/instance.bat"/>
+ <patch patchfile="${project.basedir}/src/main/patches/karaf-inc-${karaf.version}.patch"
+ originalfile="${project.build.directory}/assembly/bin/inc"
+ failonerror="true"/>
+ <copy file="${project.build.directory}/assembly/bin/inc"
+ tofile="${project.build.directory}/classes/bin/inc"/>
<patch patchfile="${project.basedir}/src/main/patches/karaf-karaf-${karaf.version}.patch"
originalfile="${project.build.directory}/assembly/bin/karaf"
failonerror="true"/>
<patch patchfile="${project.basedir}/src/main/patches/karaf-quiesce-${karaf.version}.patch"
originalfile="${project.build.directory}/assembly/system/org/apache/karaf/features/standard/${karaf.version}/standard-${karaf.version}-features.xml"
failonerror="true"/>
- <patch patchfile="${project.basedir}/src/main/patches/karaf-javax-mail-${karaf.version}.patch"
- originalfile="${project.build.directory}/assembly/system/org/apache/karaf/features/standard/${karaf.version}/standard-${karaf.version}-features.xml"
- failonerror="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"/>
- <patch patchfile="${project.basedir}/src/main/patches/karaf-paxweb.patch"
- originalfile="${project.build.directory}/assembly/system/org/ops4j/pax/web/pax-web-features/4.3.4/pax-web-features-4.3.4-features.xml"
- failonerror="true"/>
- <copy file="${project.build.directory}/assembly/system/org/ops4j/pax/web/pax-web-features/4.3.4/pax-web-features-4.3.4-features.xml"
- tofile="${project.build.directory}/classes/system/org/ops4j/pax/web/pax-web-features/4.3.4/pax-web-features-4.3.4-features.xml"/>
- <patch patchfile="${project.basedir}/src/main/patches/karaf-etc-startup-properties-${karaf.version}.patch"
- originalfile="${project.build.directory}/assembly/etc/startup.properties"
- failonerror="true"/>
- <echo file="${project.build.directory}/assembly/etc/system.properties" append="true">mvn\:org.osgi/org.osgi.service.event/1.3.1 = 8</echo>
+ <!-- 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
+mvn\:org.osgi/org.osgi.service.event/1.3.1 = 7
+mvn\:org.apache.felix/org.apache.felix.metatype/1.2.2 = 8
+mvn\:org.bouncycastle/bcpkix-jdk15on/${bouncycastle.version} = 14
+mvn\:org.bouncycastle/bcprov-ext-jdk15on/${bouncycastle.version} = 14
+mvn\:org.apache.aries.blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0 = 14
+ </echo>
<copy file="${project.build.directory}/assembly/etc/startup.properties"
tofile="${project.build.directory}/classes/etc/startup.properties"/>
<fixcrlf srcdir="${project.build.directory}/classes/bin"
<configuration>
<artifactItems>
<!-- Needs to be copied to lib/ext in order to start bouncy provider for mina sshd -->
- <artifactItem>
- <groupId>org.bouncycastle</groupId>
- <artifactId>bcprov-jdk15on</artifactId>
- <version>${bouncycastle.version}</version>
- <outputDirectory>target/classes/lib/ext</outputDirectory>
- <destFileName>bcprov-jdk15on-${bouncycastle.version}.jar</destFileName>
- </artifactItem>
<artifactItem>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-ext-jdk15on</artifactId>
as the karaf4-parent will do this again -->
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
- <version>${karaf.plugin.version}</version>
+ <version>${karaf.version}</version>
<executions>
<execution>
<id>process-resources</id>
<plugin>
<groupId>org.opendaylight.odlparent</groupId>
<artifactId>karaf-plugin</artifactId>
- <version>3.0.0-SNAPSHOT</version>
+ <version>4.0.8-SNAPSHOT</version>
<executions>
<execution>
<id>populate-local-repo</id>