Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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-SNAPSHOT1.2.1/1.2.1-SNAPSHOTFlourine SR1
0.4.2/0.4.2-SNAPSHOT1.2.2/1.2.2-SNAPSHOTFlourine SR2
0.5.0/0.5.0-SNAPSHOT1.3.0/1.3.0-SNAPSHOTFlourine SR2

Example for adapting to a different Opendaylight version

...

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

Example with Ubuntu and bash, ONAP dev environment.

Note
Hint:It can not be excluded that the version number to replace by sed is used by something else in the pom.xml. 

As a check use grep command with the version numbers to replace and verify if the list contains the elementes expected:

Code Block
languagebash
grep "<version>1\.2\.2-SNAPSHOT</version>" $(find . -name pom.xml)
grep "<version>0\.4\.2-SNAPSHOT</version>" $(find . -name pom.xml)
Replacing the version number:
Code Block
languagebash
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")
mvn clean install

Hint: It can not be excluded that the version number to replace is used by something in the pom.xml. 

As a check use grep command with the version numbers to replace:

Code Block
languagebash
grep "<version>1\.2\.2-SNAPSHOT</version>" $(find . -name pom.xml)
grep "<version>0\.4\.2-SNAPSHOT</version>" $(find . -name pom.xml)