Uploaded image for project: 'Maven Ant Tasks (RETIRED)'
  1. Maven Ant Tasks (RETIRED)
  2. MANTTASKS-212

Maven Ant task seems to ignore artifacts with versions that start with a letter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.1.0, 2.1.1
    • None
    • dependencies task
    • None
    • OSX

    Description

      I added a dependency on http://mvnrepository.com/artifact/org.xhtmlrenderer/core-renderer/R8pre2 to my POM today and found that while the dependencies of core-renderer were getting copied to my lib folder, the core-renderer artifact itself was not. After playing around with it for a while and verifying that

      It still happens with the latest version of the Maven Ant tasks (I was originally using v2.1.0)
      Maven itself listed core-renderer as a compile scoped dependency when running mvn dependency:tree
      It wasn't the flatten step in my build script that was somehow excluding it

      I tried uploading the dependency to a local repository with version 0.8pre2 instead or R8pre2. When I changed my dependency to the local version the jar showed up as expected. My ant task looks like:

      <target name="lib">
      <mkdir dir="${lib.target}" />
      <artifact:pom id="pom" file="${basedir}/pom.xml" />
      <artifact:dependencies pomRefId="pom" filesetId="dependencies" useScope="runtime" />
      <copy toDir="${lib.target}">
      <fileset refid="dependencies" />
      <mapper type="flatten" />
      </copy>
      </target>

      And inside the POM the dependency was specified as:

      <dependency>
      <groupId>org.xhtmlrenderer</groupId>
      <artifactId>core-renderer</artifactId>
      <version>R8pre2</version>
      </dependency>

      Attachments

        Activity

          People

            Unassigned Unassigned
            iradix Dave Whittaker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: