...
Set the parent POM in your pom.xml as follows . Be sure to use the current version of oparent as declared in the version manifest; see ONAP Version Manifest Maven Plugin (Decommissioned).
...
using the appropriate version:
Code Block | ||
---|---|---|
| ||
<parent>
<groupId>org.onap.oparent</groupId>
<artifactId>oparent</artifactId>
<version>3.1.0</version>
<relativePath/>
</parent>
|
Code Block | ||
---|---|---|
| ||
<parent>
<groupId>org.onap.oparent</groupId>
<artifactId>oparent</artifactId>
<version>3.0.2</version>
<relativePath/>
</parent>
|
Code Block | ||
---|---|---|
| ||
<parent> <groupId>org.onap.oparent</groupId> <artifactId>oparent</artifactId> <version>1<version>2.2.3<0</version> <relativePath/> </parent> |
Remove redundant configuration items
Once the POMs have been modified to inherit from oparent, you can now remove the redundant configuration items such as nexus (distributionManagement) location, coding styles, license checks, coding style checks, sonar setup, etc. from your own project POM files. Any necessary changes to the above can now be managed centrally without your project having to incur additional overhead.
...