Uploaded image for project: 'Maven Resolver'
  1. Maven Resolver
  2. MRESOLVER-100

Resolver Ant Task taskdef failing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • ant-tasks-1.2.0
    • ant-tasks-1.2.1
    • Ant Tasks
    • None
    • Ubuntu 18.04

    Description

      I'm not sure if this is an issue with the documentation or the library but using maven-resolver-ant-task in an ant taskdef does not seem to work. I followed the instructions here: https://maven.apache.org/resolver-ant-tasks/index.html to set up my project. I added the pom and build files (see attached). I copied the maven-resolver-ant-tasks.jar into the lib directory of my project.

       

      When I try to actually execute the ant build it fails with the error:

      The following error occurred while executing this line:
      jar:file:/media/psf/Home/Documents/Builder/lib/maven-resolver-ant-tasks-1.2.0.jar!/org/apache/maven/resolver/ant/antlib.xml:36: taskdef A class needed by class org.apache.maven.resolver.internal.ant.tasks.Resolve cannot be found: org/eclipse/aether/resolution/ArtifactResolutionException
       using the classloader AntClassLoader[/media/psf/Home/Documents/Builder/lib/maven-resolver-ant-tasks-1.2.0.jar]

       

      Looking at the antlib.xml the offending line seems to be: 

      <taskdef name="resolve"              classname="org.apache.maven.resolver.internal.ant.tasks.Resolve"/>
      

       

      I'm not sure what I'm doing wrong here.

       

      Attachments

        1. test-build.xml
          0.4 kB
          Patrick Buchheit
        2. pom.xml
          1 kB
          Patrick Buchheit

        Activity

          People

            michael-o Michael Osipov
            pbtura Patrick Buchheit
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: