You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Marcel Stör (JIRA)" <ji...@codehaus.org> on 2011/02/11 15:47:22 UTC

[jira] Created: (MPMD-130) excludeRoot doesn't work in site build on multi-module projects

excludeRoot doesn't work in site build on multi-module projects
---------------------------------------------------------------

                 Key: MPMD-130
                 URL: http://jira.codehaus.org/browse/MPMD-130
             Project: Maven 2.x PMD Plugin
          Issue Type: Bug
    Affects Versions: 2.5
            Reporter: Marcel Stör


The parent POM of my multi-module setup says

<configuration>
  <targetJdk>1.6</targetJdk>
  <excludeRoots>
	<excludeRoot>target/generated-sources</excludeRoot>
  </excludeRoots>
</configuration>

If I run {{mvn pmd:cpd}} or {{mvn site}} directly on the module that actually has generated code the report is as expected. The files in {{target/generated-sources}} are ignored. Also, if I run {{mvn pmd:cpd}} at root level outside all the modules the report is fine.
However, if I run {{mvn site}} at root level outside all the modules the excludeRoot is ignored.

-- 
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

       

[jira] (MPMD-130) excludeRoot doesn't work in site build on multi-module projects

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MPMD-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=289684#comment-289684 ] 

Dennis Lundberg commented on MPMD-130:
--------------------------------------

Can someone please provide a sample project that shows this issue?
                
> excludeRoot doesn't work in site build on multi-module projects
> ---------------------------------------------------------------
>
>                 Key: MPMD-130
>                 URL: https://jira.codehaus.org/browse/MPMD-130
>             Project: Maven 2.x PMD Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Marcel Stör
>
> The parent POM of my multi-module setup says
> <configuration>
>   <targetJdk>1.6</targetJdk>
>   <excludeRoots>
> 	<excludeRoot>target/generated-sources</excludeRoot>
>   </excludeRoots>
> </configuration>
> If I run {{mvn pmd:cpd}} or {{mvn site}} directly on the module that actually has generated code the report is as expected. The files in {{target/generated-sources}} are ignored. Also, if I run {{mvn pmd:cpd}} at root level outside all the modules the report is fine.
> However, if I run {{mvn site}} at root level outside all the modules the excludeRoot is ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (MPMD-130) excludeRoot doesn't work in site build on multi-module projects

Posted by "Archimedes Trajano (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MPMD-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=279111#comment-279111 ] 

Archimedes Trajano commented on MPMD-130:
-----------------------------------------

Same applies for excludes.
Tested on Maven 3.0.3

> excludeRoot doesn't work in site build on multi-module projects
> ---------------------------------------------------------------
>
>                 Key: MPMD-130
>                 URL: https://jira.codehaus.org/browse/MPMD-130
>             Project: Maven 2.x PMD Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Marcel Stör
>
> The parent POM of my multi-module setup says
> <configuration>
>   <targetJdk>1.6</targetJdk>
>   <excludeRoots>
> 	<excludeRoot>target/generated-sources</excludeRoot>
>   </excludeRoots>
> </configuration>
> If I run {{mvn pmd:cpd}} or {{mvn site}} directly on the module that actually has generated code the report is as expected. The files in {{target/generated-sources}} are ignored. Also, if I run {{mvn pmd:cpd}} at root level outside all the modules the report is fine.
> However, if I run {{mvn site}} at root level outside all the modules the excludeRoot is ignored.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] (MPMD-130) excludeRoot doesn't work in site build on multi-module projects

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MPMD-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg closed MPMD-130.
--------------------------------

    Resolution: Incomplete
    
> excludeRoot doesn't work in site build on multi-module projects
> ---------------------------------------------------------------
>
>                 Key: MPMD-130
>                 URL: https://jira.codehaus.org/browse/MPMD-130
>             Project: Maven 2.x PMD Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Marcel Stör
>
> The parent POM of my multi-module setup says
> <configuration>
>   <targetJdk>1.6</targetJdk>
>   <excludeRoots>
> 	<excludeRoot>target/generated-sources</excludeRoot>
>   </excludeRoots>
> </configuration>
> If I run {{mvn pmd:cpd}} or {{mvn site}} directly on the module that actually has generated code the report is as expected. The files in {{target/generated-sources}} are ignored. Also, if I run {{mvn pmd:cpd}} at root level outside all the modules the report is fine.
> However, if I run {{mvn site}} at root level outside all the modules the excludeRoot is ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] (MPMD-130) excludeRoot doesn't work in site build on multi-module projects

Posted by "Marcel Stör (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MPMD-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315828#comment-315828 ] 

Marcel Stör commented on MPMD-130:
----------------------------------

{quote}Please provide a complete sample project.{quote}

Sorry, I can't. We've since moved to Sonar and dumped PMD.
                
> excludeRoot doesn't work in site build on multi-module projects
> ---------------------------------------------------------------
>
>                 Key: MPMD-130
>                 URL: https://jira.codehaus.org/browse/MPMD-130
>             Project: Maven 2.x PMD Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Marcel Stör
>
> The parent POM of my multi-module setup says
> <configuration>
>   <targetJdk>1.6</targetJdk>
>   <excludeRoots>
> 	<excludeRoot>target/generated-sources</excludeRoot>
>   </excludeRoots>
> </configuration>
> If I run {{mvn pmd:cpd}} or {{mvn site}} directly on the module that actually has generated code the report is as expected. The files in {{target/generated-sources}} are ignored. Also, if I run {{mvn pmd:cpd}} at root level outside all the modules the report is fine.
> However, if I run {{mvn site}} at root level outside all the modules the excludeRoot is ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] (MPMD-130) excludeRoot doesn't work in site build on multi-module projects

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MPMD-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315824#comment-315824 ] 

Dennis Lundberg commented on MPMD-130:
--------------------------------------

Where do you put your configuration, under <build> or <reporting>?
Please provide a complete sample project.
                
> excludeRoot doesn't work in site build on multi-module projects
> ---------------------------------------------------------------
>
>                 Key: MPMD-130
>                 URL: https://jira.codehaus.org/browse/MPMD-130
>             Project: Maven 2.x PMD Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Marcel Stör
>
> The parent POM of my multi-module setup says
> <configuration>
>   <targetJdk>1.6</targetJdk>
>   <excludeRoots>
> 	<excludeRoot>target/generated-sources</excludeRoot>
>   </excludeRoots>
> </configuration>
> If I run {{mvn pmd:cpd}} or {{mvn site}} directly on the module that actually has generated code the report is as expected. The files in {{target/generated-sources}} are ignored. Also, if I run {{mvn pmd:cpd}} at root level outside all the modules the report is fine.
> However, if I run {{mvn site}} at root level outside all the modules the excludeRoot is ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira