You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "guillaume carre (JIRA)" <ji...@codehaus.org> on 2008/03/04 18:52:30 UTC
[jira] Commented: (MPMD-75) PMD plugin unable to exclude
groovy-stub files.
[ http://jira.codehaus.org/browse/MPMD-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126035 ]
guillaume carre commented on MPMD-75:
-------------------------------------
I have the problem using Apache CXF. By default CXF generates java sources in target\generated\src\main\java
I can't exclude this directory, it seems one can't exclude anything that is located in the target directory.
> PMD plugin unable to exclude groovy-stub files.
> -----------------------------------------------
>
> Key: MPMD-75
> URL: http://jira.codehaus.org/browse/MPMD-75
> Project: Maven 2.x PMD Plugin
> Issue Type: Bug
> Components: PMD
> Affects Versions: 2.3
> Environment: windows xp, java 1.6.0_04, maven 2.0.8, groovy 1.5.1, groovy-maven-plugin 1.0-beta3
> Reporter: Jonathan Baker
>
> When trying to run the pmd plugin to fail our build on a mixed java and groovy project, I am unable to exclude groovy-generated java stubs. It seems as though all of the exclude patterns are package and filename filters only. If this is true, then the only way to exclude groovy-generated java sources would be to move all of our groovy files into a package that contains the word groovy, or to name all of our groovy classes ClassNameGroovy.groovy. This seems unacceptible. The example on the webage for usage shows something like this:
> <excludes>
> <exclude>**/generated/*.java</exclude>
> </excludes>
> This implies that we could do something similar like this:
> <excludes>
> <exclude>**/groovy-stubs/*.java</exclude>
> </excludes>
> But that doesn't seem to work because it ends up looking for target/groovy-stubs/main/groovy-stubs/*.java because the patterns are all relative to the source roots.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira