How to Use
Just add the following parent declaration in your project parent POM:
<?xml version="1.0" encoding="UTF-8"?> <project> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.codehaus.sonar-plugins</groupId> <artifactId>parent</artifactId> <version>14</version> <relativePath>../parent</relativePath> </parent> ... </project>
How to upgrade
Just change the version of the parent pom you used previously. Have a look at each release note of each version you upgrade to see if there are some notable changes which require to modify something in your project.
How to configure
The parent defines and uses a set of custom properties that can be reused and/or overridden by projects to customize the default behavior of Maven defined in the parent pom.
<inceptionYear>2010</inceptionYear> <organization> <name>MyCompany</name> <url>http://mycompany.com</url> </organization> <licenses> <license> <name>GNU LGPL v3</name> <url>http://www.gnu.org/licenses/lgpl.txt</url> <distribution>repo</distribution> </license> </licenses>
You can change the values of the following properties to control license headers of your source files:
The parent pom defines a set of properties recommended for all versions of maven Maven plugins.
This isn't recommended but could be useful to use a new version of a plugin not yet available in the parent POM or to workaround a bug by using another version. In all cases don not forget to report to us the change you need. If it's good for one project, it could be useful for others.
All plugins specified in the POM, must be compatible with "
maven.min.version" and " and
java.min.version". This and available plugin updates can be checked with help of versions-maven-plugin.