Skip to end of metadata
Go to start of metadata

How to use

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

pom.xml

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 :

pom.xml

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:

pom.xml

Profiles

NameIdentifierActivationDescription
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 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
Improvement SONARPLUGINS-2058 Update Maven plugins to recent versions Major Closed Fixed
New Feature SONARPLUGINS-2057 Add maven-gpg-plugin 1.4 Major Closed Fixed
Improvement SONARPLUGINS-2056 Upgrade to sonar-dev-maven-plugin 1.6 Major Closed Fixed
Improvement SONARPLUGINS-1869 Upgrade maven-compiler-plugin from 2.4 to 2.5.1 Major Closed Fixed
Bug SONARPLUGINS-1777 Property "skipSanityChecks" prevents usage of plugin's default properties like "license.skip" and "animal.sniffer.skip" Major Closed Fixed

Version 13 (2 issues)
Type Key Summary Priority Status Resolution
Improvement SONARPLUGINS-1780 Upgrade to maven-compiler-plugin 2.4 Major Closed Fixed
Improvement SONARPLUGINS-1735 Add SCM revision and build timestamp to plugin manifests Major Closed Fixed

Version 12 (3 issues)
Type Key Summary Priority Status Resolution
Improvement SONARPLUGINS-1733 Update Maven plugins to recent versions Major Closed Fixed
Bug SONARPLUGINS-1729 Accidential changes in Parent POM version 11 Critical Closed Fixed
Task SONARPLUGINS-1728 Rollback to JDK 1.5 Major Closed Fixed

Version 11 (7 issues)
Type Key Summary Priority Status Resolution
Improvement SONARPLUGINS-1659 Order of execution for tests should be "random" by default Major Closed Fixed
Improvement SONARPLUGINS-1648 Check of compatibility with Java API should be enabled by default Major Closed Fixed
Improvement SONARPLUGINS-1649 Minimal required version of Maven should be 2.2.1 Major Closed Fixed
New Feature SONARPLUGINS-1471 Add native2ascii-maven-plugin into parent POM Major Closed Fixed
Improvement SONARPLUGINS-1374 Wrong attributes for directories inside zip archives created by maven-assembly-plugin Major Closed Fixed
Bug SONARPLUGINS-1451 Typo in message for enforcer rule requireJavaVersion Major Closed Fixed
Improvement SONARPLUGINS-1689 Migration toward Java 6 Minor Closed Fixed

Version 10 (2 issues)
Type Key Summary Priority Status Resolution
Improvement SONARPLUGINS-1262 Allow configuration of the snapshot repository used for deployment Major Closed Fixed
Improvement SONARPLUGINS-1241 Update to sonar-packaging-maven-plugin 1.1 Major Closed Fixed

Version 9 (2 issues)
Type Key Summary Priority Status Resolution
Improvement SONARPLUGINS-1172 Upgrade to sonar-dev-maven-plugin 1.3.2 Major Closed Fixed
Improvement SONARPLUGINS-883 maven-license-plugin should be executed in validate phase Major Closed Fixed

Version 8 (5 issues)
Type Key Summary Priority Status Resolution
Bug SONARPLUGINS-840 Invalid checksum produced during deploy even if Maven 2.1.0 and 2.2.0 not used Major Closed Fixed
Improvement SONARPLUGINS-839 Unable to deploy artifacts using Maven 3.0 Major Closed Fixed
Improvement SONARPLUGINS-830 Upgrade sonar-dev-maven-plugin to version 1.0.1 Major Closed Fixed
Bug SONARPLUGINS-816 Profile "integration-tests" uses failsafe-maven-plugin instead of maven-failsafe-plugin Major Closed Fixed
Bug SONARPLUGINS-815 Profile "release" not activated when performing release Major Closed Fixed

Version 7 (9 issues)
Type Key Summary Priority Status Resolution
Improvement SONARPLUGINS-798 Add integration tests profile Major Closed Fixed
Improvement SONARPLUGINS-795 Add release profile Major Closed Fixed
Improvement SONARPLUGINS-787 Don't allow to use Maven 2.1.0 and 2.2.0, because they produce incorrect checksums Major Closed Fixed
Improvement SONARPLUGINS-784 Ban com.ibm.icu:icu4j:2.6.1 dependency Major Closed Fixed
Improvement SONARPLUGINS-705 Should be possible to change version for plugins Major Closed Fixed
Improvement SONARPLUGINS-702 Documentation of parent pom Major Closed Fixed
Improvement SONARPLUGINS-693 Add sonar-dev-maven-plugin to parent pom Major Closed Fixed
Improvement SONARPLUGINS-674 Improve license management Major Closed Fixed
Improvement SONARPLUGINS-506 Use Animal Sniffer to check plugins in forge Major Closed Fixed

Labels
  • None