Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

« Previous Version 48 Current »

Table of Contents

How to Use

Just add the following parent declaration in your project parent POM:


How to Upgrade

Change the version of the parent pom you used previously. Have a look at the release notes for each version upgrade to see if there are any notable changes which will require you 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.


Define licenses, inceptionYear and organization:


You can change the values of the following properties to control license headers of your source files:



Default value

Possible values are : "GNU LGPL 3", "AL2", "MIT".












Now you can add/update headers of your source files with the following command:

Maven plugins versions

The parent pom defines a set of properties recommended for all versions of Maven plugins.


This isn't recommended, but it may be useful to use a newer version of a Maven plugin than is specified in the parent POM or it may be necessary to use another version of a plugin in order to work around a bug. If you must do so, do not forget to report to us the change you need. If it's good for one project, it could be useful for others.

Each project/module can override a version of a plugin to use a different one than the one defined in parent. For example to change the version of sonar-packaging-maven-plugin you can use following code snippet:



Release profilereleaseDeactivated by default. Activated during release. Can be activated with -PreleaseGenerates javadoc artifacts.
Integration testsintegration-testsDeactivated by default. Can be activated with -Pintegration-testsLaunch integration tests from JUnit using the failsafe plugin.

Known Issues

Deployment is not possible if you are behind proxy - see SONARPLUGINS-1457


All plugins specified in the POM must be compatible with maven.min.version and java.min.version. This and available plugin updates can be checked with help of versions-maven-plugin.

  • No labels