In Maven 2.0 the value containes the whole absolute path to the target
dir.
C:\windows\system32\target
With Maven 2.0.1 only:
target\
I use the JavaCC-plugin:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>javacc-maven-plugin</artifactId>
<version>0.6.1-SNAPSHOT</version>
<configuration>
<outputDirectory>${project.build.directory}/generated-src/main/java</out
putDirectory>
</configuration>
....
</plugin>
The problem now arise when the project with javacc is part of a
multi-module build (with 2.0.1).
Because ${project.build.directory}/generated-src/main/java evalulates to
target/generated-src/main/java the files are generated to the
parent-project target-directory!
Which value should ${project.build.directory} contain?
Thanks
Workaround: Its simple to fix this in the pom.xml using
${basedir}/target/generated-src/main/java.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]