You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2009/12/30 20:43:55 UTC

[jira] Commented: (MNG-1362) Several problems when specifying custom target dir

    [ http://jira.codehaus.org/browse/MNG-1362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204598#action_204598 ] 

Jason van Zyl commented on MNG-1362:
------------------------------------

Extremely old. I believe this is fixed, reopen if it's an issue.

> Several problems when specifying custom target dir
> --------------------------------------------------
>
>                 Key: MNG-1362
>                 URL: http://jira.codehaus.org/browse/MNG-1362
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0
>            Reporter: Vincent Massol
>
> I'd like to change my target dir to be target/maven instead of target/
> First problem:
> ===========
> If I add the following to my pom.xml:
>     <directory>${basedir}/target/maven</directory>
> Then the compiled classes still go to target/classes and not to target/maven/classes.
> Second problem:
> ==============
> If I add the following to my pom.xml:
>     <directory>${basedir}/target/maven</directory>
>     <outputDirectory>${project.build.directory}/classes</outputDirectory>
> Then the compiler fails to compile classe:
> [INFO] [compiler:compile]
> Compiling 10 source files to C:\dev\cargo\trunk\core\util\C:\dev\cargo\trunk\core\util\target\maven\classes
> [INFO] ----------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ----------------------------------------------------------------------------
> [INFO] Compilation failure
> C:\dev\cargo\trunk\core\util\src\main\java\org\codehaus\cargo\util\monitor\NullMonitor.java:[27,7] error while writing org.codehau
> s.cargo.util.monitor.NullMonitor: C:\dev\cargo\trunk\core\util\C:\dev\cargo\trunk\core\util\target\maven\classes\org\codehaus\carg
> o\util\monitor\NullMonitor.class (The filename, directory name, or volume label syntax is incorrect)

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