[ http://jira.codehaus.org/browse/MNG-1362?page=all ]
Brett Porter updated MNG-1362:
------------------------------
Description:
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)
was:
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)
Fix Version: 2.0.1
Environment:
this first part is a dupe of a bug you've already filed.
the second part looks like a mkdirs is needed somewhere. this bug should be for
correcting that
> Several problems when specifying custom target dir
> --------------------------------------------------
>
> Key: MNG-1362
> URL: http://jira.codehaus.org/browse/MNG-1362
> Project: Maven 2
> Type: Bug
> Versions: 2.0
> Reporter: Vincent Massol
> Fix For: 2.0.1
>
>
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]