Maven 1
  1. Maven 1
  2. MAVEN-1025

${maven.build.dir} not being substituted

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.0-rc1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      I'm having trouble building the current CVS version of XJavadoc from source. The maven.xml file contains

      <preGoal name="java:compile">
      <attainGoal name="copysrc"/>
      <attainGoal name="nodeparser"/>
      <attainGoal name="simpleparser"/>
      </preGoal>
      <goal name="copysrc" description="Copies the source code to the target">
      <mkdir dir="$

      {pom.build.sourceDirectory}"/>
      <copy todir="${pom.build.sourceDirectory}

      ">
      <fileset dir="$

      {maven.src.dir}

      ">
      <include name="*/.java"/>
      <include name="**/package.html"/>
      </fileset>
      </copy>
      <mkdir dir="$

      {pom.build.unitTestSourceDirectory}"/>
      <copy todir="${pom.build.unitTestSourceDirectory}

      ">
      <fileset dir="$

      {basedir}

      /junit"/>
      </copy>
      </goal>

      and the project.xml contains

      ...
      <build>
      <nagEmailAddress>xdoclet-devel@lists.sourceforge.net</nagEmailAddress>
      <sourceDirectory>$

      {maven.build.dir}/src</sourceDirectory>
      <unitTestSourceDirectory>${maven.build.dir}

      /junit</unitTestSourceDirectory>
      </build>
      </project>

      However, running maven (rc1) just produces the output

      BUILD FAILED
      File...... file:/home/andy/xjavadoc-clean/
      Element... mkdir
      Line...... 44
      Column.... 50
      Directory /src creation was not successful for an unknown reason
      Total time: 4 seconds

      which looks like the "$

      {maven.build.dir}

      " has been replaced with an empty string instead of "target". With beta 9 there is no problem.

        Activity

        Hide
        Brett Porter added a comment -

        this behaviour has been removed as of RC1 - only basedir and system properties get substituted into project.xml now.

        Please contact the author of XJavadoc and get them to update their descriptors for RC1. The correct way for them to do this is to preGoal java:compile and add another sourceDirectory to maven.compile.src.set ala the antlr plugin.

        Show
        Brett Porter added a comment - this behaviour has been removed as of RC1 - only basedir and system properties get substituted into project.xml now. Please contact the author of XJavadoc and get them to update their descriptors for RC1. The correct way for them to do this is to preGoal java:compile and add another sourceDirectory to maven.compile.src.set ala the antlr plugin.

          People

          • Assignee:
            Unassigned
            Reporter:
            Andrew Stevens
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: