You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sean Gay (JIRA)" <ji...@codehaus.org> on 2008/03/05 02:12:28 UTC

[jira] Commented: (MPMD-61) When running build using "-f /pom.xml" the site is stored in working directory instead of project directory

    [ http://jira.codehaus.org/browse/MPMD-61?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126071 ] 

Sean Gay commented on MPMD-61:
------------------------------

After reading this issue I implemented a work-around that seems to solve my problems for multi-module builds. Simply place the following line in your configuration for the PMD plugin.

{code}
<outputDirectory>${project.build.directory}/site</outputDirectory>
{code}


> When running build using "-f <path_to_pom>/pom.xml" the site is stored in working directory instead of project directory
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MPMD-61
>                 URL: http://jira.codehaus.org/browse/MPMD-61
>             Project: Maven 2.x PMD Plugin
>          Issue Type: Bug
>          Components: PMD
>    Affects Versions: 2.2
>         Environment: Windows XP, Java 1.5, Maven 2.0.7
>            Reporter: Peter Hayes
>         Attachments: output-directory.patch, pmd-multi-module.zip
>
>
> I setup a multi-module build and included the pmd check goal to run during the verify phase.  When I execute a build from the top level directory specifying -f <path>/pom.xml, the plugin creates a target/site/... directory in the current working directory.  This directory should be in the project directory and now fails to clean.
> I have attached a sample project.  To reproduce :
> cd pmd-multi-module
> mvn -f ./root/pom.xml install
> Note that after the build there is a target directory in the current working directory with the pmd.html and other files within it.

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