ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From greenLED <juan.mej...@reduc.edu.cu>
Subject Re: how to publish artifacts in to remote server (eg: Linux machine)
Date Wed, 06 May 2015 10:02:41 GMT
Hi. You can achieve remote publication by several ways (HTTP, FTP, SSH). 
To get it done with HTTP, there must be some server side program 
accepting your submit requests. You can write your own, but I strongly 
recommend you using existing repository manages, like Apache Archiva or 
jFrog Artifactory. I am using the open source version of Artifactory, 
with great results. Let's say you have something awaiting your submit 
requests, next step will be to define an <url/> resolver, like this

<url name="remote">
	<ivy pattern="${ivy.remote.root}/${ivy.remote.ivy.pattern}" />
	<artifact pattern="${ivy.remote.root}/${ivy.remote.artifact.pattern}" />
</url>

and publish to it

<ivy:publish resolver="remote" status="integration" forcedeliver="true" overwrite="true"
publishivy="true">
	<artifacts pattern="${dist.dir}/[artifact].[ext]"/>
</ivy:publish>

That's all.

Regards,
Juan Carlos


El 06/05/2015 a las 5:46, Ravindra Reddy escribió:
> Hi ,
>
> How to publish artifacts in to remote machine (eg: linux) ?
>
> I have published artifacts in to my local (windows) but I want to publish
> same artifacts in to Linux machine.
>
> <ivysettings>
>
>      <!-- Load the build.properties -->
>      <properties file="${ivy.settings.dir}/ivy.properties" />
>
>     <!-- Properties for a local repository of artifacts we're building -->
>      <property name="ivy.local.root"
> value="${ivy.settings.dir}/build/ivy-repository" /> (publishing artifacts
> in to local like this I want to publish to some remote machine)
>      <property name="ivy.local.ivy.pattern"
> value="[organisation]/[module]/[artifact]-[revision].[ext]" />
>      <property name="ivy.local.artifact.pattern"
> value="[organisation]/[module]/[artifact]-[revision].[ext]" />
>
>
>      <settings defaultResolver="offline" />
>
> <resolvers>
>          <filesystem name="local">
>              <ivy pattern="${ivy.local.root}/${ivy.local.ivy.pattern}" />
>              <artifact
> pattern="${ivy.local.root}/${ivy.local.artifact.pattern}" />
>          </filesystem>
>
>          <chain name="offline">
>              <resolver ref="local" />
>              </chain>
>      </resolvers>
> </ivysettings>
>
>
> publish tag
>
> <ivy:publish resolver="local" status="integration" forcedeliver="true"
> overwrite="true" publishivy="true">
>     <artifacts pattern="${dist.dir}/[artifact].[ext]"/>
>    </ivy:publish>
>
> could you please help me on this?
>
> Thanks in advance.
>
>
> *Regards,*
> *Ravindra Reddy J*
>


Mime
View raw message