You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Erez Nahir <er...@gmail.com> on 2008/02/06 13:20:04 UTC

Maven properties resolution for surefire properties

Hi,

Using surefire 2.4 and 2.4.1, and maven 2.0.7 I have this configuration:
In parent pom.xml

...
<properties>
<root.dir>${project.build.directory}/test-classes</root.dir>
</properteis>

In my surefire configuration I do:
<pluginManagement>
      <plugins>
        <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-surefire-plugin</artifactId>
           <version>2.4.1</version>
           <configuration>
             <systemProperties>
                <property>
                  <name>my.property</name>
                  <value>${root.dir}</value>
                </property>
...

in a child pom, I have only:
...
   <plugin>
    <artifactId>maven-surefire-plugin</artifactId>
   </plugin>
  </plugins>
 </build>

But, when runnig the build, ${project.build.directory} is not resoved to
"target".
Is that expected behavior?

Thanks,
Erez.