...
The artifacts version number should be use the schema from table below to prevent confusion.
Artifacts version number | Parents version number | Target ODL Version |
---|---|---|
0.4.1/0.4.1-SNAPSHOT | 1.2.1/1.2.1-SNAPSHOT | Flourine SR1 |
0.4.2/0.4.2-SNAPSHOT | 1.2.2/1.2.2-SNAPSHOT | Flourine SR2 |
Example for adapting to a different Opendaylight version
...
- Clone gerrit ccsdk/feature repository to features
- Copy recurse sdnr/wt tree into new sdnr/wt-0.4.1 directory
- Change the version numbers in th pom files accordingly
- Compile the microservice that the result is in local .m2 repository for related use
- in .m2/repository under org/onap/ccsdk/features/sdnr/wt the bundles are now available with version 0.4.1-SNAPSHOTIt is sufficient to procced with
- All bundles are included into sdnr-wt-feature-aggregator. See dependency below.
Code Block |
---|
<dependency>
<groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
<artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
<version>0.4.1-SNAPSHOT</version>
<classifier>repo</classifier>
<type>zip</type>
</dependency>
|
Related command sequence
Code Block | ||
---|---|---|
| ||
cd ~
git clone git clone https://gerrit.onap.org/r/ccsdk/features
cd features/sdnr/wt
cp -r wt wt-0.4.1
cd wt-0.4.1
sed -i 's#<version>1.2.2-SNAPSHOT</version>#<version>1.2.1-SNAPSHOT</version>#g' $(find . -name "pom.xml")
sed -i 's#<version>0.4.2-SNAPSHOT</version>#<version>0.4.1-SNAPSHOT</version>#g' $(find . -name "pom.xml") |
Hint: It can not be excluded that the version number to replace is used by something in the pom.xml.
...