This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 207961 - Checkstyle POM section missing reporting.plugins.plugin.version property
Summary: Checkstyle POM section missing reporting.plugins.plugin.version property
Status: NEW
Alias: None
Product: third-party
Classification: Unclassified
Component: sqe tools (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: sreimers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-31 16:43 UTC by reinouts
Modified: 2012-02-01 16:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description reinouts 2012-01-31 16:43:41 UTC
In the Project Properties of a Maven project, Netbeans offers to generate the POM section for the Checkstyle plugin. The generated section misses the reporting.plugins.plugin.version property, causing Maven to complain about it:

[WARNING] Some problems were encountered while building the effective model for nl.lumc:ConceptRecognizer:war:1.0-SNAPSHOT
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-checkstyle-plugin is missing. @ line 178, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.

The problem can be fixed by adding <version>2.8</version> to the plugin section.
Comment 1 reinouts 2012-02-01 16:00:02 UTC
In fact, even after adding the <version> property, Netbeans gives the following hint on the <reporting> section:

"The <reporting> section is deprecated, please move reports to the <configuration> section of the new Maven Sites plugin."