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

Benjamin Bentmann updated MNG-4733:
-----------------------------------

    Component/s:     (was: Apache or Maven Parent poms)
                 POM

> project.build.directory should be settable by default
> -----------------------------------------------------
>
>                 Key: MNG-4733
>                 URL: http://jira.codehaus.org/browse/MNG-4733
>             Project: Maven 2 & 3
>          Issue Type: Improvement
>          Components: POM
>    Affects Versions: 2.2.1
>            Reporter: Joseph Walton
>            Priority: Minor
>             Fix For: Issues to be reviewed for 3.x
>
>         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 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

        

Reply via email to