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

Reply via email to