| Summary: | RFE: enhance aether-ant-tasks to leverage xmvn for local resolution | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Pete MacKinnon <pmackinn> |
| Component: | aether-ant-tasks | Assignee: | Mikolaj Izdebski <mizdebsk> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | 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: | |
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
Fixed in aether-ant-tasks-0.9.0-0.3.M3 Fixed in aether-ant-tasks-0.9.0-0.3.M3 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 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 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. |
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>