Skip to content

Commit

Permalink
Upgraded Karaf to version 2.3.4 and upgraded Spring to 3.2.4 to match
Browse files Browse the repository at this point in the history
Karaf's version.
  • Loading branch information
soleger committed Apr 9, 2014
1 parent 8c461b9 commit ed7ce0c
Show file tree
Hide file tree
Showing 9 changed files with 190 additions and 150 deletions.
15 changes: 15 additions & 0 deletions container/karaf/README.markdown
@@ -0,0 +1,15 @@
Upgrading Karaf
===============

To upgrade our container to use a new base Karaf version, follow these steps.

1. Download and unpack the new Karaf tar.gz file.
1. Run this command to see the differences in the Karaf etc files:
diff -r $KARAF_DIR/etc $SRC_DIR/container/karaf/src/main/filtered-resources/etc
1. Apply any relevent changes to the files inside $SRC_DIR/container/karaf/src/main/filtered-resources/etc.
1. Copy the new Karaf features.xml file into the container project:
cp $KARAF_DIR/system/org/apache/karaf/assemblies/features/standard/$KARAF_VERSION/standard-$KARAF_VERSION-features.xml $SRC_DIR/container/karaf/src/main/filtered-resources/features/features.xml
1. Restore the HTTP bridge changes to the features.xml file by making all of the changes between the OPENNMS CUSTOMIZATION comment blocks.
1. Update $SRC_DIR/pom.xml with new value for <karafVersion/> property.

See commit dea910701c3f48e367636b507fc575b59e70b843 for an example of an upgrade.
Expand Up @@ -30,6 +30,7 @@ karaf.systemBundlesStartLevel=50

org.osgi.framework.system.packages.extra=org.apache.karaf.branding,\
sun.net.spi.nameservice,\
javax.jms,\
javax.servlet;javax.servlet.http;javax.servlet.resources;version=2.5,\
javax.xml.bind;version=${springJaxbVersion},\
javax.xml.bind.annotation;version=${springJaxbVersion},\
Expand Down
Expand Up @@ -22,7 +22,7 @@ respectStartLvlDuringFeatureStartup=false
#
# Comma separated list of features repositories to register by default
#
#featuresRepositories=mvn:org.apache.karaf.assemblies.features/standard/2.3.2/xml/features,mvn:org.apache.karaf.assemblies.features/enterprise/2.3.2/xml/features
#featuresRepositories=mvn:org.apache.karaf.assemblies.features/standard/2.3.4/xml/features,mvn:org.apache.karaf.assemblies.features/enterprise/2.3.4/xml/features
featuresRepositories=mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features

#
Expand Down
Expand Up @@ -21,6 +21,9 @@
log4j.rootLogger=INFO, out, osgi:*
log4j.throwableRenderer=org.apache.log4j.OsgiThrowableRenderer

# To avoid flooding the log when using DEBUG level on an ssh connection and doing log:tail
log4j.logger.org.apache.sshd.server.channel.ChannelSession = INFO

# Display all DEBUG logs for our code
log4j.category.org.opennms=DEBUG, out, osgi:*
log4j.additivity.org.opennms=false
Expand Down
309 changes: 165 additions & 144 deletions container/karaf/src/main/filtered-resources/features/features.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion features/sms-reflector/poms/pom.xml
Expand Up @@ -15,7 +15,7 @@
<module>compiled</module>
</modules>
<properties>
<spring.version>3.2.3.RELEASE</spring.version>
<spring.version>3.2.4.RELEASE</spring.version>
<spring.osgi.version>1.2.1</spring.osgi.version>
</properties>
<build>
Expand Down
2 changes: 1 addition & 1 deletion features/sms-reflector/provision/pom.xml
Expand Up @@ -16,7 +16,7 @@
| with <optional>true</optional>
-->
<properties>
<spring.version>3.2.3.RELEASE</spring.version>
<spring.version>3.2.4.RELEASE</spring.version>
<spring.osgi.version>1.2.1</spring.osgi.version>
</properties>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion features/sms-reflector/sms-ping/pom.xml
Expand Up @@ -9,7 +9,7 @@
<properties>
<bundle.symbolicName>org.opennms.features.sms-reflector.sms-ping</bundle.symbolicName>
<bundle.namespace>org.opennms.sms.ping</bundle.namespace>
<spring.maven.artifact.version>3.2.3.RELEASE</spring.maven.artifact.version>
<spring.maven.artifact.version>3.2.4.RELEASE</spring.maven.artifact.version>
</properties>
<modelVersion>4.0.0</modelVersion>
<groupId>org.opennms.features.sms-reflector</groupId>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Expand Up @@ -984,7 +984,7 @@
<jacksonVersion>1.9.13</jacksonVersion>
<jasperreportsVersion>3.7.6</jasperreportsVersion>
<jettyVersion>7.6.12.v20130726</jettyVersion>
<karafVersion>2.3.2</karafVersion>
<karafVersion>2.3.4</karafVersion>
<felixVersion>2.2.0</felixVersion>
<liquibaseVersion>2.0.5</liquibaseVersion>
<log4jVersion>99.99.99-use-log4j2</log4jVersion>
Expand All @@ -1000,7 +1000,7 @@
<xercesVersion>2.9.1</xercesVersion>
<xmlApisVersion>1.4.01</xmlApisVersion>

<springVersion>3.2.3.RELEASE</springVersion>
<springVersion>3.2.4.RELEASE</springVersion>
<!-- ALWAYS change aspectj to match the version referenced in the spring poms -->
<aspectjVersion>1.7.1</aspectjVersion>
<springWebFlowVersion>2.3.0.RELEASE</springWebFlowVersion>
Expand Down

0 comments on commit ed7ce0c

Please sign in to comment.