From Resin 3.0

Revision as of 00:07, 13 December 2008 by Babo (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Step by Step

[Tested with Resin 3.1.5 and Ivy 2.0]

  1. Download Ivy from http://ant.apache.org/ivy
  2. Install following the directions, i.e. copy the ivy jars to $ANT_HOME/lib, usually something like /opt/ant/lib or /usr/share/ant/lib
  3. Create a new project my-project and my-project/build.xml (see below for the build.xml)
  4. Create an ivy.xml dependencies file in my-project/ivy.xml
  5. Create an ivysettings.xml file in my-project/ivysettings.xml (to point to the Caucho repository)

The update task will download the Resin jars and their dependencies into my-project/lib.


<project name="my-project" default="update" basedir="."

  <target name="update">



<ivy-module version="2.0">
  <info organisation="com.foo" module="test"/>

    <dependency org="com.caucho" name="resin" rev="3.1.5"/>


  <settings defaultResolver="default"/>

  <include url="${ivy.default.settings.dir}/ivysettings-public.xml"/>
  <include url="${ivy.default.settings.dir}/ivysettings-shared.xml"/>
  <include url="${ivy.default.settings.dir}/ivysettings-local.xml"/>
  <include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/>

     <url name="caucho" m2compatible="true">
      <ivy pattern="http://caucho.com/m2/com/caucho/[module]/[revision]/ivy-[revision].xml"/>
      <artifact pattern="http://caucho.com/m2/com/caucho/[module]/[revision]/[artifact]-[revision].[ext]"/>
    <chain name="default" returnFirst="true">
      <resolver ref="local"/>
      <resolver ref="main"/>
      <resolver ref="caucho"/>
Personal tools