[ 
https://jira.codehaus.org/browse/MNG-4733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Benedict updated MNG-4733:
-------------------------------

    Fix Version/s:     (was: Issues to be reviewed for 3.x)

> project.build.directory should be settable by default
> -----------------------------------------------------
>
>                 Key: MNG-4733
>                 URL: https://jira.codehaus.org/browse/MNG-4733
>             Project: Maven
>          Issue Type: Improvement
>          Components: POM
>    Affects Versions: 2.2.1
>            Reporter: Joseph Walton
>            Priority: Minor
>         Attachments: target-dir.diff
>
>
> I'd like to be able to use a different target directory for projects without 
> having to edit their poms directly. I can set project.build.directory in my 
> parent pom but would also like to be able to make the change when building 
> third-party projects.
> I have two use cases.
> 1. A temporary build that doesn't affect the target directories used by 
> Eclipse
> e.g. mvn -Dtarget.dir=target.tmp test
> 2. A complete build outside the source tree of a multi-module project
> e.g. mvn -Dtarget.dir=/tmp/build/\${project.artifactId} test
> I attach a simple patch to the superpom that allows this.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to