Here is what you need to do if you want any other Ant based projects to publish
to Artifactory
1) Add the following attribute to the project element in the build.xml
xmlns:artifact="antlib:org.apache.maven.artifact.ant"
2) Add the following properties
artifactory.url
artifactory.user
artifactory.password
3) Add 'deployArtifactory' target
4) Create pom files for each artifact that you want to upload. These pom files
mainly just define the groupId, artifactId and version (no depenedencies).
Sample Code:
<target name="deployArtifactory" depends="deploy" description="Deploy
all the ICE stuff to server and Artifactory">
<artifact:pom id="earPom" file="earPom.xml" />
<artifact:install file="${dist.dir}/${earfile}">
<pom refid="earPom" />
</artifact:install>
<artifact:deploy file="${dist.dir}/${earfile}">
<remoteRepository url="${artifactory.url}">
<authentication username="${artifactory.user}"
password="${artifactory.password}" />
</remoteRepository>
<pom refid="earPom" />
</artifact:deploy>
</target>
Hopefully this will help someone.
Raghu
From: Vudathu, RaghuRam (YBUSA-KOP) [mailto:[email protected]]
Sent: Wednesday, September 16, 2009 11:00 AM
To: [email protected]
Subject: [Artifactory-users] Ant target to deploy to Artifactory
We have some legacy applications which are built with Ant, and some newer
applications that are built with Maven. These new applications depend on the
legacy application jars... We use maven's deploy feature to deploy the jar to
artifactory.
I was wondering if any of you guys have an ant target (sample code) which
deploys the generated artifact to artifactory.
Thanks in advance.
Raghu
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users