| Table of Contents |
How to use
Just add the following parent declaration in your project parent POM :
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 overrided by projects to customize the default behavior of maven defined in the parent pom.
License
Define licenses, inceptionYear and organization :
You can change values of following properties to control license headers of your source files :
Property | Description | Default value |
|---|---|---|
license.name | Possible values are : "GNU LGPL 3", "AL2", "MIT". | GNU LGPL 3 |
license.title |
| ${project.name} |
license.year |
| ${project.inceptionYear} |
license.owner |
| ${project.organization.name} |
license.mailto |
| dev@sonar.codehaus.org |
Now you can add/update headers of your source files using following command :
Maven plugins versions
The parent pom defines in a set of properties all recommended versions of maven plugins to use.
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. |
Each project/module can override a version of a plugin to use a different from the one defined in parent. For example to change version of sonar-packaging-maven-plugin you can use following code snippet:
Profiles
| Name | Identifier | Activation | Description |
|---|---|---|---|
| Release profile | release | Deactivated by default. Activated during release. Can be activated with -Prelease | Generates javadoc artifacts. |
| Integration tests | integration-tests | Deactivated by default. Can be activated with -Pintegration-tests | Launch integration tests from JUnit using the failsafe plugin. |
Known problems
Deployment not possible if you are behind proxy - see SONARPLUGINS-1457
Development
All plugins specified in POM, must be compatible with "maven.min.version" and "java.min.version". This and available plugins updates can be checked with help of versions-maven-plugin.
Changelog
| Version 14 (5 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-2058 | Update Maven plugins to recent versions |
|
|
Fixed |
|
|
SONARPLUGINS-2057 | Add maven-gpg-plugin 1.4 |
|
|
Fixed |
|
|
SONARPLUGINS-2056 | Upgrade to sonar-dev-maven-plugin 1.6 |
|
|
Fixed |
|
|
SONARPLUGINS-1869 | Upgrade maven-compiler-plugin from 2.4 to 2.5.1 |
|
|
Fixed |
|
|
SONARPLUGINS-1777 | Property "skipSanityChecks" prevents usage of plugin's default properties like "license.skip" and "animal.sniffer.skip" |
|
|
Fixed |
| Version 13 (2 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-1780 | Upgrade to maven-compiler-plugin 2.4 |
|
|
Fixed |
|
|
SONARPLUGINS-1735 | Add SCM revision and build timestamp to plugin manifests |
|
|
Fixed |
| Version 12 (3 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-1733 | Update Maven plugins to recent versions |
|
|
Fixed |
|
|
SONARPLUGINS-1729 | Accidential changes in Parent POM version 11 |
|
|
Fixed |
|
|
SONARPLUGINS-1728 | Rollback to JDK 1.5 |
|
|
Fixed |
| Version 11 (7 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-1659 | Order of execution for tests should be "random" by default |
|
|
Fixed |
|
|
SONARPLUGINS-1648 | Check of compatibility with Java API should be enabled by default |
|
|
Fixed |
|
|
SONARPLUGINS-1649 | Minimal required version of Maven should be 2.2.1 |
|
|
Fixed |
|
|
SONARPLUGINS-1471 | Add native2ascii-maven-plugin into parent POM |
|
|
Fixed |
|
|
SONARPLUGINS-1374 | Wrong attributes for directories inside zip archives created by maven-assembly-plugin |
|
|
Fixed |
|
|
SONARPLUGINS-1451 | Typo in message for enforcer rule requireJavaVersion |
|
|
Fixed |
|
|
SONARPLUGINS-1689 | Migration toward Java 6 |
|
|
Fixed |
| Version 10 (2 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-1262 | Allow configuration of the snapshot repository used for deployment |
|
|
Fixed |
|
|
SONARPLUGINS-1241 | Update to sonar-packaging-maven-plugin 1.1 |
|
|
Fixed |
| Version 9 (2 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-1172 | Upgrade to sonar-dev-maven-plugin 1.3.2 |
|
|
Fixed |
|
|
SONARPLUGINS-883 | maven-license-plugin should be executed in validate phase |
|
|
Fixed |
| Version 8 (5 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-840 | Invalid checksum produced during deploy even if Maven 2.1.0 and 2.2.0 not used |
|
|
Fixed |
|
|
SONARPLUGINS-839 | Unable to deploy artifacts using Maven 3.0 |
|
|
Fixed |
|
|
SONARPLUGINS-830 | Upgrade sonar-dev-maven-plugin to version 1.0.1 |
|
|
Fixed |
|
|
SONARPLUGINS-816 | Profile "integration-tests" uses failsafe-maven-plugin instead of maven-failsafe-plugin |
|
|
Fixed |
|
|
SONARPLUGINS-815 | Profile "release" not activated when performing release |
|
|
Fixed |
| Version 7 (9 issues) | |||||
|---|---|---|---|---|---|
| Type | Key | Summary | Priority | Status | Resolution |
|
|
SONARPLUGINS-798 | Add integration tests profile |
|
|
Fixed |
|
|
SONARPLUGINS-795 | Add release profile |
|
|
Fixed |
|
|
SONARPLUGINS-787 | Don't allow to use Maven 2.1.0 and 2.2.0, because they produce incorrect checksums |
|
|
Fixed |
|
|
SONARPLUGINS-784 | Ban com.ibm.icu:icu4j:2.6.1 dependency |
|
|
Fixed |
|
|
SONARPLUGINS-705 | Should be possible to change version for plugins |
|
|
Fixed |
|
|
SONARPLUGINS-702 | Documentation of parent pom |
|
|
Fixed |
|
|
SONARPLUGINS-693 | Add sonar-dev-maven-plugin to parent pom |
|
|
Fixed |
|
|
SONARPLUGINS-674 | Improve license management |
|
|
Fixed |
|
|
SONARPLUGINS-506 | Use Animal Sniffer to check plugins in forge |
|
|
Fixed |

