You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Leo Lozes (Jira)" <ji...@apache.org> on 2020/06/12 09:48:00 UTC

[jira] [Comment Edited] (MRESOLVER-100) Resolver Ant Task taskdef failing

    [ https://issues.apache.org/jira/browse/MRESOLVER-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17134091#comment-17134091 ] 

Leo Lozes edited comment on MRESOLVER-100 at 6/12/20, 9:47 AM:
---------------------------------------------------------------

Any reason to not upload the uber jar in Maven? I had to download the sources and generate it myself.

This is really not clear in any way, and I only found it here: [https://stackoverflow.com/questions/61250554/deploying-jar-to-nexus-using-maven-ant-task]


was (Author: leolozes):
Any reason to not upload the uber jar in Maven? I had to download the sources and generate it myself.

This is really not clear in any way, and I only found i here: [https://stackoverflow.com/questions/61250554/deploying-jar-to-nexus-using-maven-ant-task]

> Resolver Ant Task taskdef failing
> ---------------------------------
>
>                 Key: MRESOLVER-100
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-100
>             Project: Maven Resolver
>          Issue Type: Bug
>          Components: ant tasks
>    Affects Versions: ant-tasks-1.2.0
>         Environment: Ubuntu 18.04
>            Reporter: Patrick Buchheit
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: ant-tasks-1.2.1
>
>         Attachments: pom.xml, test-build.xml
>
>
> 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:
> {noformat}
> 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]{noformat}
>  
> Looking at the antlib.xml the offending line seems to be: 
> {code:java}
> <taskdef name="resolve"              classname="org.apache.maven.resolver.internal.ant.tasks.Resolve"/>
> {code}
>  
> I'm not sure what I'm doing wrong here.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)