Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2186

POM interpolation problem in maven-2.0.3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.3
    • 2.0.4
    • None
    • xp

    Description

      my maven-2.0.3 shows ${project.build.directory}=target. Instead of the fullpath
      this surely breaks the reactor build/test.

      here is an example pom

      <?xml version="1.0"?>
      <project>

      <modelVersion>4.0.0</modelVersion>

      <!--
      <parent>
      <groupId>test</groupId>
      <artifactId>parent</artifactId>
      <version>1.0-SNAPSHOT</version>
      </parent>
      -->
      <packaging>jar</packaging>
      <groupId>test</groupId>
      <artifactId>child</artifactId>
      <version>1.0-SNAPSHOT</version>

      <name>child</name>

      <build>
      <plugins>
      <plugin>
      <artifactId>maven-antrun-plugin</artifactId>
      <executions>
      <execution>
      <id>echo</id>
      <phase>generate-sources</phase>
      <goals>
      <goal>run</goal>
      </goals>
      <configuration>
      <tasks>
      <echo>project.build.directory:${project.build.directory}</echo>
      </tasks>
      </configuration>
      </execution>
      </executions>
      </plugin>
      </plugins>

      </build>

      </project>

      Carlos also comfirmed

      Confirmed

      2.0.3 = project.build.directory:target
      2.0.2 = project.build.directory:C:\Documents and
      Settings\csanchez\Local Settings\Temp\target

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              dantran Dan Tran
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: