0
에 해결 ivy.xml를 게시하는 방법 나의 유물은에 텍스트 (ID를 커밋)와 텍스트 파일입니다. 여기 내 ivy.xml과의 build.xml는 넥서스
ivy.xml가 된 build.xml
<project xmlns:ivy="antlib:org.apache.ivy.ant" name="SuperRoot" default="prepare" basedir=".">
<property file="../release.properties"/>
<path id="ivy.lib.path">
<fileset dir="../lib" includes="*.jar"/>
</path>
<taskdef resource="org/apache/ivy/ant/antlib.xml"
uri="antlib:org.apache.ivy.ant"
classpathref="ivy.lib.path"/>
<property name="organisation" value="org.myorg"/>
<property name="build.dir" value="."/>
<property name="ivy.dir" value="build/ivy"/>
<target name="init">
<mkdir dir="build"/>
<mkdir dir="build/ivy"/>
</target>
<target name="prepare" description="Generate POM">
<ivy:settings file="../ivysettings.xml" />
<ivy:retrieve />
<!-- Optional: Intermediate file containing resolved version numbers -->
<echo message="Using repo at ${repo.host} "/>
<ivy:deliver deliverpattern="${ivy.dir}/ivy.xml"
pubrevision="${publish.revision}"
status="release"/>
<!-- Generate the Maven POM -->
<ivy:makepom ivyfile="${ivy.dir}/ivy.xml"
pomfile="${build.dir}/pom.xml"/>
</target>
<target name="publish" depends="init,prepare" description="Upload to Nexus">
<ivy:resolve/>
<ivy:publish organisation="org.myorg" module="commit-info"
resolver="nexus-deploy"
pubrevision="${publish.revision}"
overwrite="true"
publishivy="false" >
<artifacts pattern="${build.dir}/[artifact].[ext]"/>
</ivy:publish>
</target>
</project>
개미 게시
<ivy-module version="2.0">
<info organisation="org.myorg"
module="commit-info"
status="release"/>
<publications>
<artifact name="commit_info" type="text" ext="txt"/>
</publications>
</ivy-module>
이 만들어 내 저장소에 파일을 복사하다 (넥서스). 이것은 "해결 된"ivy.xml을 복사하지 않습니다. 어떻게 게시 할 수 있습니까?