Bug 1005971

Summary: RFE: enhance aether-ant-tasks to leverage xmvn for local resolution
Product: [Fedora] Fedora Reporter: Pete MacKinnon <pmackinn>
Component: aether-ant-tasksAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: mizdebsk, msrb, sochotni, tradej
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.9.0-0.3.M3 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-11 17:42:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pete MacKinnon 2013-09-09 18:40:54 UTC
It would be nice to have ant-task dependency declarations like the following automatically resolved to fedora packages:

<target name="mvn-deploy" depends="mvn-init"
            description="Deploy artifacts to a Maven repository.">
        <artifact:deploy file="pom.xml">
            <artifact:pom file="pom.xml"/>
            <remoteRepository id="${mvn.deploy.repo.id}" url="${mvn.deploy.repo.url}"/>
        </artifact:deploy>
        <ant target="mvn-deploy" dir="core" inheritAll="false" useNativeBasedir="true"/>
        <ant target="mvn-deploy" dir="hcatalog-pig-adapter" inheritAll="false" useNativeBasedir="true"/>
        <ant target="mvn-deploy" dir="server-extensions" inheritAll="false" useNativeBasedir="true"/>
        <ant target="mvn-deploy" dir="webhcat/java-client" inheritAll="false" useNativeBasedir="true"/>
        <ant target="mvn-deploy" dir="webhcat/svr" inheritAll="false" useNativeBasedir="true"/>
</target>

Comment 1 Mikolaj Izdebski 2013-09-11 17:14:27 UTC
Feature implemented.  aether-ant-tasks are now able
to resolve artifacts from system repository using XMvn.

Example usage:

$ cat build.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:aether="antlib:org.eclipse.aether.ant" default="test">
  <taskdef uri="antlib:org.eclipse.aether.ant" resource="org/eclipse/aether/ant/antlib.xml"/>

  <aether:dependencies id="my-dep">
    <dependency groupid="org.codehaus.plexus" artifactid="plexus-utils" version="SYSTEM"/> 
  </aether:dependencies>

  <target name="test">
    <aether:resolve dependenciesref="my-dep">
      <path refid="cp" classpath="compile"/>
    </aether:resolve>
    <property name="mycp" refid="cp"/>
    <echo message="${mycp}"/>
  </target>
</project>

$ ant -Dxmvn.ant.enable=true
Buildfile: /tmp/build.xml

test:
[aether:resolve] Resolving artifacts
     [echo] /usr/share/java/plexus/utils.jar

BUILD SUCCESSFUL
Total time: 2 seconds

Comment 2 Mikolaj Izdebski 2013-09-11 17:24:34 UTC
Fixed in aether-ant-tasks-0.9.0-0.3.M3

Comment 3 Mikolaj Izdebski 2013-09-11 17:25:57 UTC
Fixed in aether-ant-tasks-0.9.0-0.3.M3

Comment 4 Mikolaj Izdebski 2013-09-11 17:42:23 UTC
I believe that this bug is fixed in aether-ant-tasks-0.9.0-0.3.M3,
which is available in Fedora Rawhide, so I am closing this bug now.

The build containing the fix can be found at Koji:
http://koji.fedoraproject.org/koji/buildinfo?buildID=463847

Comment 5 Fedora Update System 2013-09-11 17:56:37 UTC
aether-ant-tasks-0.9.0-0.3.M3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/aether-ant-tasks-0.9.0-0.3.M3.fc20

Comment 6 Fedora Update System 2013-09-22 23:56:57 UTC
aether-ant-tasks-0.9.0-0.3.M3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.