Bug 1005971 - RFE: enhance aether-ant-tasks to leverage xmvn for local resolution
Summary: RFE: enhance aether-ant-tasks to leverage xmvn for local resolution
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: aether-ant-tasks
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Mikolaj Izdebski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-09 18:40 UTC by Pete MacKinnon
Modified: 2013-09-22 23:56 UTC (History)
4 users (show)

Fixed In Version: 0.9.0-0.3.M3
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-11 17:42:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.