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

CLONE -${pom.build.sourceDirectory} and ${pom.build.testSourceDirectory} no longer recognized

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.9
    • Component/s: POM
    • Labels:
      None
    • Environment:
      n/a

      Description

      The properties ${pom.build.sourceDirectory} and ${pom.build.testSourceDirectory} (and perhaps others as well) are no longer recognized in pom.xml. The following pom fragment had the desired effect of copying resources from the sourceDirectory in version 2.0.3, but doesn't work in 2.0.4:

      <build>
      <sourceDirectory>src</sourceDirectory>
      <testSourceDirectory>src-test</testSourceDirectory>
      <resources>
      <resource>
      <directory>${pom.build.sourceDirectory}</directory>
      <includes>
      <include>*/.properties</include>
      </includes>
      </resource>
      </resources>
      <testResources>
      <testResource>
      <directory>${pom.build.testSourceDirectory}</directory>
      <includes>
      <include>**/mockfiles/</include>
      </includes>
      </testResource>
      </testResources>

      The attached project will fail on a 'mvn test' under maven 2.0.4 and succeed under 2.0.3

        Attachments

        1. buglet.zip
          5 kB
          Venelin Mitov

          Issue Links

            Activity

              People

              • Assignee:
                jdcasey John Casey
                Reporter:
                vmitov Venelin Mitov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: