[ANN] Maven PMD Plugin 3.24.0 released
The Apache Maven team is pleased to announce the release of the Maven PMD Plugin version 3.24.0. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.24.0 Release Notes - Maven PMD Plugin - Version 3.24.0 ** Bug * [MPMD-399] - Incorrect warning: The project X does not seem to be compiled. PMD results might be inaccurate. ** Improvement * [MPMD-391] - Log what developers care about and not what they don't ** Dependency upgrade * [MPMD-400] - Upgrade to PMD 7.3.0 Enjoy, -The Apache Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Maven PMD Plugin 3.23.0 released
The Apache Maven team is pleased to announce the release of the Maven PMD Plugin version 3.23.0. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.23.0 Release Notes - Maven PMD Plugin - Version 3.23.0 ** Bug * [MPMD-395] - Build doesn't fail for invalid CPD format ** Dependency upgrade * [MPMD-397] - Upgrade to Maven 3.6.3 Enjoy, -The Apache Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven PMD Plugin 3.22.0 Released
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.22.0 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.22.0 Release Notes - Maven PMD Plugin - Version 3.22.0 Improvement * [MPMD-379] - Upgrade to use PMD 7.0.0 by default Dependency upgrade * [MPMD-388] - Upgrade to Parent 41 * [MPMD-393] - Upgrade commons-io:commons-io to 2.16.1 * [MPMD-394] - Bump org.apache.maven.plugins:maven-plugins from 41 to 42 Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Maven PMD Plugin 3.21.2 released
The Apache Maven team is pleased to announce the release of the Maven PMD Plugin version 3.21.2. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.21.2 Release Notes - Maven PMD Plugin - Version 3.21.2 ** Bug * [MPMD-370] - Remove remaining uses of FileReader * [MPMD-371] - Using two ruleset files with same name in different directories * [MPMD-382] - Regression in report rendering * [MPMD-384] - maven-pmd-plugin is dowloading transitive dependencies of unmanaged version ** Dependency upgrade * [MPMD-380] - Prefer apache commons and JDK to Plexus utils * [MPMD-387] - Upgrade to Parent 40 Enjoy, -The Apache Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Maven PMD Plugin 3.21.0 released
The Apache Maven team is pleased to announce the release of the Maven PMD Plugin version 3.21.0. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.21.0 Release Notes - Maven PMD Plugin - Version 3.21.0 ** Bug * [MPMD-369] - System encoding conflicts with XML encoding in CpdViolationCheckMojo * [MPMD-373] - System property java.version is overwritten in ITs as model property ** New Feature * [MPMD-365] - Support Java 20 ** Improvement * [MPMD-375] - Replace *ReportGenerators with new *ReportRenderers ** Task * [MPMD-374] - Remove deprecated and unused PmdCollectingRenderer ** Dependency upgrade * [MPMD-364] - Upgrade to PMD 6.55.0 * [MPMD-372] - Upgrade plugins and components (in ITs) Enjoy, -The Apache Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Maven PMD Plugin 3.20.0 released
The Apache Maven team is pleased to announce the release of the Maven PMD Plugin version 3.20.0. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.20.0 Release Notes - Maven PMD Plugin - Version 3.20.0 ** Bug * [MPMD-335] - Aggregate mode doesn't use additional repositories ** Task * [MPMD-361] - Explicitly start and end tables with Doxia Sinks in report renderers ** Dependency upgrade * [MPMD-356] - Upgrade to PMD 6.50.0 * [MPMD-357] - Upgrade to PMD 6.51.0 * [MPMD-358] - Upgrade to PMD 6.52.0 * [MPMD-360] - Upgrade to PMD 6.53.0 Enjoy, -The Apache Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven PMD Plugin 3.19.0 Released
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.19.0 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.19.0 Release Notes - Maven PMD Plugin - Version 3.19.0 Bug * [MPMD-353] API incompatibility with jansi after upgrading m-shared-utils Task * [MPMD-354] Upgrade to PMD 6.49.0 Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Maven PMD Plugin 3.18.0 released
The Apache Maven team is pleased to announce the release of the Maven PMD Plugin version 3.18.0. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.18.0 Release Notes - Maven PMD Plugin - Version 3.18.0 ** New Feature * [MPMD-348] - Support Java 19 ** Dependency upgrade * [MPMD-345] - Upgrade to PMD 6.47.0 * [MPMD-347] - Upgrade to PMD 6.48.0 * [MPMD-349] - Upgrade Maven Reporting API to 3.1.1/Maven Reporting Impl to 3.2.0 * [MPMD-350] - Upgrade Maven Shared Utils to 3.3.4 * [MPMD-351] - Upgrade Maven Artifact Transfer to 0.13.1 * [MPMD-352] - Upgrade Maven Common Artifact Filters to 3.3.1 Compatibility Notice: For technical reasons the parameter 'sourceEncoding' has been replaced with 'inputEncoding'. For details please see MPMD-349/2b7d2d7065bae1f984c82d210062064376fbd430. Enjoy, -The Apache Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven PMD Plugin 3.17.0 Released
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.17.0 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.17.0 Release Notes - Maven PMD Plugin - Version 3.17.0 Bug * [MPMD-342] No debug log message issued when empty report shall be skipped and no issues have been found * [MPMD-334] Source Encoding parameter is ignored Improvement * [MPMD-333] Add release notes documentation * [MPMD-309] Add configuration option to show suppressed violations New Feature * [MPMD-332] Support Java 18 Task * [MPMD-343] Upgrade to PMD 6.46.0 * [MPMD-341] Upgrade Maven Plugin Test Harness to 3.3.0 * [MPMD-340] Upgrade Maven Reporting API/Impl to 3.1.0 * [MPMD-339] Upgrade plugins in ITs * [MPMD-338] Upgrade to Doxia/Doxia Sitetools to 1.11.1 * [MPMD-337] Upgrade Maven Parent to 36 * [MPMD-336] Replace deprecated calls to PMD * [MPMD-331] Require Maven 3.2.5+ * [MPMD-330] Upgrade Maven Parent to 35 * [MPMD-329] Upgrade to PMD 6.45.0 Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven PMD Plugin 3.16.0 Released
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.16.0 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.16.0 Release Notes - Maven PMD Plugin - Version 3.16.0 Bug * [MPMD-325] Could not find class due to IncompatibleClassChangeError warning * [MPMD-324] Ruleset URLs have hyphen replaced with forwardslash * [MPMD-323] ResourceManager should use project base dir instead of pom location Improvement * [MPMD-328] Shared GitHub Actions Task * [MPMD-327] Upgrade to PMD 6.42.0 * [MPMD-326] Set Maven 3.1.1 as minimum version Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven PMD Plugin 3.15.0 Released
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.15.0 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.15.0 Release Notes - Maven PMD Plugin - Version 3.15.0 Bug * [MPMD-320] Error when using toolchain and spaces in repository path * [MPMD-318] Incorrect aux classpath if 'includeTests' set to true * [MPMD-317] NoClassDefFoundError for provided classes * [MPMD-315] Maven PMD Plugin fails on Java 16: Unsupported targetJdk value '16'. * [MPMD-314] PMD report extension not set correctly for custom report class Improvement * [MPMD-322] Display when PMD/CPD is skipped * [MPMD-321] Display PMD version that is being used also for pmd:pmd and pmd:cpd * [MPMD-319] Add GitHub Action to confirm build PR * [MPMD-313] Improve parameter description * [MPMD-311] Improve excludeFromFailureFile docs Task * [MPMD-316] Require Java 8 * [MPMD-312] Upgrade to PMD 6.38.0 * [MPMD-308] Set Maven 3.1.0 as minimum version * [MPMD-283] Create a real aggregate goal Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven PMD Plugin 3.14.0 Released
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.14.0 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.14.0 Release Notes - Maven PMD Plugin - Version 3.14.0 Bug * [MPMD-297] - Classloader not being closed after PMD run * [MPMD-300] - Unable to format output with custom renderer (CodeClimateRenderer) * [MPMD-305] - CPD goal does not support txt as a format parameter * [MPMD-307] - NPE when using custom rule Improvement * [MPMD-290] - Add CPD example for C# * [MPMD-301] - make build Reproducible * [MPMD-304] - maven-pmd-plugin should be toolchains-aware Dependency upgrade * [MPMD-298] - Upgrade Doxia Sitetools to 1.9.2 to remove dependency on Struts * [MPMD-302] - Upgrade to PMD 6.29.0 Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven PMD Plugin 3.13.0 Released
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.13.0 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.13.0 Release Notes - Apache Maven PMD Plugin - Version 3.13.0 Bug * [MPMD-295] Maven PMD Plugin fails on Java 13: Unsupported targetJdk value '13' * [MPMD-292] PMD Log is not always integrated into maven log * [MPMD-289] check: unable to find pmd.xml * [MPMD-288] NullPointerException when File.list() returns null Improvement * [MPMD-296] Copy ruleset files into a subdirectory of target * [MPMD-287] Add additional contribution information for GitHub * [MPMD-241] Document the version relationship between plugin and pmd New Feature * [MPMD-269] Display PMD version that is being used Task * [MPMD-293] Fix integration test builds on jenkins * [MPMD-291] Upgrade to PMD 6.21.0 * [MPMD-285] remove pluginTools version override for build (which block reproducible build...) * [MPMD-225] Create report even if no warnings have been found by default Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-pmd-plugin - includeTests but with different ruleset?
Hi Ted, You can definitely specify configuration inside execution according to the advice here: http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Using_the_executions_Tag <http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Using_the_executions_Tag> You may want to rethink the phase — the default phase binding is for verify, not compile. I suggest sticking with the default. In your example, the “test set” is running before the test-compile phase — your test-compile phase should be successful before running PMD against it. I have done something similar in the past where I had the PMD plugin declared twice — once in the section with “required” rules that will fail the build when violated, and then again in the section with “thorough” rules that will report a more comprehensive set of advice (as a report). Is this really what you need? To help debug, I recommend reviewing the effective-pom (mvn help:effective-pom), and running mvn with the -X debug switch. Hope this helps, Anthony > On Oct 17, 2019, at 11:37 PM, Ted Petersson wrote: > > Hi all, > is there any way to run the maven-pmd-plugin on both the main and test > code, but with different rulesets? > > It does not seem to be possible to run 2 executions with different > ruleset configurations... > > What I have: > ... > > > >maven-pmd-plugin >3.12.0 > > >pmd-rules.xml > > true > true > > > > >pmd-check >compile > > check > cpd-check > > > > > > > > I would like to have is something like this: > ... > > > >maven-pmd-plugin >3.12.0 > > >pmd-rules.xml > > true > > > > >pmd-main-check >compile > > check > cpd-check > > > >pmd-main-rules.xml > > > > > >pmd-test-check >compile > > check > cpd-check > > > >pmd-test-rules.xml > > true > > > > > > > > But it does not seem to be possible to have ruleset-configuration > inside an execution tag. Is it possible to solve this in any way? > > /Ted
maven-pmd-plugin - includeTests but with different ruleset?
Hi all, is there any way to run the maven-pmd-plugin on both the main and test code, but with different rulesets? It does not seem to be possible to run 2 executions with different ruleset configurations... What I have: ... maven-pmd-plugin 3.12.0 pmd-rules.xml true true pmd-check compile check cpd-check I would like to have is something like this: ... maven-pmd-plugin 3.12.0 pmd-rules.xml true pmd-main-check compile check cpd-check pmd-main-rules.xml pmd-test-check compile check cpd-check pmd-test-rules.xml true But it does not seem to be possible to have ruleset-configuration inside an execution tag. Is it possible to solve this in any way? /Ted
[ANN] Apache Maven PMD Plugin 3.12.0 Released
The Apache Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.12.0 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.12.0 You can download the appropriate sources etc. from the download page: https://maven.apache.org/plugins/maven-pmd-plugin/download.cgi Release Notes - Maven PMD Plugin - Version 3.12.0 ** Bug * [MPMD-277] - Plugin tries to download local submodules from repo ** New Feature * [MPMD-280] - Support targetJdk 12 * [MPMD-281] - Display found violations grouped by priority ** Improvement * [MPMD-279] - Improve documentation of maxAllowedViolations * [MPMD-282] - Add rule name to HTML report ** Dependency upgrade * [MPMD-275] - Upgrade to PMD 6.13.0 * [MPMD-284] - Upgrade parent to 33 Enjoy, -The Apache Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven PMD Plugin 3.11.0 Released
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.11.0 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.11.0 Release Notes - Apache Maven PMD Plugin - Version 3.11.0 Bug * [MPMD-268] Missing warnings about deprecated rules * [MPMD-266] Aggregate report in multi-module projects doesn't use correct auxclasspath New Feature * [MPMD-272] Support ignoreAnnotations options for CPD Task * [MPMD-271] Upgrade pmd 6.8.0 * [MPMD-270] JDK 11 compatibility Enjoy, -The Maven team
[ANN] Apache Maven PMD Plugin 3.10.0 Released
The Apache Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.10.0 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.10.0 You can download the appropriate sources etc. from the download page: https://maven.apache.org/plugins/maven-pmd-plugin/download.cgi Release Notes - Maven PMD Plugin - Version 3.10.0 ** Bug * [MPMD-253] - PMD links to java Xref fail in aggregated report * [MPMD-257] - Allow to disable analysisCache completely, avoid warnings * [MPMD-258] - PMD output multiplies with every module in multi module projects * [MPMD-259] - FileNotFoundException with analysisCache=true, includeTests=true and no test classes ** New Feature * [MPMD-256] - Add maxAllowedViolations property for PMD ** Improvement * [MPMD-261] - Upgrade to PMD 6.4.0 * [MPMD-263] - Add documentation information for GitHub * [MPMD-264] - Add rule priority to HTML report ** Dependency upgrade * [MPMD-252] - Upgrade parent to 31 * [MPMD-262] - Upgrade maven-surefire/failsafe-plugin 2.21.0 Enjoy, -The Apache Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven PMD Plugin 3.9.0 Released
The Apache Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.9.0 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.9.0 You can download the appropriate sources etc. from the download page: https://maven.apache.org/plugins/maven-pmd-plugin/download.cgi Release Notes - Maven PMD Plugin - Version 3.9.0 ** Bug * [MPMD-235] - Javadoc errors when building with java8 * [MPMD-240] - Migrate plugin to Maven 3.0 * [MPMD-244] - Maven PMD plugin fails but no reason is given for the failure * [MPMD-245] - targetJdk property should use maven.compiler.source by default * [MPMD-248] - cpd-check goal leaks file handle * [MPMD-249] - The plugin documentation point to old (deprecated) rulesets * [MPMD-251] - Invalid report XML is generated with includeXmlInSite=true ** Improvement * [MPMD-239] - Add documentation about upgrading PMD version at runtime * [MPMD-246] - Output details of processing errors * [MPMD-247] - Upgrade to PMD 6.0.1 Enjoy, -The Apache Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven PMD Plugin 3.8 Released
The Apache Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.8 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. https://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.8 Release Notes - Maven PMD Plugin - Version 3.8 Improvements: * [MPMD-232] - Enable typeResolution by default * [MPMD-233] - Upgrade to PMD 5.6.1 New Features: * [MPMD-234] - Support incremental analysis cache Wishes: * [MPMD-230] - Required class missing: org/apache/commons/io/IOUtils Enjoy, -The Apache Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven PMD, Checkstyle multimodel configuration.
I dont know about the instructions but an example config for checkstyle with a build tools config in a multi module project can be found here https://github.com/simpligility/ksoap2-android hth Manfred simpligility.com Artem Barger wrote on 2016-10-26 08:16: > Hi all, > > I'm trying to follow the tutorial regarding multimodule configuration for > PMD and checkstyle plugins from here: > https://maven.apache.org/plugins-archives/maven-pmd-plugin-LATEST/examples/multi-module-config.html > > And I have a problem with last instruction, once I've done suggested > configuration and trying to run "mvn site" it fails, since it has missing > dependency of "build-tools". It looks like I have to run "mvn install" > prior to "mvn site" in order to have "mvn site" succeeded. > > Does my observation correct? What am I doing wrong? > > Best regards, > Artem Barger. > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven PMD, Checkstyle multimodel configuration.
Hi all, I'm trying to follow the tutorial regarding multimodule configuration for PMD and checkstyle plugins from here: https://maven.apache.org/plugins-archives/maven-pmd-plugin-LATEST/examples/multi-module-config.html And I have a problem with last instruction, once I've done suggested configuration and trying to run "mvn site" it fails, since it has missing dependency of "build-tools". It looks like I have to run "mvn install" prior to "mvn site" in order to have "mvn site" succeeded. Does my observation correct? What am I doing wrong? Best regards, Artem Barger.
[ANN] Apache Maven PMD Plugin 3.7 Released
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.7 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. http://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.7 Release Notes - Apache Maven PMD Plugin - Version 3.7 Bug * [MPMD-162] - PMD/CPD report does not take into account pmd.excludeFromFailureFile * [MPMD-178] - ExcludeRoots doesn't handle subdirectories (PMD isn't working nicely with Android projects) * [MPMD-213] - Remove unnecessary (read-only) parameter "language" from check goal * [MPMD-219] - Maven PMD Plugin ignores PMD processing errors Improvement * [MPMD-212] - Add documentation and IT for MPMD-206 * [MPMD-220] - Upgrade to PMD 5.5.1 (requires Java 7) * [MPMD-227] - Document multimodule configuration example * [MPMD-228] - Upgrade maven-plugins to version 30 * [MPMD-229] - Cleanup POM, remove temporary workarounds Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
AW: Apache Maven PMD Plugin - Language XML
Hi Jeremie, quite a while ago I helped implement the modular language support for PMD. Before that the languages were hard-coded into PMD, but with those changes you can extend PMD with any Language you like (and you are willing to implement). I did this because I didn't want to continue to maintain an insanely old fork of PMD used in the Flex project and to add a Flex language module to the official PMD distribution. I think I noticed quite a lot of new languages on the PMD list. You can find a list of the official ones and how to provide new languages here: http://pmd.sourceforge.net/pmd-5.3.2/customizing/new-language.html I really hope to find the time to port the FlexPMD to become a PMD plugin soon Chris Von: Jérémie DENOYER <jdeno...@smartwavesa.com> Gesendet: Donnerstag, 31. März 2016 15:42 An: users@maven.apache.org Betreff: Apache Maven PMD Plugin - Language XML Hi, PMD can be used for XML language ( https://pmd.github.io/pmd-5.4.1/pmd-xml/rules/index.html). Therefore, Apache Maven PMD Plugin supports only java, javascriptand jsp. Is somebody aware of any improvement to support new language (like XML) with the Maven PMD Plugin ? Regards, Jérémie - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Apache Maven PMD Plugin - Language XML
Hi Jérémie, I'm not aware of such an improvement. However, I've created an improvement ticket in JIRA [1], as this would be a very useful feature. Regards, Andreas [1]: https://issues.apache.org/jira/browse/MPMD-221 On 31.03.2016 15:42, Jérémie DENOYER wrote: > Hi, > > PMD can be used for XML language ( > https://pmd.github.io/pmd-5.4.1/pmd-xml/rules/index.html). > Therefore, Apache Maven PMD Plugin supports only java, javascriptand jsp. > > Is somebody aware of any improvement to support new language (like XML) > with the Maven PMD Plugin ? > > Regards, > > Jérémie > -- Andreas Dangel https://github.com/adangel skype: andreas_dangel - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Apache Maven PMD Plugin - Language XML
Hi, PMD can be used for XML language ( https://pmd.github.io/pmd-5.4.1/pmd-xml/rules/index.html). Therefore, Apache Maven PMD Plugin supports only java, javascriptand jsp. Is somebody aware of any improvement to support new language (like XML) with the Maven PMD Plugin ? Regards, Jérémie
[ANN] Apache Maven PMD Plugin 3.6 Released
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.6 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. http://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-pmd-plugin 3.6 Release Notes - Apache Maven PMD Plugin - Version 3.6 Bug * [MPMD-218] Update to PMD 5.3.5 * [MPMD-217] False positive UselessParentheses * [MPMD-215] FieldDeclarationsShouldBeAtStartOfClass false positive * [MPMD-186] Class names with slash are omitted from exclusions on pmd:check Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem excluding source directory using maven-pmd-plugin with Jenkins CI
Looking at the generated log when running Maven on Jenkins, the maven-pmd-plugin is not using all configurations I'm doing on my pom.xml when I want to use a excludeRoot directory to not consider some classes to look for copy/pasted code (with CPD). I couldn't reproduce the problem using Maven CLI on my local machine. It occurs only when using it on Jenkins. I'll contact the ML of Jenkins ci users. Thank you, Baptiste. 2015-09-30 2:20 GMT-03:00 Baptiste Mathus <m...@batmat.net>: > Well, it depends. If running on the command line outside Jenkins triggers > the issue, then it's more a Maven issue, hence here. > > If the CLI works fine, but only fails somehow in Jenkins, then it's more > for Jenkinsci-users ML. > > Cheers > > 2015-09-29 14:44 GMT+02:00 Rafael Fontoura <rafael.fonto...@gmail.com>: > > > Hi. I have a problem using maven-pmd-plugin with Jenkins CI. Is this the > > correct mailing list to ask for help? > > > > Thank you. > > > > > > -- > Baptiste MATHUS - http://batmat.net > Sauvez un arbre, > Mangez un castor ! >
Problem excluding source directory using maven-pmd-plugin with Jenkins CI
Hi. I have a problem using maven-pmd-plugin with Jenkins CI. Is this the correct mailing list to ask for help? Thank you.
Re: Problem excluding source directory using maven-pmd-plugin with Jenkins CI
Well, it depends. If running on the command line outside Jenkins triggers the issue, then it's more a Maven issue, hence here. If the CLI works fine, but only fails somehow in Jenkins, then it's more for Jenkinsci-users ML. Cheers 2015-09-29 14:44 GMT+02:00 Rafael Fontoura <rafael.fonto...@gmail.com>: > Hi. I have a problem using maven-pmd-plugin with Jenkins CI. Is this the > correct mailing list to ask for help? > > Thank you. > -- Baptiste MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
[ANN] Apache Maven PMD Plugin 3.5 Released
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.5 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. http://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version3.5/version /plugin Release Notes - Apache Maven PMD Plugin - Version 3.5 Bug * [MPMD-208] Warning about deprecated Rule name when using rulesets/maven.xml * [MPMD-205] Javascript violations won't fail the build Improvement * [MPMD-211] Upgrade plexus-resources from 1.0-alpha-7 to 1.1 * [MPMD-209] Upgrade to PMD 5.3.2 * [MPMD-206] Make the sourceDirectories configurable New Feature * [MPMD-207] Support Javascript and JSP for CPD Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Maven PMD Plugin 3.4 released
The Apache Maven team is pleased to announce the release of the Maven PMD Plugin, version 3.4. This module generates browsable HTML pages from Java source code. http://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version3.4/version /plugin Release Notes - Maven PMD Plugin - Version 3.4 ** Bug * [MPMD-165] - target/site/pmd.html created with invalid charset=${outputEncoding} * [MPMD-171] - Rule properties are ignored when run under MPMD * [MPMD-174] - Using a permalink from Sonar as a ruleset does not work * [MPMD-187] - Report is generated even when skip is true * [MPMD-193] - CPD's sourceEncoding not set since PMD 5.1.1 is used * [MPMD-200] - Regression: Rule:UnusedPrivateMethod ** Improvement * [MPMD-129] - Maven PMD plugin does not have suppressMarker property that is available in PMD itself * [MPMD-170] - Have targetJdk default to maven.compiler.target * [MPMD-197] - Update dependencies and resolve minor Java warnings * [MPMD-199] - Support PMD functionality on JSP files ** Task * [MPMD-195] - Upgrade to PMD 5.2.2 as soon as it is available * [MPMD-198] - Upgrade to PMD 5.2.3 as soon as it is available * [MPMD-201] - Clean up unused and used undeclared dependencies * [MPMD-202] - Remove notes to ancient version of this plugin and expired information * [MPMD-203] - Upgrade to MPIR 2.8 Enjoy, -The Apache Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven-pmd-plugin: where does the useless parentheses come from?
Hi all, Recent versions of the maven-pmd-plugin (I think starting from v3.0) activate by default the useless parentheses rule. However, I don't understand why: this rule is from the unnecessary ruleset, and according to the plugin documentation only the basic, unused code and import rulesets are activated by default, so why is it performing this check and how can I disable it? This is really annoying that this check is enabled by default, because this is according to me a very stupid and useless check. Thank you for your answers. Thomas - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven PMD Plugin 3.3 Released
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.3 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. http://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version3.3/version /plugin Release Notes - Apache Maven PMD Plugin - Version 3.3 Bug * [MPMD-192] Regression MPMD-89 is showing up with Maven 2.2.1 again for maven-pmd-plugin-3.3 Improvement * [MPMD-191] Update to PMD 5.2.1 * [MPMD-189] MavenProject/MavenSession Injection as a paremeter instead as a component. Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven PMD Plugin 3.2 Released
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.2 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. http://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version3.2/version /plugin Release Notes - Apache Maven PMD Plugin - Version 3.2 Task * [MPMD-188] Require Java 6 * [MPMD-182] Upgrade to PMD 5.1.2 Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANN] Apache Maven PMD Plugin 3.1 Released
Dennis Lundberg dennisl at apache.org writes: The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.1 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. http://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version3.1/version /plugin Release Notes - Apache Maven PMD Plugin - Version 3.1 Bug * [MPMD-179] Plugin generates reports incompatible with the 'maven-jxr- plugin' version 2.4 * [MPMD-176] upgrade to last 5.0.5 * [MPMD-172] Warning about missing XRef for module with no source * [MPMD-168] Skip report generation if results are empty * [MPMD-167] CPD performance issues * [MPMD-166] Plugin fails when switching from 2.7.1 to 3.0.1 Improvement * [MPMD-180] Remove redundant Report word on report name labels * [MPMD-175] Work around PMD bug #1155 which crashes the plugin with an empty ruleset element. * [MPMD-169] Support multi-threaded mode of PMD 5 New Feature * [MPMD-181] Add flag to capture Benchmark information Enjoy, -The Maven team Hi, I've written one custom PMD rule and integrated with Jenkins. Maven build version was 2.2.1. But if the Maven build version is changed from 2.2.1 to 3.0.4, the maven plugin doesn't pick my new custom rule, instead it runs with the default rulesets and doesn't throw any error message. Any inputs? Parent pom: -- reporting plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId inheritedtrue/inherited version3.1/version configuration aggregatetrue/aggregate linkXreftrue/linkXref sourceEncodingutf-8/sourceEncoding minimumTokens100/minimumTokens targetJdk1.7/targetJdk rulesets ruleset ${basedir}/LoggingCustomRules.xml /ruleset /rulesets /configuration /plugin /reporting I'm running PMD for child projects. Regards, Krithika - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANN] Apache Maven PMD Plugin 3.1 Released
I think this is related to http://maven.apache.org/plugins/maven-site-plugin/maven-3.html Can you try just moving your pmd configuration inside build tag? Also make sure you update maven-site-plugin version to the latest version. Btw, if you're from maven 2 to maven 3, far better use the latest 3.2.1. Cheers 2014-03-19 12:13 GMT+01:00 Krithika Shanmugam krsha...@cisco.com: Dennis Lundberg dennisl at apache.org writes: The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.1 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. http://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version3.1/version /plugin Release Notes - Apache Maven PMD Plugin - Version 3.1 Bug * [MPMD-179] Plugin generates reports incompatible with the 'maven-jxr- plugin' version 2.4 * [MPMD-176] upgrade to last 5.0.5 * [MPMD-172] Warning about missing XRef for module with no source * [MPMD-168] Skip report generation if results are empty * [MPMD-167] CPD performance issues * [MPMD-166] Plugin fails when switching from 2.7.1 to 3.0.1 Improvement * [MPMD-180] Remove redundant Report word on report name labels * [MPMD-175] Work around PMD bug #1155 which crashes the plugin with an empty ruleset element. * [MPMD-169] Support multi-threaded mode of PMD 5 New Feature * [MPMD-181] Add flag to capture Benchmark information Enjoy, -The Maven team Hi, I've written one custom PMD rule and integrated with Jenkins. Maven build version was 2.2.1. But if the Maven build version is changed from 2.2.1 to 3.0.4, the maven plugin doesn't pick my new custom rule, instead it runs with the default rulesets and doesn't throw any error message. Any inputs? Parent pom: -- reporting plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId inheritedtrue/inherited version3.1/version configuration aggregatetrue/aggregate linkXreftrue/linkXref sourceEncodingutf-8/sourceEncoding minimumTokens100/minimumTokens targetJdk1.7/targetJdk rulesets ruleset ${basedir}/LoggingCustomRules.xml /ruleset /rulesets /configuration /plugin /reporting I'm running PMD for child projects. Regards, Krithika - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
[ANN] Apache Maven PMD Plugin 3.1 Released
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.1 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. http://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version3.1/version /plugin Release Notes - Apache Maven PMD Plugin - Version 3.1 Bug * [MPMD-179] Plugin generates reports incompatible with the 'maven-jxr-plugin' version 2.4 * [MPMD-176] upgrade to last 5.0.5 * [MPMD-172] Warning about missing XRef for module with no source * [MPMD-168] Skip report generation if results are empty * [MPMD-167] CPD performance issues * [MPMD-166] Plugin fails when switching from 2.7.1 to 3.0.1 Improvement * [MPMD-180] Remove redundant Report word on report name labels * [MPMD-175] Work around PMD bug #1155 which crashes the plugin with an empty ruleset element. * [MPMD-169] Support multi-threaded mode of PMD 5 New Feature * [MPMD-181] Add flag to capture Benchmark information Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven PMD Plugin 3.0.1 Released
The Apache Maven team is pleased to announce the release of the Maven PMD Plugin, version 3.0.1 The PMD Plugin allows you to automatically run the PMD code analysis tool on your project's source code and generate a site report with its results. It also supports the separate Copy/Paste Detector tool (or CPD) distributed with PMD. http://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version3.0.1/version /plugin Release Notes - Maven 2.x PMD Plugin - Version 3.0.1 ** Bug * [MPMD-163] - PMD issues are reported multiple times Have Fun, -- The Apache Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
I need help with a maven-pmd-plugin OutOfMemoryError: Java heap space Error.
I need some help with a maven-pmd-plugin OutOfMemoryError: Java heap space error. I narrowed it down to maven-pmd-plugin running inside Hudson. I am running with these java settings JAVA_OPTS=-Xmn1024m -Xms2048m -Xmx2048m -XX:PermSize=512m So I should have plenty of room.. I also ran it from the command line mvn -e clean pmd:pmd and got the same error. Any Ideas?? Thanks [INFO] [INFO] Building TBI common objects package 2.0.0-SNAPSHOT [INFO] [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ oracle.tbi.common.entities --- [INFO] [INFO] --- maven-pmd-plugin:3.0:pmd (default-cli) @ oracle.tbi.common.entities --- mavenExecutionResult exceptions not empty java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuffer.append(StringBuffer.java:224) at java.io.StringWriter.write(StringWriter.java:95) at java.io.PrintWriter.write(PrintWriter.java:412) at java.io.PrintWriter.write(PrintWriter.java:429) at org.apache.maven.doxia.sink.XhtmlBaseSink.write(XhtmlBaseSink.java:2031) at org.apache.maven.doxia.siterenderer.sink.SiteRendererSink.write(SiteRendererSink.java:337) at org.apache.maven.doxia.sink.XhtmlBaseSink.table_(XhtmlBaseSink.java:1205) at org.apache.maven.plugin.pmd.PmdReportListener.endFileSection(PmdReportListener.java:127) at org.apache.maven.plugin.pmd.PmdReportListener.processViolations(PmdReportListener.java:191) at org.apache.maven.plugin.pmd.PmdReportListener.endDocument(PmdReportListener.java:337) at org.apache.maven.plugin.pmd.PmdReport.generateReport(PmdReport.java:305) at org.apache.maven.plugin.pmd.PmdReport.execute(PmdReport.java:194) at org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:168) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190) at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:99) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) channel stopped Thanks John John W. Miller. Senior Software Engineer | Library Engineering 500 Eldorado Blvd, UBRM05-2096 Broomfield CO, 80021 Work Office: 13032721067 Email: HYPERLINK mailto:john.w.mil...@oracle.com; john.w.mil...@oracle.com - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: I need help with a maven-pmd-plugin OutOfMemoryError: Java heap space Error.
same issue with 2.7.1 release ? There is an issue with 3.0 which duplicate pmd errors (maybe you have too much errors :-) ). This issue is fixed in trunk (so you can try 3.1-SNAPSHOT) 2013/2/22 John Miller john.w.mil...@oracle.com: I need some help with a maven-pmd-plugin OutOfMemoryError: Java heap space error. I narrowed it down to maven-pmd-plugin running inside Hudson. I am running with these java settings JAVA_OPTS=-Xmn1024m -Xms2048m -Xmx2048m -XX:PermSize=512m So I should have plenty of room.. I also ran it from the command line mvn –e clean pmd:pmd and got the same error. Any Ideas?? Thanks [INFO] [INFO] Building TBI common objects package 2.0.0-SNAPSHOT [INFO] [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ oracle.tbi.common.entities --- [INFO] [INFO] --- maven-pmd-plugin:3.0:pmd (default-cli) @ oracle.tbi.common.entities --- mavenExecutionResult exceptions not empty java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuffer.append(StringBuffer.java:224) at java.io.StringWriter.write(StringWriter.java:95) at java.io.PrintWriter.write(PrintWriter.java:412) at java.io.PrintWriter.write(PrintWriter.java:429) at org.apache.maven.doxia.sink.XhtmlBaseSink.write(XhtmlBaseSink.java:2031) at org.apache.maven.doxia.siterenderer.sink.SiteRendererSink.write(SiteRendererSink.java:337) at org.apache.maven.doxia.sink.XhtmlBaseSink.table_(XhtmlBaseSink.java:1205) at org.apache.maven.plugin.pmd.PmdReportListener.endFileSection(PmdReportListener.java:127) at org.apache.maven.plugin.pmd.PmdReportListener.processViolations(PmdReportListener.java:191) at org.apache.maven.plugin.pmd.PmdReportListener.endDocument(PmdReportListener.java:337) at org.apache.maven.plugin.pmd.PmdReport.generateReport(PmdReport.java:305) at org.apache.maven.plugin.pmd.PmdReport.execute(PmdReport.java:194) at org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:168) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190) at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:99) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) channel stopped Thanks John ... John W. Miller. Senior Software Engineer | Library Engineering 500 Eldorado Blvd, UBRM05-2096 Broomfield CO, 80021 Work Office: 13032721067 Email: john.w.mil...@oracle.com ... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: I need help with a maven-pmd-plugin OutOfMemoryError: Java heap space Error.
Thanks Oliver for the response. This is with 2.7.1. Could it be too many rulesets?? plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.7.1/version configuration targetJdk1.6/targetJdk rulesets ruleset/rulesets/basic.xml/ruleset ruleset/rulesets/braces.xml/ruleset ruleset/rulesets/clone.xml/ruleset ruleset/rulesets/codesize.xml/ruleset !-- ruleset/rulesets/controversial.xml/ruleset -- ruleset/rulesets/coupling.xml/ruleset ruleset/rulesets/design.xml/ruleset ruleset/rulesets/finalizers.xml/ruleset ruleset/rulesets/imports.xml/ruleset ruleset/rulesets/logging-java.xml/ruleset ruleset/rulesets/optimizations.xml/ruleset ruleset/rulesets/strictexception.xml/ruleset ruleset/rulesets/sunsecure.xml/ruleset ruleset/rulesets/unusedcode.xml/ruleset /rulesets /configuration /plugin -Original Message- From: Olivier Lamy [mailto:ol...@apache.org] Sent: Friday, February 22, 2013 9:18 AM To: Maven Users List Subject: Re: I need help with a maven-pmd-plugin OutOfMemoryError: Java heap space Error. same issue with 2.7.1 release ? There is an issue with 3.0 which duplicate pmd errors (maybe you have too much errors :-) ). This issue is fixed in trunk (so you can try 3.1-SNAPSHOT) 2013/2/22 John Miller john.w.mil...@oracle.com: I need some help with a maven-pmd-plugin OutOfMemoryError: Java heap space error. I narrowed it down to maven-pmd-plugin running inside Hudson. I am running with these java settings JAVA_OPTS=-Xmn1024m -Xms2048m -Xmx2048m -XX:PermSize=512m So I should have plenty of room.. I also ran it from the command line mvn -e clean pmd:pmd and got the same error. Any Ideas?? Thanks [INFO] -- -- [INFO] Building TBI common objects package 2.0.0-SNAPSHOT [INFO] -- -- [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ oracle.tbi.common.entities --- [INFO] [INFO] --- maven-pmd-plugin:3.0:pmd (default-cli) @ oracle.tbi.common.entities --- mavenExecutionResult exceptions not empty java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.j ava:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuffer.append(StringBuffer.java:224) at java.io.StringWriter.write(StringWriter.java:95) at java.io.PrintWriter.write(PrintWriter.java:412) at java.io.PrintWriter.write(PrintWriter.java:429) at org.apache.maven.doxia.sink.XhtmlBaseSink.write(XhtmlBaseSink.java:203 1) at org.apache.maven.doxia.siterenderer.sink.SiteRendererSink.write(SiteRe ndererSink.java:337) at org.apache.maven.doxia.sink.XhtmlBaseSink.table_(XhtmlBaseSink.java:12 05) at org.apache.maven.plugin.pmd.PmdReportListener.endFileSection(PmdReport Listener.java:127) at org.apache.maven.plugin.pmd.PmdReportListener.processViolations(PmdRep ortListener.java:191) at org.apache.maven.plugin.pmd.PmdReportListener.endDocument(PmdReportLis tener.java:337) at org.apache.maven.plugin.pmd.PmdReport.generateReport(PmdReport.java:30 5) at org.apache.maven.plugin.pmd.PmdReport.execute(PmdReport.java:194) at org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:168 ) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenR eport.java:190) at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenRe port.java:99) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultB uildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor. java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor. java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor. java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjec t(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjec t(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBui ld(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycle Starter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.ja va:79) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke
Re: I need help with a maven-pmd-plugin OutOfMemoryError: Java heap space Error.
2013/2/22 John Miller john.w.mil...@oracle.com: Thanks Oliver for the response. This is with 2.7.1. Could it be too many rulesets?? ? really Your log says : [INFO] --- maven-pmd-plugin:3.0:pmd (default-cli) @ oracle.tbi.common.entities --- mavenExecutionResult exceptions not empty plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.7.1/version configuration targetJdk1.6/targetJdk rulesets ruleset/rulesets/basic.xml/ruleset ruleset/rulesets/braces.xml/ruleset ruleset/rulesets/clone.xml/ruleset ruleset/rulesets/codesize.xml/ruleset !-- ruleset/rulesets/controversial.xml/ruleset -- ruleset/rulesets/coupling.xml/ruleset ruleset/rulesets/design.xml/ruleset ruleset/rulesets/finalizers.xml/ruleset ruleset/rulesets/imports.xml/ruleset ruleset/rulesets/logging-java.xml/ruleset ruleset/rulesets/optimizations.xml/ruleset ruleset/rulesets/strictexception.xml/ruleset ruleset/rulesets/sunsecure.xml/ruleset ruleset/rulesets/unusedcode.xml/ruleset /rulesets /configuration /plugin -Original Message- From: Olivier Lamy [mailto:ol...@apache.org] Sent: Friday, February 22, 2013 9:18 AM To: Maven Users List Subject: Re: I need help with a maven-pmd-plugin OutOfMemoryError: Java heap space Error. same issue with 2.7.1 release ? There is an issue with 3.0 which duplicate pmd errors (maybe you have too much errors :-) ). This issue is fixed in trunk (so you can try 3.1-SNAPSHOT) 2013/2/22 John Miller john.w.mil...@oracle.com: I need some help with a maven-pmd-plugin OutOfMemoryError: Java heap space error. I narrowed it down to maven-pmd-plugin running inside Hudson. I am running with these java settings JAVA_OPTS=-Xmn1024m -Xms2048m -Xmx2048m -XX:PermSize=512m So I should have plenty of room.. I also ran it from the command line mvn -e clean pmd:pmd and got the same error. Any Ideas?? Thanks [INFO] -- -- [INFO] Building TBI common objects package 2.0.0-SNAPSHOT [INFO] -- -- [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ oracle.tbi.common.entities --- [INFO] [INFO] --- maven-pmd-plugin:3.0:pmd (default-cli) @ oracle.tbi.common.entities --- mavenExecutionResult exceptions not empty java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.j ava:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuffer.append(StringBuffer.java:224) at java.io.StringWriter.write(StringWriter.java:95) at java.io.PrintWriter.write(PrintWriter.java:412) at java.io.PrintWriter.write(PrintWriter.java:429) at org.apache.maven.doxia.sink.XhtmlBaseSink.write(XhtmlBaseSink.java:203 1) at org.apache.maven.doxia.siterenderer.sink.SiteRendererSink.write(SiteRe ndererSink.java:337) at org.apache.maven.doxia.sink.XhtmlBaseSink.table_(XhtmlBaseSink.java:12 05) at org.apache.maven.plugin.pmd.PmdReportListener.endFileSection(PmdReport Listener.java:127) at org.apache.maven.plugin.pmd.PmdReportListener.processViolations(PmdRep ortListener.java:191) at org.apache.maven.plugin.pmd.PmdReportListener.endDocument(PmdReportLis tener.java:337) at org.apache.maven.plugin.pmd.PmdReport.generateReport(PmdReport.java:30 5) at org.apache.maven.plugin.pmd.PmdReport.execute(PmdReport.java:194) at org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:168 ) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenR eport.java:190) at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenRe port.java:99) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultB uildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor. java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor. java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor. java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjec t(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjec t(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBui ld(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycle Starter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156
RE: I need help with a maven-pmd-plugin OutOfMemoryError: Java heap space Error.
OK that is weird.. that child project does not have a entry for PMD, but the parent entry is 2.7.1 Not sure where it is getting 3.0?? -Original Message- From: Olivier Lamy [mailto:ol...@apache.org] Sent: Friday, February 22, 2013 9:38 AM To: Maven Users List Subject: Re: I need help with a maven-pmd-plugin OutOfMemoryError: Java heap space Error. 2013/2/22 John Miller john.w.mil...@oracle.com: Thanks Oliver for the response. This is with 2.7.1. Could it be too many rulesets?? ? really Your log says : [INFO] --- maven-pmd-plugin:3.0:pmd (default-cli) @ oracle.tbi.common.entities --- mavenExecutionResult exceptions not empty plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.7.1/version configuration targetJdk1.6/targetJdk rulesets ruleset/rulesets/basic.xml/ruleset ruleset/rulesets/braces.xml/ruleset ruleset/rulesets/clone.xml/ruleset ruleset/rulesets/codesize.xml/ruleset !-- ruleset/rulesets/controversial.xml/ruleset -- ruleset/rulesets/coupling.xml/ruleset ruleset/rulesets/design.xml/ruleset ruleset/rulesets/finalizers.xml/ruleset ruleset/rulesets/imports.xml/ruleset ruleset/rulesets/logging-java.xml/ruleset ruleset/rulesets/optimizations.xml/ruleset ruleset/rulesets/strictexception.xml/ruleset ruleset/rulesets/sunsecure.xml/ruleset ruleset/rulesets/unusedcode.xml/ruleset /rulesets /configuration /plugin -Original Message- From: Olivier Lamy [mailto:ol...@apache.org] Sent: Friday, February 22, 2013 9:18 AM To: Maven Users List Subject: Re: I need help with a maven-pmd-plugin OutOfMemoryError: Java heap space Error. same issue with 2.7.1 release ? There is an issue with 3.0 which duplicate pmd errors (maybe you have too much errors :-) ). This issue is fixed in trunk (so you can try 3.1-SNAPSHOT) 2013/2/22 John Miller john.w.mil...@oracle.com: I need some help with a maven-pmd-plugin OutOfMemoryError: Java heap space error. I narrowed it down to maven-pmd-plugin running inside Hudson. I am running with these java settings JAVA_OPTS=-Xmn1024m -Xms2048m -Xmx2048m -XX:PermSize=512m So I should have plenty of room.. I also ran it from the command line mvn -e clean pmd:pmd and got the same error. Any Ideas?? Thanks [INFO] - - -- [INFO] Building TBI common objects package 2.0.0-SNAPSHOT [INFO] - - -- [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ oracle.tbi.common.entities --- [INFO] [INFO] --- maven-pmd-plugin:3.0:pmd (default-cli) @ oracle.tbi.common.entities --- mavenExecutionResult exceptions not empty java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder. j ava:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390 ) at java.lang.StringBuffer.append(StringBuffer.java:224) at java.io.StringWriter.write(StringWriter.java:95) at java.io.PrintWriter.write(PrintWriter.java:412) at java.io.PrintWriter.write(PrintWriter.java:429) at org.apache.maven.doxia.sink.XhtmlBaseSink.write(XhtmlBaseSink.java:20 3 1) at org.apache.maven.doxia.siterenderer.sink.SiteRendererSink.write(SiteR e ndererSink.java:337) at org.apache.maven.doxia.sink.XhtmlBaseSink.table_(XhtmlBaseSink.java:1 2 05) at org.apache.maven.plugin.pmd.PmdReportListener.endFileSection(PmdRepor t Listener.java:127) at org.apache.maven.plugin.pmd.PmdReportListener.processViolations(PmdRe p ortListener.java:191) at org.apache.maven.plugin.pmd.PmdReportListener.endDocument(PmdReportLi s tener.java:337) at org.apache.maven.plugin.pmd.PmdReport.generateReport(PmdReport.java:3 0 5) at org.apache.maven.plugin.pmd.PmdReport.execute(PmdReport.java:194) at org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:16 8 ) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMaven R eport.java:190) at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenR e port.java:99) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default B uildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor. java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor. java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor. java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje c t(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje c t
RE: I need help with a maven-pmd-plugin OutOfMemoryError: Java heap space Error.
My bad.. thanks for the guidance.. -Original Message- From: John Miller Sent: Friday, February 22, 2013 9:46 AM To: Maven Users List Subject: RE: I need help with a maven-pmd-plugin OutOfMemoryError: Java heap space Error. OK that is weird.. that child project does not have a entry for PMD, but the parent entry is 2.7.1 Not sure where it is getting 3.0?? -Original Message- From: Olivier Lamy [mailto:ol...@apache.org] Sent: Friday, February 22, 2013 9:38 AM To: Maven Users List Subject: Re: I need help with a maven-pmd-plugin OutOfMemoryError: Java heap space Error. 2013/2/22 John Miller john.w.mil...@oracle.com: Thanks Oliver for the response. This is with 2.7.1. Could it be too many rulesets?? ? really Your log says : [INFO] --- maven-pmd-plugin:3.0:pmd (default-cli) @ oracle.tbi.common.entities --- mavenExecutionResult exceptions not empty plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.7.1/version configuration targetJdk1.6/targetJdk rulesets ruleset/rulesets/basic.xml/ruleset ruleset/rulesets/braces.xml/ruleset ruleset/rulesets/clone.xml/ruleset ruleset/rulesets/codesize.xml/ruleset !-- ruleset/rulesets/controversial.xml/ruleset -- ruleset/rulesets/coupling.xml/ruleset ruleset/rulesets/design.xml/ruleset ruleset/rulesets/finalizers.xml/ruleset ruleset/rulesets/imports.xml/ruleset ruleset/rulesets/logging-java.xml/ruleset ruleset/rulesets/optimizations.xml/ruleset ruleset/rulesets/strictexception.xml/ruleset ruleset/rulesets/sunsecure.xml/ruleset ruleset/rulesets/unusedcode.xml/ruleset /rulesets /configuration /plugin -Original Message- From: Olivier Lamy [mailto:ol...@apache.org] Sent: Friday, February 22, 2013 9:18 AM To: Maven Users List Subject: Re: I need help with a maven-pmd-plugin OutOfMemoryError: Java heap space Error. same issue with 2.7.1 release ? There is an issue with 3.0 which duplicate pmd errors (maybe you have too much errors :-) ). This issue is fixed in trunk (so you can try 3.1-SNAPSHOT) 2013/2/22 John Miller john.w.mil...@oracle.com: I need some help with a maven-pmd-plugin OutOfMemoryError: Java heap space error. I narrowed it down to maven-pmd-plugin running inside Hudson. I am running with these java settings JAVA_OPTS=-Xmn1024m -Xms2048m -Xmx2048m -XX:PermSize=512m So I should have plenty of room.. I also ran it from the command line mvn -e clean pmd:pmd and got the same error. Any Ideas?? Thanks [INFO] - - -- [INFO] Building TBI common objects package 2.0.0-SNAPSHOT [INFO] - - -- [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ oracle.tbi.common.entities --- [INFO] [INFO] --- maven-pmd-plugin:3.0:pmd (default-cli) @ oracle.tbi.common.entities --- mavenExecutionResult exceptions not empty java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder. j ava:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390 ) at java.lang.StringBuffer.append(StringBuffer.java:224) at java.io.StringWriter.write(StringWriter.java:95) at java.io.PrintWriter.write(PrintWriter.java:412) at java.io.PrintWriter.write(PrintWriter.java:429) at org.apache.maven.doxia.sink.XhtmlBaseSink.write(XhtmlBaseSink.java:20 3 1) at org.apache.maven.doxia.siterenderer.sink.SiteRendererSink.write(SiteR e ndererSink.java:337) at org.apache.maven.doxia.sink.XhtmlBaseSink.table_(XhtmlBaseSink.java:1 2 05) at org.apache.maven.plugin.pmd.PmdReportListener.endFileSection(PmdRepor t Listener.java:127) at org.apache.maven.plugin.pmd.PmdReportListener.processViolations(PmdRe p ortListener.java:191) at org.apache.maven.plugin.pmd.PmdReportListener.endDocument(PmdReportLi s tener.java:337) at org.apache.maven.plugin.pmd.PmdReport.generateReport(PmdReport.java:3 0 5) at org.apache.maven.plugin.pmd.PmdReport.execute(PmdReport.java:194) at org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:16 8 ) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMaven R eport.java:190) at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenR e port.java:99) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default B uildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor. java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor. java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute
[ANN] Maven PMD Plugin 3.0 Released
The Apache Maven team is pleased to announce the release of the Maven PMD Plugin, version 3.0 The PMD Plugin allows you to automatically run the PMD code analysis tool on your project's source code and generate a site report with its results. It also supports the separate Copy/Paste Detector tool (or CPD) distributed with PMD. NOTE: This version of Maven PMD Plugin uses PMD 5.0.2. Please refer to PMD website for non compatible issues with previous versions. http://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version3.0/version /plugin Release Notes - Maven 2.x PMD Plugin - Version 3.0 ** Bug * [MPMD-126] - PMD fails to parse source code in a specific case * [MPMD-139] - Cannot parse super.SomeType someMethod() syntax * [MPMD-144] - An incomplete fix for the resource leak bugs in PmdReport.java * [MPMD-145] - An incomplete fix for the resource leak bugs in PmdReportTest.java * [MPMD-146] - An incomplete fix for the resource leak bugs in CpdReport.java * [MPMD-159] - Threadsafety issue when used in parallel builds ** Improvement * [MPMD-80] - maven-pmd-plugin should generate only one pmd.xml file * [MPMD-149] - Fix Potential NPE in PmdReportListener * [MPMD-150] - Add Javascript documentation * [MPMD-151] - Use canonical paths for the file list / Unit test failures on builds.apache.org * [MPMD-160] - Update to PMD 5.0.2 ** New Feature * [MPMD-89] - Having an equivalent for auxclasspath option * [MPMD-118] - Goal cpd-check uses ${pmd.failOnViolation} for failOnViolation Flag and can't be set independet from PMD check * [MPMD-147] - Migrate to PMD 5.0.2 * [MPMD-148] - Add support for javascript / ecmascript * [MPMD-161] - PMD/CPD violation exclusions by class/issue ** Task * [MPMD-156] - use maven-plugin-tools' java 5 annotations ** Wish * [MPMD-152] - Update to PMD 5.0.2 Have Fun! -- The Apache Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Maven PMD Plugin 2.7.1 Released
The Maven team is pleased to announce the release of the Maven PMD Plugin, version 2.7.1 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. http://maven.apache.org/plugins/maven-pmd-plugin You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.7.1/version /plugin Release Notes - Maven PMD Plugin - Version 2.7.1 Bug * [MPMD-142] PMD Report for maven site fails with ClassCastException Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-pmd-plugin empty pmd.xml
When I'm running mvn clean compile test pmd:pmd pmd:check my pmd.xml inside target dir is empty. put error-prone souce file directly into src/main/java my build fails. So it maybe a problem with lookup of the source files. This suggests that you've customized your source paths in the pom, is that right? Why did you do this? Maven is opinionated and things like this should be avoided unless absolutely required. You probably need to show some more lines from your pom file. Ideally you'd post it at pastebin.com and send a link here rather than sending a full pom. BTW this list strips attachments. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-pmd-plugin empty pmd.xml
Basically I've got several modules in one parent dir: AllModules ++Module1 ++Module2 ++Module3 I've got one pom for AllModules that simply integrates all other modules. Here are the poms: http://pastebin.com/DWhWCKcU I've got empty report even if I run pmd using child poms. Thanks. 2012/2/6 Wayne Fay wayne...@gmail.com When I'm running mvn clean compile test pmd:pmd pmd:check my pmd.xml inside target dir is empty. put error-prone souce file directly into src/main/java my build fails. So it maybe a problem with lookup of the source files. This suggests that you've customized your source paths in the pom, is that right? Why did you do this? Maven is opinionated and things like this should be avoided unless absolutely required. You probably need to show some more lines from your pom file. Ideally you'd post it at pastebin.com and send a link here rather than sending a full pom. BTW this list strips attachments. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-pmd-plugin empty pmd.xml
I've got empty report even if I run pmd using child poms. ... When I'm running mvn clean compile test pmd:pmd pmd:check my pmd.xml inside target dir is empty. You probably need to run mvn site rather than the complicated clean compile test pmd:pmd etc. Try that and report back. And go back to Maven.org to read up on Intro to Maven documentation so you understand how the lifecycle works. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-pmd-plugin empty pmd.xml
Hi Wayene. Thank you very much for answer. There is reason why I use thoses phases -- Jenkins CI. I don't need full site lifecycle. The reason why pmd is needed -- is to enforce coding style and standarts and fail build in case of some violations. There is no need of html/csv reports in my scenario at all. I just don't understand why maven pmd plugin doesn't work as expected in my simpliest poms provided above - perhaps some hidden feature not listed in official documentation. Please advise. PS. site also generates empty report. 2012/2/6 Wayne Fay wayne...@gmail.com I've got empty report even if I run pmd using child poms. ... When I'm running mvn clean compile test pmd:pmd pmd:check my pmd.xml inside target dir is empty. You probably need to run mvn site rather than the complicated clean compile test pmd:pmd etc. Try that and report back. And go back to Maven.org to read up on Intro to Maven documentation so you understand how the lifecycle works. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-pmd-plugin empty pmd.xml
Jenkins CI. I don't need full site lifecycle. The reason why pmd is needed -- is to enforce coding style and standarts and fail build in case of some violations. There is no need of html/csv reports in my scenario at all. I don't use this plugin as a regular thing so I can't tell you why it isn't working. I am simply going on the documentation that is published. If you aren't using the site and just want to have PMD complain about rule violations, you probably don't want to use the reporting section but instead the build section of your pom. And you probably want to use the check goal. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Maven PMD Plugin 2.7 Released
The Maven team is pleased to announce the release of the Maven PMD Plugin, version 2.7 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. http://maven.apache.org/plugins/maven-pmd-plugin You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.7/version /plugin Release Notes - Maven PMD Plugin - Version 2.7 Improvement * [MPMD-141] Add Italian Resource Bundle * [MPMD-138] Use modello to generate models to read pmd and cpd files * [MPMD-135] Update to use and require Java 5 * [MPMD-122] Add @threadSafe support for maven3 New Feature * [MPMD-137] Add French translation for CPD * [MPMD-136] Add Dutch translation Task * [MPMD-140] Require Maven 2.2.1 * [MPMD-134] Update to PMD 4.3 -- allow target to java 7 Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-pmd-plugin empty pmd.xml
On Tue, Feb 7, 2012 at 7:19 AM, Wayne Fay wayne...@gmail.com wrote: Jenkins CI. I don't need full site lifecycle. The reason why pmd is needed -- is to enforce coding style and standarts and fail build in case of some violations. There is no need of html/csv reports in my scenario at all. I don't use this plugin as a regular thing so I can't tell you why it isn't working. I am simply going on the documentation that is published. If you aren't using the site and just want to have PMD complain about rule violations, you probably don't want to use the reporting section but instead the build section of your pom. And you probably want to use the check goal. As Wayne says: http://maven.apache.org/plugins/maven-pmd-plugin/examples/violationChecking.html - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-pmd-plugin empty pmd.xml
I've put pmd config into build section of my pom (exactly as is in documentation). Still no effect and empty pmd.xml: ?xml version=1.0 encoding=UTF-8? pmd version=4.3 timestamp=2012-02-07T08:34:59.070 /pmd Please advise 2012/2/7 Barrie Treloar baerr...@gmail.com On Tue, Feb 7, 2012 at 7:19 AM, Wayne Fay wayne...@gmail.com wrote: Jenkins CI. I don't need full site lifecycle. The reason why pmd is needed -- is to enforce coding style and standarts and fail build in case of some violations. There is no need of html/csv reports in my scenario at all. I don't use this plugin as a regular thing so I can't tell you why it isn't working. I am simply going on the documentation that is published. If you aren't using the site and just want to have PMD complain about rule violations, you probably don't want to use the reporting section but instead the build section of your pom. And you probably want to use the check goal. As Wayne says: http://maven.apache.org/plugins/maven-pmd-plugin/examples/violationChecking.html - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-pmd-plugin empty pmd.xml
I've put pmd config into build section of my pom (exactly as is in documentation). Still no effect and empty pmd.xml: ?xml version=1.0 encoding=UTF-8? pmd version=4.3 timestamp=2012-02-07T08:34:59.070 /pmd Please advise Zip up your project along with at least one sample Java file with specific directions on what commands you are running etc. Post it somewhere online so someone else can download and attempt to recreate your issue. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven PMD Plugin 2.6 Released
Hello, The Apache Maven Team is pleased to announce the release of Apache Maven PMD Plugin 2.6. This plugin allows you to automatically run the PMD code analysis tool on your project's source code and generate a site report with its results. You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.6/version /plugin Documentation: http://maven.apache.org/plugins/maven-pmd-plugin Release Notes - Maven 2.x PMD Plugin - Version 2.6 ** Bug * [MPMD-124] - cannot use targetDirectory * [MPMD-127] - Report cannot correctly handle external PMD ruleset as exported by Sonar QA Dashboard ** Improvement * [MPMD-106] - Externalize messages for i18n * [MPMD-122] - Add @threadSafe support for maven3 ** Task * [MPMD-103] - Bump to Doxia 1.1.1 Have Fun! -- The Apache Maven Team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Maven PMD Plugin 2.5 Released
he Maven team is pleased to announce the release of the Maven PMD Plugin, version 2.5 The PMD plugin allows you to automatically run the PMD code analysis tool on your project's source code and generate a site report with its results. It also supports the separate Copy/Paste Detector tool (or CPD) distributed with PMD. http://maven.apache.org/plugins/maven-pmd-plugin/ You should specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.5/version /plugin Release Notes - Maven 2.x PMD Plugin - Version 2.5 ** Bug * [MPMD-73] - Report generated even when no input files present * [MPMD-82] - Output Non-HTML reports to proper site output directory * [MPMD-83] - Use proper file encoding for Non-HTML reports * [MPMD-91] - pmd does not report correct file name for unneccessary imports * [MPMD-93] - CPD writes XML report with wrong encoding * [MPMD-95] - formatnone/format causes an error * [MPMD-96] - Invalid pom.xml generated due to stale version of PMD * [MPMD-98] - The plugin console output is inconsistent * [MPMD-99] - Report doesn't reflect the real PMD version used * [MPMD-104] - Invalid generated HTML reports * [MPMD-108] - maven-pmd-plugin does not use recent (5.0) version of PMD * [MPMD-110] - Wrong resolving ruleset resource for multi module project * [MPMD-116] - Methods Rule.start and Rule.end are not executed * [MPMD-119] - CPD generates no duplicates in HTML report with site plugin 2.1 * [MPMD-120] - Ruleset XML files containing non-ascii characters are corrupted when copied into target directory ** Improvement * [MPMD-85] - Excludes PMD/CPD reports for POM files with pom packaging * [MPMD-109] - Class name not printed in pmd:check output ** New Feature * [MPMD-87] - Provide a custom ruleset for Maven projects * [MPMD-111] - Add Swedish translation * [MPMD-113] - Pass the ignoreLiterals and ignoreIdentifiers properties of CPD ** Task * [MPMD-102] - Bump to Doxia 1.0 * [MPMD-105] - Review the Doxia Sink calls * [MPMD-112] - Update to Maven Reporting Impl 2.0.4.3 ** Wish * [MPMD-97] - Update to PMD 4.2.5 Enjoy, -The Maven team - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[maven-pmd-plugin] How to make use of nicehtml?
I don't see a way to make use of the nicehtml report from within the maven-pmd-plugin. I played with writing my own wrapper format renderer as a workaround, but there are several problems with going that route, especially since what I really want is to show the nicehtml page inside of the maven site instead of what the plugin renders. My need is to have a report that clearly shows what PMD Levels are being found, and the nicehtml report is perfect for my needs. I don't see this on the roadmap, and I couldn't find anything by searching google for things like maven pmd nicehtml. I may be interested in contributing if this isn't already in the works. Does anyone have any insight into this?
[maven-pmd-plugin] How to make use of nicehtml?
I don't see a way to make use of the nicehtml report from within the maven-pmd-plugin. I played with writing my own wrapper format renderer as a workaround, but there are several problems with going that route, especially since what I really want is to show the nicehtml page inside of the maven site instead of what the plugin renders. My need is to have a report that clearly shows what PMD Levels are being found, and the nicehtml report is perfect for my needs. I don't see this on the roadmap, and I couldn't find anything by searching google for things like maven pmd nicehtml. I may be interested in contributing if this isn't already in the works. Does anyone have any insight into this?
Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin
Hi all, I'm trying to share the rule set definition for PMD between Maven and Eclipse. I had hoped to create a separate Maven project which would generate a JAR with the rule set I want to use. I had thought to add that JAR as a dependency to maven-pmd-plugin (or as a regular dependency) and reference it there but maven-pmd-plugin doesn't seem to be able to find it (within a JAR). It doesn't look like the Eclipse PMD plugin would be able to use it either. Another option would be to use an http link (like http://svn/xyz/ruleset.xml). That should work for maven-pmd-plugin but it doesn't work for the Eclipse PMD plugin (AFAICT). In any event, that would torpedo any thought of repeatable builds. Has anyone had any luck with this or a similar set up? Any other ideas? Or is it simply impossible? Cheers, Hilco - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin
It does work as a plugin dependency, but I'm not sure about that for eclipse (though presumably if you have that resources project open, you can point it directly at the file). The example is the same as at the bottom of this page for Checkstyle: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/custom-developed-checkstyle.html - Brett On 23/10/2009, at 10:22 AM, Hilco Wijbenga wrote: Hi all, I'm trying to share the rule set definition for PMD between Maven and Eclipse. I had hoped to create a separate Maven project which would generate a JAR with the rule set I want to use. I had thought to add that JAR as a dependency to maven-pmd-plugin (or as a regular dependency) and reference it there but maven-pmd-plugin doesn't seem to be able to find it (within a JAR). It doesn't look like the Eclipse PMD plugin would be able to use it either. Another option would be to use an http link (like http://svn/xyz/ruleset.xml). That should work for maven-pmd-plugin but it doesn't work for the Eclipse PMD plugin (AFAICT). In any event, that would torpedo any thought of repeatable builds. Has anyone had any luck with this or a similar set up? Any other ideas? Or is it simply impossible? Cheers, Hilco - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin
2009/10/22 Brett Porter br...@apache.org: It does work as a plugin dependency, but I'm not sure about that for eclipse (though presumably if you have that resources project open, you can point it directly at the file). AFAICT, the Eclipse plugin is rather limited in what it supports. I have only been able to add an absolute path to a rule set. The example is the same as at the bottom of this page for Checkstyle: http://maven.apache.org/plugins/maven-checkstyle-plugin/examples/custom-developed-checkstyle.html Yes, I know about this. :-) Here's what I tried and doesn't work: pmd-ruleset: src/main/resources/rulesets/da.xml (full set of rules; this is what Eclipse generates so I expect it to be okay) my-project pom.xml (snippets only): dependency artifactIdpmd-ruleset/artifactId /dependency plugin artifactIdmaven-pmd-plugin/artifactId configuration rulesets ruleset/rulesets/da.xml/ruleset /rulesets /configuration /plugin The plugin then complains that it can't find da.xml. I've also tried it with the dependency directly under the plugin. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin
AFAICT, the Eclipse plugin is rather limited in what it supports. I have only been able to add an absolute path to a rule set. Last I checked, the PMD plugins you mentioned are both open source. So if this isn't currently possible, tweak the code and submit a patch. ;-) Based on your comments, it sounds like the Eclipse PMD plugin could use some help/contributions to bring it up to par with the Maven PMD plugin... so I'd start there. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin
On 23/10/2009, at 10:45 AM, Hilco Wijbenga wrote: Yes, I know about this. :-) Here's what I tried and doesn't work: pmd-ruleset: src/main/resources/rulesets/da.xml (full set of rules; this is what Eclipse generates so I expect it to be okay) my-project pom.xml (snippets only): dependency artifactIdpmd-ruleset/artifactId /dependency plugin artifactIdmaven-pmd-plugin/artifactId configuration rulesets ruleset/rulesets/da.xml/ruleset /rulesets /configuration /plugin The plugin then complains that it can't find da.xml. I've also tried it with the dependency directly under the plugin. It needs to be under plugin, in the build section (not the reporting section, and not the pluginManagement section). Here is a working example from the Effective Implementation book: http://github.com/brettporter/centrepoint/blob/master/centrepoint/modules/pom.xml - Brett - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin
See: http://cxf.apache.org/connecting-maven-eclipse-checkstyle-and-pmd.html and http://cxf.apache.org/setting-up-eclipse.html CXF does this quite well. The setup.eclipse profile we have sets up the workspace with CXF code styles, import orders, compiler warning levels, checkstyle rules, etc It then sticks the .pmd, .ruleset, and .checkstyle files for all the projects so that the eclipse plugins will pick them up. Dan On Thu October 22 2009 7:22:22 pm Hilco Wijbenga wrote: Hi all, I'm trying to share the rule set definition for PMD between Maven and Eclipse. I had hoped to create a separate Maven project which would generate a JAR with the rule set I want to use. I had thought to add that JAR as a dependency to maven-pmd-plugin (or as a regular dependency) and reference it there but maven-pmd-plugin doesn't seem to be able to find it (within a JAR). It doesn't look like the Eclipse PMD plugin would be able to use it either. Another option would be to use an http link (like http://svn/xyz/ruleset.xml). That should work for maven-pmd-plugin but it doesn't work for the Eclipse PMD plugin (AFAICT). In any event, that would torpedo any thought of repeatable builds. Has anyone had any luck with this or a similar set up? Any other ideas? Or is it simply impossible? Cheers, Hilco - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin
2009/10/22 Daniel Kulp dk...@apache.org: See: http://cxf.apache.org/connecting-maven-eclipse-checkstyle-and-pmd.html and http://cxf.apache.org/setting-up-eclipse.html CXF does this quite well. The setup.eclipse profile we have sets up the workspace with CXF code styles, import orders, compiler warning levels, checkstyle rules, etc It then sticks the .pmd, .ruleset, and .checkstyle files for all the projects so that the eclipse plugins will pick them up. Interesting. Does it automatically handle new versions of the PMD/Checkstyle rules? The other developers here aren't used to Maven and probably will not run it but use Eclipse exclusively. So I'm trying to avoid making the Eclipse build depend on having run the Maven build first. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin
2009/10/22 Brett Porter br...@apache.org: On 23/10/2009, at 10:45 AM, Hilco Wijbenga wrote: Yes, I know about this. :-) Here's what I tried and doesn't work: pmd-ruleset: src/main/resources/rulesets/da.xml (full set of rules; this is what Eclipse generates so I expect it to be okay) my-project pom.xml (snippets only): dependency artifactIdpmd-ruleset/artifactId /dependency plugin artifactIdmaven-pmd-plugin/artifactId configuration rulesets ruleset/rulesets/da.xml/ruleset /rulesets /configuration /plugin The plugin then complains that it can't find da.xml. I've also tried it with the dependency directly under the plugin. It needs to be under plugin, in the build section (not the reporting section, and not the pluginManagement section). Here is a working example from the Effective Implementation book: http://github.com/brettporter/centrepoint/blob/master/centrepoint/modules/pom.xml Weird, that's exactly what I have. I even changed rulesets to pmd to match what you have (just in case). Maven doesn't find it. I'll have to try it at home with a smaller project. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Sharing PMD rule set between maven-pmd-plugin and Eclipse PMD plugin
On 23/10/2009, at 11:39 AM, Hilco Wijbenga wrote: It needs to be under plugin, in the build section (not the reporting section, and not the pluginManagement section). Here is a working example from the Effective Implementation book: http://github.com/brettporter/centrepoint/blob/master/centrepoint/modules/pom.xml Weird, that's exactly what I have. I even changed rulesets to pmd to match what you have (just in case). Maven doesn't find it. I'll have to try it at home with a smaller project. A possible problem under Maven 2 is if you have multiple instances of the plugin declared as the classloader of the first one is always used. That's why the above is in the root project of all that will use it. You might also consider it in a organization POM (just configuration and deps, not executions) to ensure it is shared. - Brett - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [MAVEN - PMD]
Hi! thanks for that answer... but why does it use pmd-jdk14 and not the pmd-4.2.2.jar ? (i looked for this jar as dependency and so i couldnt find the version...) Is there a plan to adapt the maven-pmd-plugin to 4.2.5? (cause ruleset- exclude patterns doesnt work with the actual plugin... but with pm 4.2.5 ) Or is there another way, to say to the plugin to use pmd version 4.2.5? thanks 2009/7/15 Arnaud HERITIER aherit...@gmail.com: PMD 4.2.2http://maven.apache.org/plugins/maven-pmd-plugin/dependencies.html Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Wed, Jul 15, 2009 at 3:42 PM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: Hello! Does anybody know which PMD Version is included in the actual Maven-PMD plugin ? I cant find it on the website.. thanks... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [MAVEN - PMD]
The issue is already opened : http://jira.codehaus.org/browse/MPMD-97pmd-jdk14 is used because maven 2.2.0 has to be compatible with Java 1.4 In the meantime you can try to upgrade locally the pmd version used in the plugin with : build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.3/version dependencies dependency groupIdpmd/groupId artifactIdpmd-jdk14/artifactId version4.2.5/version /dependency /dependencies /plugin /plugins /build Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Thu, Jul 16, 2009 at 8:02 AM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: Hi! thanks for that answer... but why does it use pmd-jdk14 and not the pmd-4.2.2.jar ? (i looked for this jar as dependency and so i couldnt find the version...) Is there a plan to adapt the maven-pmd-plugin to 4.2.5? (cause ruleset- exclude patterns doesnt work with the actual plugin... but with pm 4.2.5 ) Or is there another way, to say to the plugin to use pmd version 4.2.5? thanks 2009/7/15 Arnaud HERITIER aherit...@gmail.com: PMD 4.2.2 http://maven.apache.org/plugins/maven-pmd-plugin/dependencies.html Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Wed, Jul 15, 2009 at 3:42 PM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: Hello! Does anybody know which PMD Version is included in the actual Maven-PMD plugin ? I cant find it on the website.. thanks... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [MAVEN - PMD]
he, thanks, again for the answer.. but ... ...my real problem is, that the behavior of the maven plugin using dependency to pmd-jdk14(4.2.5), is another than pmd version 4.2.5 applied from console! Im have my own ruleset configuration with an exlude pattern. This exclude-pattern is correctly used from pmd, but ignored when I start from maven-pmd-plugin... Is this a bug? thanks 2009/7/16 Arnaud HERITIER aherit...@gmail.com: The issue is already opened : http://jira.codehaus.org/browse/MPMD-97pmd-jdk14 is used because maven 2.2.0 has to be compatible with Java 1.4 In the meantime you can try to upgrade locally the pmd version used in the plugin with : build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.3/version dependencies dependency groupIdpmd/groupId artifactIdpmd-jdk14/artifactId version4.2.5/version /dependency /dependencies /plugin /plugins /build Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Thu, Jul 16, 2009 at 8:02 AM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: Hi! thanks for that answer... but why does it use pmd-jdk14 and not the pmd-4.2.2.jar ? (i looked for this jar as dependency and so i couldnt find the version...) Is there a plan to adapt the maven-pmd-plugin to 4.2.5? (cause ruleset- exclude patterns doesnt work with the actual plugin... but with pm 4.2.5 ) Or is there another way, to say to the plugin to use pmd version 4.2.5? thanks 2009/7/15 Arnaud HERITIER aherit...@gmail.com: PMD 4.2.2 http://maven.apache.org/plugins/maven-pmd-plugin/dependencies.html Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Wed, Jul 15, 2009 at 3:42 PM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: Hello! Does anybody know which PMD Version is included in the actual Maven-PMD plugin ? I cant find it on the website.. thanks... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [MAVEN - PMD]
It's possible. I don't know. Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Thu, Jul 16, 2009 at 12:40 PM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: he, thanks, again for the answer.. but ... ...my real problem is, that the behavior of the maven plugin using dependency to pmd-jdk14(4.2.5), is another than pmd version 4.2.5 applied from console! Im have my own ruleset configuration with an exlude pattern. This exclude-pattern is correctly used from pmd, but ignored when I start from maven-pmd-plugin... Is this a bug? thanks 2009/7/16 Arnaud HERITIER aherit...@gmail.com: The issue is already opened : http://jira.codehaus.org/browse/MPMD-97pmd-jdk14 is used because maven 2.2.0 has to be compatible with Java 1.4 In the meantime you can try to upgrade locally the pmd version used in the plugin with : build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.3/version dependencies dependency groupIdpmd/groupId artifactIdpmd-jdk14/artifactId version4.2.5/version /dependency /dependencies /plugin /plugins /build Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Thu, Jul 16, 2009 at 8:02 AM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: Hi! thanks for that answer... but why does it use pmd-jdk14 and not the pmd-4.2.2.jar ? (i looked for this jar as dependency and so i couldnt find the version...) Is there a plan to adapt the maven-pmd-plugin to 4.2.5? (cause ruleset- exclude patterns doesnt work with the actual plugin... but with pm 4.2.5 ) Or is there another way, to say to the plugin to use pmd version 4.2.5? thanks 2009/7/15 Arnaud HERITIER aherit...@gmail.com: PMD 4.2.2 http://maven.apache.org/plugins/maven-pmd-plugin/dependencies.html Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Wed, Jul 15, 2009 at 3:42 PM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: Hello! Does anybody know which PMD Version is included in the actual Maven-PMD plugin ? I cant find it on the website.. thanks... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [MAVEN - PMD]
it's a bug for one year now... :-( http://jira.codehaus.org/browse/MPMD-84 2009/7/16 Arnaud HERITIER aherit...@gmail.com: It's possible. I don't know. Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Thu, Jul 16, 2009 at 12:40 PM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: he, thanks, again for the answer.. but ... ...my real problem is, that the behavior of the maven plugin using dependency to pmd-jdk14(4.2.5), is another than pmd version 4.2.5 applied from console! Im have my own ruleset configuration with an exlude pattern. This exclude-pattern is correctly used from pmd, but ignored when I start from maven-pmd-plugin... Is this a bug? thanks 2009/7/16 Arnaud HERITIER aherit...@gmail.com: The issue is already opened : http://jira.codehaus.org/browse/MPMD-97pmd-jdk14 is used because maven 2.2.0 has to be compatible with Java 1.4 In the meantime you can try to upgrade locally the pmd version used in the plugin with : build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.3/version dependencies dependency groupIdpmd/groupId artifactIdpmd-jdk14/artifactId version4.2.5/version /dependency /dependencies /plugin /plugins /build Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Thu, Jul 16, 2009 at 8:02 AM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: Hi! thanks for that answer... but why does it use pmd-jdk14 and not the pmd-4.2.2.jar ? (i looked for this jar as dependency and so i couldnt find the version...) Is there a plan to adapt the maven-pmd-plugin to 4.2.5? (cause ruleset- exclude patterns doesnt work with the actual plugin... but with pm 4.2.5 ) Or is there another way, to say to the plugin to use pmd version 4.2.5? thanks 2009/7/15 Arnaud HERITIER aherit...@gmail.com: PMD 4.2.2 http://maven.apache.org/plugins/maven-pmd-plugin/dependencies.html Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Wed, Jul 15, 2009 at 3:42 PM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: Hello! Does anybody know which PMD Version is included in the actual Maven-PMD plugin ? I cant find it on the website.. thanks... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [MAVEN - PMD]
yes and there is no patch :-( On Thu, Jul 16, 2009 at 1:48 PM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: it's a bug for one year now... :-( http://jira.codehaus.org/browse/MPMD-84 2009/7/16 Arnaud HERITIER aherit...@gmail.com: It's possible. I don't know. Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Thu, Jul 16, 2009 at 12:40 PM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: he, thanks, again for the answer.. but ... ...my real problem is, that the behavior of the maven plugin using dependency to pmd-jdk14(4.2.5), is another than pmd version 4.2.5 applied from console! Im have my own ruleset configuration with an exlude pattern. This exclude-pattern is correctly used from pmd, but ignored when I start from maven-pmd-plugin... Is this a bug? thanks 2009/7/16 Arnaud HERITIER aherit...@gmail.com: The issue is already opened : http://jira.codehaus.org/browse/MPMD-97pmd-jdk14 is used because maven 2.2.0 has to be compatible with Java 1.4 In the meantime you can try to upgrade locally the pmd version used in the plugin with : build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.3/version dependencies dependency groupIdpmd/groupId artifactIdpmd-jdk14/artifactId version4.2.5/version /dependency /dependencies /plugin /plugins /build Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Thu, Jul 16, 2009 at 8:02 AM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: Hi! thanks for that answer... but why does it use pmd-jdk14 and not the pmd-4.2.2.jar ? (i looked for this jar as dependency and so i couldnt find the version...) Is there a plan to adapt the maven-pmd-plugin to 4.2.5? (cause ruleset- exclude patterns doesnt work with the actual plugin... but with pm 4.2.5 ) Or is there another way, to say to the plugin to use pmd version 4.2.5? thanks 2009/7/15 Arnaud HERITIER aherit...@gmail.com: PMD 4.2.2 http://maven.apache.org/plugins/maven-pmd-plugin/dependencies.html Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Wed, Jul 15, 2009 at 3:42 PM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: Hello! Does anybody know which PMD Version is included in the actual Maven-PMD plugin ? I cant find it on the website.. thanks... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[MAVEN - PMD]
Hello! Does anybody know which PMD Version is included in the actual Maven-PMD plugin ? I cant find it on the website.. thanks... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [MAVEN - PMD]
PMD 4.2.2http://maven.apache.org/plugins/maven-pmd-plugin/dependencies.html Cheers, Arnaud # Arnaud Héritier # Software Factory Manager # eXo Platform # http://www.exoplatform.com # http://blog.aheritier.net On Wed, Jul 15, 2009 at 3:42 PM, javadevd...@googlemail.com javadevd...@googlemail.com wrote: Hello! Does anybody know which PMD Version is included in the actual Maven-PMD plugin ? I cant find it on the website.. thanks... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Using locales with maven-pmd-plugin
Hi all, I'm trying unsuccessfully using i18n with PMD plugin. Actually I don't know where to put my pt_BR properties file. My project is an EAR project and the configuration for reports is shown above. All site is in pt_BR, but PMD and Checkstyle. Could anybody help me? Thanks, Andre reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId version2.1/version configuration aggregatetrue/aggregate /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.4/version configuration localespt_BR/locales verbosetrue/verbose failOnRuleViolationfalse/failOnRuleViolation failOnErrorfalse/failOnError targetJdk${maven.compiler.source}/targetJdk aggregatetrue/aggregate minimumTokens100/minimumTokens rulesets ruleset${configDir}/cef-pmd.xml/ruleset /rulesets /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId version2.2/version configuration failsOnErrorfalse/failsOnError configLocationconfig/sun_checks.xml/configLocation aggregatetrue/aggregate /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-site-plugin/artifactId version2.0-beta-7/version configuration localespt_BR/locales /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-project-info-reports-plugin/artifactId version2.1/version reportSets reportSet reports reportindex/report reportdependencies/report /reports /reportSet /reportSets /plugin /plugins /reporting
Empty report with maven-pmd-plugin
Hi all, I'm facing a big problem using pmd plugin. If I use pmd and cpd goals only, everything works fine. When I use check and cpd-check goals, however, I get an empty report... (below my pmd configuration). Any clues? Thanks, Andre plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.4/version executions execution configuration localespt_BR/locales verbosetrue/verbose failOnRuleViolationfalse/failOnRuleViolation failOnErrorfalse/failOnError targetJdk${maven.compiler.source}/targetJdk aggregatetrue/aggregate minimumTokens100/minimumTokens rulesets ruleset${configDir}/cef-pmd.xml/ruleset /rulesets !-- check e cpd-check -- failOnViolationfalse/failOnViolation failurePriority5/failurePriority /configuration phasepackage/phase goals goalpmd/goal goalcpd/goal !-- empty report if I use one of these goals -- goalcheck/goal goalcpd-check/goal /goals /execution /executions /plugin
Re: [maven-pmd-plugin] Customizing generated report
Hi, I guess you already looked at the page of the plugin : http://maven.apache.org/plugins/maven-pmd-plugin/ If what you ask isn't present, then yes, you should file a JIRA for this. But as always, if you really need this additional feature, you should attach the patch. Generally customizing a single report isn't too complicated. Cheers. 2008/9/20 [EMAIL PROTECTED] Greetings, I don't see any way for me to customize the generated PMD report to my needs. Specifically, I think it would be quite helpful to me and my project developers to have clickable rules which would launch to the official PMD documentation for the rule which is being reported. I believe that PMD itself can create reports this way, I'm a bit stunned no one else has requested this before... (perhaps my searching of both the archive and JIRA is deficient, however). Perhaps I should just open a new JIRA for this? Thanks in advance, -jieryn -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
[maven-pmd-plugin] Customizing generated report
Greetings, I don't see any way for me to customize the generated PMD report to my needs. Specifically, I think it would be quite helpful to me and my project developers to have clickable rules which would launch to the official PMD documentation for the rule which is being reported. I believe that PMD itself can create reports this way, I'm a bit stunned no one else has requested this before... (perhaps my searching of both the archive and JIRA is deficient, however). Perhaps I should just open a new JIRA for this? Thanks in advance, -jieryn -- There are 10 types of people in this world, those that can read binary and those that can not. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven PMD Plugin 2.4 released
The Maven team is pleased to announce the release of the Maven PMD Plugin, version 2.4 This plugin is used to check java sources for potential programming problems like possible bugs, dead code, suboptimal code, etc... http://maven.apache.org/plugins/maven-pmd-plugin/ You can specify the plugin version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.4/version /plugin This release includes several bug fixes and other improvements: ** Bug * [MPMD-61] - When running build using -f path_to_pom/pom.xml the site is stored in working directory instead of project directory * [MPMD-70] - Move hard-coded strings to resource bundle * [MPMD-75] - PMD plugin unable to exclude groovy-stub files. * [MPMD-77] - excludeRoots doesn't work with basedir-relative paths ** Improvement * [MPMD-64] - verbose output not useful for inner classes * [MPMD-71] - Add german translation * [MPMD-72] - Add dedicated resource bundles for locale en * [MPMD-74] - Clarify usage of outputDirectory parameter * [MPMD-76] - use ${project.build.sourceEncoding} as default value for sourceEncoding parameter * [MPMD-79] - Warn about usage of platform encoding ** Task * [MPMD-78] - Update to PMD 4.2.1 (actually to 4.2.2) --- Daniel Kulp [EMAIL PROTECTED] http://www.dankulp.com/blog
Re: Maven PMD plugin dependency on pmd Jar is out of date
Hello Xavier Thanks for the clarifications. You were right, my ruleset file, basic.xml, which I copied from the pmd-4.2.1 distribution does contain the AvoidMultipleUnaryOperators rule. That rule indeed has since=4.2. When reverting to the pmd-4.1 distribution, with an earlier basic.xml ruleset file, the problem is gone. 10x again --Amir Hi, I saw your message on the pmd developer forum and on the maven lists. Based on the forum post, you are using a custom ruleset that references the AvoidMultipleUnaryOperators rule. That rule was introduced in pmd 4.2 and is not in pmd 4.1 nor is it referenced in the rulesets that ship with pmd 4.1. So the issue is not with the pmd plugin packaging but with how your custom ruleset references a newer rule that is not available yet from the pmd plugin. Best regards, Xavier Le Vourch Amir Eliaz wrote: | Hello, |Looking in | http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-pmd-plugin/2.3/maven-pmd-plugin-2.3.pom | I found out it depends on pmd-jdk14-4.1.1.jar | Now, this Jar does not contain net.sourceforge.pmd.rules | .basic.AvoidMultipleUnaryOperators | but the plugin implementation is looking for it. | But, if your use pmd-4.2.1.jar (from | http://repo1.maven.org/maven2/pmd/pmd/4.2.1) | instead of pmd-jdk14-4.1.1.jar (by manually replacing in ~/.m2/repository), | the class is found and everything works. | So the problem really is a wrong dependency in maven-pmd-plugin-2.3.pom, | which is the latest for this plugin. | | FYI | --Amir | - -- Xavier Le Vourch Brittany Software, Inc. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven PMD plugin dependency on pmd Jar is out of date
Hello, Looking in http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-pmd-plugin/2.3/maven-pmd-plugin-2.3.pom I found out it depends on pmd-jdk14-4.1.1.jar Now, this Jar does not contain net.sourceforge.pmd.rules.basic.AvoidMultipleUnaryOperators but the plugin implementation is looking for it. But, if your use pmd-4.2.1.jar (from http://repo1.maven.org/maven2/pmd/pmd/4.2.1) instead of pmd-jdk14-4.1.1.jar (by manually replacing in ~/.m2/repository), the class is found and everything works. So the problem really is a wrong dependency in maven-pmd-plugin-2.3.pom, which is the latest for this plugin. FYI --Amir
Re: Maven PMD plugin dependency on pmd Jar is out of date
This is a bug report. It should go into JIRA, not the user or dev list. Wayne On 4/17/08, Amir Eliaz [EMAIL PROTECTED] wrote: Hello, Looking in http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-pmd-plugin/2.3/maven-pmd-plugin-2.3.pom I found out it depends on pmd-jdk14-4.1.1.jar Now, this Jar does not contain net.sourceforge.pmd.rules.basic.AvoidMultipleUnaryOperators but the plugin implementation is looking for it. But, if your use pmd-4.2.1.jar (from http://repo1.maven.org/maven2/pmd/pmd/4.2.1) instead of pmd-jdk14-4.1.1.jar (by manually replacing in ~/.m2/repository), the class is found and everything works. So the problem really is a wrong dependency in maven-pmd-plugin-2.3.pom, which is the latest for this plugin. FYI --Amir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven PMD plugin dependency on pmd Jar is out of date
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I saw your message on the pmd developer forum and on the maven lists. Based on the forum post, you are using a custom ruleset that references the AvoidMultipleUnaryOperators rule. That rule was introduced in pmd 4.2 and is not in pmd 4.1 nor is it referenced in the rulesets that ship with pmd 4.1. So the issue is not with the pmd plugin packaging but with how your custom ruleset references a newer rule that is not available yet from the pmd plugin. Best regards, Xavier Le Vourch Amir Eliaz wrote: | Hello, |Looking in | http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-pmd-plugin/2.3/maven-pmd-plugin-2.3.pom | I found out it depends on pmd-jdk14-4.1.1.jar | Now, this Jar does not contain net.sourceforge.pmd.rules | .basic.AvoidMultipleUnaryOperators | but the plugin implementation is looking for it. | But, if your use pmd-4.2.1.jar (from | http://repo1.maven.org/maven2/pmd/pmd/4.2.1) | instead of pmd-jdk14-4.1.1.jar (by manually replacing in ~/.m2/repository), | the class is found and everything works. | So the problem really is a wrong dependency in maven-pmd-plugin-2.3.pom, | which is the latest for this plugin. | | FYI | --Amir | - -- Xavier Le Vourch Brittany Software, Inc. [EMAIL PROTECTED] PGP Key (ID 0x896C5947): http://brittanysoftware.com/gpg_key.asc Key fingerprint: 73B3 6370 B8C5 4325 F2D8 4115 0372 5805 896C 5947 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIB4HqA3JYBYlsWUcRApV7AKCPLhVhzfpz/tT3ZTwy01MZ3V4cBQCfeH/g iAroUW6tI2W6F/DEGmH78XE= =l+Fk -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Issue Using JDK 1.6 with maven-pmd-plugin
Hi, I am get the following issue, that is documented at http://jira.codehaus.org/browse/MPMD-67, when I using the maven-pmd-plugin with JDK 1.6. This plugin complains about the following: Can't use annotations when running in JDK 1.4 mode! Can't use generics unless running in JDK 1.5 mode! What is confusing is I specifically set the targetJDK to 1.6 (see below). The only thing I can think of is if some how the plugin on some how hardcode the JDK version inside the plugin. Any help on this issue is greatly appreciated. Thansk! Tonté pom.xml snippet: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.3/version configuration targetjdk${compileSource}/targetjdk excludes exclude**/order/process/jaxb/generated*.java/exclude /excludes rulesets ruleset/rulesets/basic.xml/ruleset ruleset/rulesets/controversial.xml/ruleset /rulesets formatxml/format linkXreftrue/linkXref sourceEncodingutf-8/sourceEncoding minimumTokens100/minimumTokens /configuration /plugin properties compileSource1.6/compileSource /properties _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ This e-mail message, including attachments, may contain confidential, proprietary, or export controlled information. Any unauthorized disclosure, distribution, or other use is prohibited, unless expressly authorized. If you receive this e-mail in error, please notify the sender, and delete all copies of the original message from your systems. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-pmd-plugin 2.2 - Missing dependency?
Hi, I tried using version 2.2 of the PMD plugin, only to find that it was failing on a NoClassDefFound error for the backport-util-concurrent JAR. I added the dependency in my local repository's version of the POM to backport-util-concurrent version 3.1, and it seemed to work fine after that. Is that a known issue? Thanks, -Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-pmd-plugin 2.2 - Missing dependency?
I think that this missing dependency comes from the PMD tool itself. Version 2.3 of maven-pmd-plugin was recently released. Do you get the same error using that? Olivier Dehon wrote: Hi, I tried using version 2.2 of the PMD plugin, only to find that it was failing on a NoClassDefFound error for the backport-util-concurrent JAR. I added the dependency in my local repository's version of the POM to backport-util-concurrent version 3.1, and it seemed to work fine after that. Is that a known issue? Thanks, -Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-pmd-plugin 2.2 - Missing dependency?
On Sat, 2008-01-19 at 20:49 +0100, Dennis Lundberg wrote: I think that this missing dependency comes from the PMD tool itself. Version 2.3 of maven-pmd-plugin was recently released. Do you get the same error using that? 2.3 works fine (and it defines the dependency on backport-util-concurrent in its POM). Unfortunately, the Sonar (sonar.hortis.ch) plugin relies on version 2.2 of the pmd plugin... I guess I will have to wait until the tool gets updated to use version 2.3 of the pmd plugin to get rid of my POM hack. I tried using version 2.2 of the PMD plugin, only to find that it was failing on a NoClassDefFound error for the backport-util-concurrent JAR. I added the dependency in my local repository's version of the POM to backport-util-concurrent version 3.1, and it seemed to work fine after that. Thanks, -Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-pmd-plugin 2.2 - Missing dependency?
Could you tell Sonar to use pmd v2.3 by specifying it in the dependencies of the Sonar plugin itself? Wayne On 1/19/08, Olivier Dehon [EMAIL PROTECTED] wrote: On Sat, 2008-01-19 at 20:49 +0100, Dennis Lundberg wrote: I think that this missing dependency comes from the PMD tool itself. Version 2.3 of maven-pmd-plugin was recently released. Do you get the same error using that? 2.3 works fine (and it defines the dependency on backport-util-concurrent in its POM). Unfortunately, the Sonar (sonar.hortis.ch) plugin relies on version 2.2 of the pmd plugin... I guess I will have to wait until the tool gets updated to use version 2.3 of the pmd plugin to get rid of my POM hack. I tried using version 2.2 of the PMD plugin, only to find that it was failing on a NoClassDefFound error for the backport-util-concurrent JAR. I added the dependency in my local repository's version of the POM to backport-util-concurrent version 3.1, and it seemed to work fine after that. Thanks, -Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-pmd-plugin 2.2 - Missing dependency?
On Sat, 2008-01-19 at 15:19 -0600, Wayne Fay wrote: Could you tell Sonar to use pmd v2.3 by specifying it in the dependencies of the Sonar plugin itself? Well, the Sonar plugin launches a Maven Embedder and creates a POM on the fly. The 2.2 version of the PMD plugin is hard-coded in the Java code for the plugin, so it is not that easy. I would have to create my own version of the sonar plugin by changing the code and re-building locally. This is obviously doable, but it looks like a far dirtier hack than changing the POM for the PMD plugin... I will ask the question on the Sonar mailing list... - Olivier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven PMD Plugin 2.3 Released
The Maven team is pleased to announce the release of Maven PMD Plugin, version 2.3. http://maven.apache.org/plugins/maven-pmd-plugin/ You can run 'mvn -up' to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.3/version /plugin Release Notes - Maven 2.x PMD Plugin - Version 2.3 ** Bug * [MPMD-55] - The Xml pmd file isn't encode to UTF8 charset counter the charset declaration in the file header * [MPMD-56] - targetJdk support for jdk 1.6 * [MPMD-57] - cpd: wrong symlink detection if relative source path is used * [MPMD-58] - sourceEncoding honoured with pmd but not cpd * [MPMD-60] - @SuppressWarnings causes maven PMD plugin to fail on building report * [MPMD-66] - Support for jdk1.4 using new pmd-jdk14 artifact * [MPMD-67] - Using JDK 1.6 causes ParseException: Can't use generics unless running in JDK 1.5 mode! * [MPMD-69] - line number is not displayed in pmd check report ** Improvement * [MPMD-65] - Better error handling for PMDException ** Task * [MPMD-59] - Upgrade to PMD 4.1 Enjoy! - The Maven Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven PMD Plugin 2.3 Released
Good work Dennis, what is next? javadoc plugin? :-) On Jan 8, 2008 12:55 PM, Dennis Lundberg [EMAIL PROTECTED] wrote: The Maven team is pleased to announce the release of Maven PMD Plugin, version 2.3. http://maven.apache.org/plugins/maven-pmd-plugin/ You can run 'mvn -up' to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.3/version /plugin Release Notes - Maven 2.x PMD Plugin - Version 2.3 ** Bug * [MPMD-55] - The Xml pmd file isn't encode to UTF8 charset counter the charset declaration in the file header * [MPMD-56] - targetJdk support for jdk 1.6 * [MPMD-57] - cpd: wrong symlink detection if relative source path is used * [MPMD-58] - sourceEncoding honoured with pmd but not cpd * [MPMD-60] - @SuppressWarnings causes maven PMD plugin to fail on building report * [MPMD-66] - Support for jdk1.4 using new pmd-jdk14 artifact * [MPMD-67] - Using JDK 1.6 causes ParseException: Can't use generics unless running in JDK 1.5 mode! * [MPMD-69] - line number is not displayed in pmd check report ** Improvement * [MPMD-65] - Better error handling for PMDException ** Task * [MPMD-59] - Upgrade to PMD 4.1 Enjoy! - The Maven Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven PMD Plugin 2.3 Released
hehe :) Vincent 2008/1/8, Dan Tran [EMAIL PROTECTED]: Good work Dennis, what is next? javadoc plugin? :-) On Jan 8, 2008 12:55 PM, Dennis Lundberg [EMAIL PROTECTED] wrote: The Maven team is pleased to announce the release of Maven PMD Plugin, version 2.3. http://maven.apache.org/plugins/maven-pmd-plugin/ You can run 'mvn -up' to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.3/version /plugin Release Notes - Maven 2.x PMD Plugin - Version 2.3 ** Bug * [MPMD-55] - The Xml pmd file isn't encode to UTF8 charset counter the charset declaration in the file header * [MPMD-56] - targetJdk support for jdk 1.6 * [MPMD-57] - cpd: wrong symlink detection if relative source path is used * [MPMD-58] - sourceEncoding honoured with pmd but not cpd * [MPMD-60] - @SuppressWarnings causes maven PMD plugin to fail on building report * [MPMD-66] - Support for jdk1.4 using new pmd-jdk14 artifact * [MPMD-67] - Using JDK 1.6 causes ParseException: Can't use generics unless running in JDK 1.5 mode! * [MPMD-69] - line number is not displayed in pmd check report ** Improvement * [MPMD-65] - Better error handling for PMDException ** Task * [MPMD-59] - Upgrade to PMD 4.1 Enjoy! - The Maven Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Maven PMD Plugin 2.3 Released
Dennis release manager On Jan 8, 2008 4:37 PM, Vincent Siveton [EMAIL PROTECTED] wrote: hehe :) Vincent 2008/1/8, Dan Tran [EMAIL PROTECTED]: Good work Dennis, what is next? javadoc plugin? :-) On Jan 8, 2008 12:55 PM, Dennis Lundberg [EMAIL PROTECTED] wrote: The Maven team is pleased to announce the release of Maven PMD Plugin, version 2.3. http://maven.apache.org/plugins/maven-pmd-plugin/ You can run 'mvn -up' to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId version2.3/version /plugin Release Notes - Maven 2.x PMD Plugin - Version 2.3 ** Bug * [MPMD-55] - The Xml pmd file isn't encode to UTF8 charset counter the charset declaration in the file header * [MPMD-56] - targetJdk support for jdk 1.6 * [MPMD-57] - cpd: wrong symlink detection if relative source path is used * [MPMD-58] - sourceEncoding honoured with pmd but not cpd * [MPMD-60] - @SuppressWarnings causes maven PMD plugin to fail on building report * [MPMD-66] - Support for jdk1.4 using new pmd-jdk14 artifact * [MPMD-67] - Using JDK 1.6 causes ParseException: Can't use generics unless running in JDK 1.5 mode! * [MPMD-69] - line number is not displayed in pmd check report ** Improvement * [MPMD-65] - Better error handling for PMDException ** Task * [MPMD-59] - Upgrade to PMD 4.1 Enjoy! - The Maven Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Maven PMD Plugin 1.10 for Maven 1.x released
We are pleased to announce the Maven PMD Plugin 1.10 release! http://maven.apache.org/maven-1.x/plugins/pmd/ The Maven PMD plugin is a plugin that wraps the PMD framework (http://pmd.sourceforge.net). PMD is a source checking framework that works by scanning Java source code and looks for potential problems like: unused local variables, empty catch blocks, unused parameters, empty 'if' statements, etc. === Changes in this version include: New Features: o Add Goals page. o Add an alternative jsl stylesheet that includes priority information. Thanks to James Dempsey. o Allow custom JSL stylesheet to be defined via a property. Fixes MPPMD-27. Fixed bugs: o Cannot run pmd with Strings rulesets. Fixes MPPMD-30. Changes: o Upgrade to PMD 3.9. Fixes MPPMD-29. o Update/clarify properties and add Default column to Properties page. o Update dependencies to unify them between plugins. The following dependencies are updated: jaxen v1.0-FCS-full to 1.1-beta-9. The following dependencies are removed: saxpath. === To automatically install the plugin, type the following on a single line: maven plugin:download -Dmaven.repo.remote=http://people.apache.org/repo/m1-snapshot-repository/,http://repo1.maven.org/maven -DgroupId=maven -DartifactId=maven-pmd-plugin -Dversion=1.10 For a manual installation, you can download the plugin here: http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-pmd-plugin-1.10.jar Have fun! -The Maven PMD Plugin development team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven PMD Plugin 2.2 released
The Maven team is pleased to announce the release of the Maven PMD Plugin version 2.2. http://maven.apache.org/plugins/maven-pmd-plugin/ Release Notes - Maven 2.x Pmd Plugin - Version 2.2 ** Bug * [MPMD-30] - No way to PMD test the test sources in src/test/java * [MPMD-47] - pmd should support multiple source roots * [MPMD-50] - Reports are different depending on the order of files retrieved from the filesystem * [MPMD-51] - Sometimes PMD.xml doesn't contain the class name and this displays null in the verbose mode * [MPMD-52] - XRef lnks do not work with aggregated XRef ** Improvement * [MPMD-28] - Support for multi-projects poms * [MPMD-38] - Add Posibility to excludes files in Cpd * [MPMD-40] - deploy the pmd.xml with site:deploy * [MPMD-44] - Allow to specify the rulesets as described in the docs * [MPMD-46] - Add ability to choose priority for failure * [MPMD-53] - pmd mojos need a skip flag similar to surefire ** New Feature * [MPMD-43] - Add results output to pmd:check * [MPMD-49] - Add results output to cpd:check ** Task * [MPMD-41] - Upgrade to PMD 3.9 - The Maven Team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven PMD plugin configuration
Wayne, I did not know yet that plugins could have a dependency reference. I did have to figure out that the dependencies tag is invalid when used in the reporting/plugins/plugin section. I had to refer to it in the build section. Thank you very much for the help. Regards, Leslie. And for those who are interested how the pom looks like after having fixed it, here it is: project modelVersion4.0.0/modelVersion groupIdmy.group/groupId artifactIdmy.artifact/artifactId version1.0.0/version build plugins plugin artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId executions execution goals goalcheck/goal goalcpd-check/goal /goals /execution /executions dependencies dependency groupIdmy.pmd/groupId artifactIdownpmdrules/artifactId version0.0.1/version /dependency /dependencies /plugin /plugins /build reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId configuration sourceEncodingutf-8/sourceEncoding minimumTokens100/minimumTokens targetJdk1.5/targetJdk rulesets rulesetsrc/main/pmd/projectrules.xml/ruleset /rulesets /configuration /plugin /plugins /reporting /project Wayne Fay [EMAIL PROTECTED] 09/03/2007 16:04 Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: Maven PMD plugin configuration Plugin nodes can take dependencies directly. Try this instead: reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId configuration sourceEncodingutf-8/ sourceEncoding minimumTokens100/minimumTokens targetJdk1.5/targetJdk rulesets ruleset src/main/pmd/projectrules.xml/ruleset /rulesets /configuration dependencies dependency groupIdmy.pmd/groupId artifactIdownpmdrules/artifactId version0.0.1/version /dependency /dependencies /plugin /plugins Wayne On 3/9/07, Leslie Bertels [EMAIL PROTECTED] wrote: Hi, I've been using Maven2 for a couple of weeks now and I'm trying to integrate PMD with Maven2. I've managed to change my pom.xml by adding the pmd plugin and run the mvn pmd:pmd succesfully. The following step is to use my own ruleset and classes it depends upon. I created a jar file containing several classes and a configuration file containing rulesets. I installed the jar in my local maven repository and added it as a dependency in my pom.xml file. But when running mvn pmd:pmd a exception is thrown because the jar cannot be found on the classpath. Does anybody have any idea to refer to a dependency from within a plugin? Thanks in advance, Leslie Bertels. Some extra info: My pom: ?xml version=1.0 encoding=UTF-8? project modelVersion4.0.0/modelVersion groupIdmy.group/groupId artifactIdmy.artifact/artifactId version1.0.0/version build plugins plugin artifactIdmaven-compiler-plugin/ artifactId configuration source1.5/source target1.5/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId executions execution goals goalcheck/goal goalcpd-check/ goal /goals /execution /executions /plugin /plugins /build dependencies dependency
Re: Maven PMD plugin configuration
I did have to figure out that the dependencies tag is invalid when used in the reporting/plugins/plugin section. I had to refer to it in the build section. Ah yes, sorry about that, you're right. I just edited the pom configuration in your email directly without actually testing it. Wayne - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]