Maven Antrun Plugin
  1. Maven Antrun Plugin
  2. MANTRUN-159

Error in "Referencing the Maven Classpaths" documentation

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Labels:
      None
    • Number of attachments :
      0

      Description

      On the page https://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html it says:

      "A property is set for each dependency with the format "groupId:artifactId[:classifier]:type". For example, to show the path to a dependency with groupId "org.apache" and artifactId "common-util", the following could be used."

      The position of the classifier in the property is not accurate, however. Through trial and error, I have determined that it is instead:

      groupId:artifactId:type[:classifier]

      So for the following:
      <dependency>
      <groupId>net.sf.docbook</groupId>
      <artifactId>docbook-xml</artifactId>
      <type>zip</type>
      <classifier>resources</classifier>
      <version>$

      {docbook.schema.version}

      -all</version>
      </dependency>

      This works:

      $$

      {net.sf.docbook:docbook-xsl:zip:ns-resources}

      =
      $

      {net.sf.docbook:docbook-xsl:zip:ns-resources}

      But this does not work:

      $$

      {net.sf.docbook:docbook-xsl:ns-resources:zip}

      =
      $

      {net.sf.docbook:docbook-xsl:ns-resources:zip}

      Change the sentence to the following.

      "A property is set for each dependency with the format "groupId:artifactId:type[:classifier]". For example, to show the path to a dependency with groupId "org.apache" and artifactId "common-util", the following could be used."

      It might be helpful to include an example that has a classifier as well.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Paul Gier
            Reporter:
            David Cramer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: