You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

How to upgrade a Camel dependency

1. Open an JIRA issue

Open an JIRA issue at https://issues.apache.org/jira/browse/CAMEL, if its not already exist.
The issue type should be a "Task". A sample can be found here: https://issues.apache.org/jira/browse/CAMEL-3471

2. Change the parent pom

All dependency versions are managed in the parent pom. Change the version number for the dependency you want to upgrade in this file.

3. Customize the source code (if necessaey)

If this upgrade is a major change (e.g. from Apache Mina 1.1.7 to 2.0.2), it could require some source code and/or test customizations. Be careful with changes in the unit tests!

4. Ask for an OSGI-fied version (if necessaey)

If this dependency is not provided as an OSGI bundle, ask the Apache Servicemix guys for an OSGI-fied version of this dependency. You should do this by open an JIRA issue at https://issues.apache.org/jira/browse/SMX4
The issue type should be a "Task". A sample can be found here: https://issues.apache.org/jira/browse/SMX4-699

5. Change the platform/karaf pom (if necessaey)

If a new OSGI-fied version of this dependency is provided, update the platform/karaf pom with the new version.

6. Validate the features.xml (if necessaey)

If you change anything in the features.xml from platform/karaf you can run a validation step to ensure the generated features.xml file is correct. You can do this running the following maven goal from the platform directory.

mvn clean install -Pvalidate

7. Run a complete build

To ensure you don't break anything with your upgrade, run a complete build from the Camel root directory:

mvn clean install
  • No labels