Hello,
I tested your configuration and it works fine for me (Apache Maven 3.0
and exec-maven-plugin-1.0)
First, you can execute : mvn help:effective-pom
You will see the real path returned by the property
${project.build.directory}.
2010/11/17 Lars Fischer <[email protected]>
> Hello,
>
> I use Maven v3.0.0 and would like to use the property
> "${project.build.directory}" inside commandlineArgs of the
> "exec-maven-plugin".
>
> My configuration looks like this:
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>exec-maven-plugin</artifactId>
> <version>1.1</version>
> <executions>
> <execution>
> <id>test</id>
> <goals>
> <goal>exec</goal>
> </goals>
> <phase>install</phase>
> <configuration>
> <executable>echo</executable>
> <commandlineArgs>${project.build.directory}</commandlineArgs>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
> As result the path to the target folder of the build project is printed.
>
> But there is a major problem: the path does not contain any "/" or "\". It
> looks like
> "D:developmentprojectstesttarget" but should be
> "D:\development\projects\test\target"
>
> Where is my mistake?
>
> Kind regards,
> Lars
>