maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Fischer <lfisc...@fastmail.fm>
Subject [m3] property ${project.build.directory} returns defect path
Date Wed, 17 Nov 2010 09:27:35 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message