groovy를 ant로 추가하여 문제를 해결하고 매크로를 만들어 넥서스에서 최신 부 버전을 가져 왔습니다.
<taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpath="Ant-library/groovy-all-2.2.1.jar"/>
<macrodef name="fetchLatestMinor">
<attribute name="group" default="NOT SET"/>
<attribute name="artifact" default="NOT SET"/>
<attribute name="majorVersion" default="NOT SET"/>
<attribute name="repo" default="NOT SET"/>
<attribute name="packaging" default="NOT SET"/>
<attribute name="destination" default="NOT SET"/>
<sequential>
<property name="latestVersion" value=""/>
<groovy>
def url = "http://local:8081/nexus/service/local/lucene/[email protected]{artifact}&v="[email protected]{majorVersion}+".*-SNAPSHOT"
def xml = url.toURL().text
def root = new XmlParser().parseText(xml)
properties["latestVersion"] = root.data.artifact[0].version.text()
println root.data.artifact[0].version.text()
</groovy>
<get src="http://local:8081/nexus/service/local/artifact/maven/[email protected]{group}&[email protected]{artifact}&v=${latestVersion}&[email protected]{repo}&[email protected]{packaging}" dest="@{destination}"/>
</sequential>
</macrodef>
<target name="run">
<fetchLatestMinor group="<group_name>" artifact="<artifact_name>" majorVersion="2.0" repo="<repo_name>" packaging="war" destination="abc.war" />
</target>
이슈를 다운로드 할 수있는 URL을 원합니다. –