You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2007/12/26 22:43:57 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_117931 ] 

Dennis Lundberg commented on MPMD-61:
-------------------------------------

I can confirm this behavior.

When looking at the code I found this:
{code:title=AbstractPmdReport.java}
    /**
     * The output directory for the intermediate XML report.
     *
     * @parameter expression="${project.build.directory}"
     * @required
     */
    protected File targetDirectory;

    /**
     * The output directory for the final HTML report.
     *
     * @parameter expression="${project.reporting.outputDirectory}"
     * @required
     */
    protected String outputDirectory;
{code}

The intermediate xml file is in the root/child/target directory, but the final report is in the working directory's target directory. I don't think that the cause of this problem lies within the pmd-plugin.

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