Hello all,

I have a need to use maven-scm to fetch and place an external source
to somewhere inside target directory at generate-sources phase ( this
works fine with maven-scm-plugin) and point my build.sourceDirectory to
the new location, but maven does not seems to be able to interpolate it.
( in all maven 2 versions) Here is my test pom.


<project>
  <modelVersion>4.0.0</modelVersion>

  <groupId>test</groupId>
  <artifactId>test</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>jar</packaging>
  <name>Test</name>

  <build>
    <sourceDirectory>${project.build.directory}/checkout</sourceDirectory>
  </build>

</project>

mvn -X compile  shows

[DEBUG]   (f) basedir = C:\Documents and Settings\dtran\tmp
[DEBUG]   (f) buildDirectory = C:\Documents and Settings\dtran\tmp\target
[DEBUG]   (f) classpathElements = [C:\Documents and
Settings\dtran\tmp\target\cl
asses]
[DEBUG]   (f) compileSourceRoots = [C:\Documents and
Settings\dtran\tmp\${projec
t.build.directory}\checkout]

....

is it a bug?

-D

Reply via email to