ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From imihov <imi...@linkedin.com>
Subject Re: Settings & configuration for retrieving artifacts with classifier (javadoc, src, etc.)
Date Mon, 11 May 2009 21:30:25 GMT



cpslo1999 wrote:
> 
> (Full disclosure: I'm new to Ivy as well, so maybe one of the gurus can
> chime in and verify this)
> 
> You have both "type" and "classifier" attributes at your disposal. In your
> 
> 

Well, I agree about having "type" by default, but that does not seem to be
the case for "classifier". I was able to find this post where Xavier suggest
using an extra namespace to introduce the extra "classifier" attribute:

http://mail-archives.apache.org/mod_mbox/ant-ivy-user/200804.mbox/%3C635a05060804170035x47b50632l2dcca19e2611b644@mail.gmail.com%3E

I am not sure if I am missing something here.

Basically what I have so far is:

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module 
  version="2.0" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:e="http://ant.apache.org/ivy/extra">
  
  <info organisation="org.apache.tomcat" module="apache-tomcat"
revision="6.0.18"/>
  
  <configurations>
    <conf name="default" visibility="public" description="Default
configuration maps to master (the artifact itself)." extends="master"/>
    <conf name="master" visibility="public" description="Contains the
artifact published by this module itself, with no transitive dependencies"/>
    <conf name="source" visibility="public" description="Contains the source
artifact of this module, if any."/>
    <conf name="deployer" visibility="public" description="Contains the
Tomcat Deployer."/>
  </configurations>
  
  <publications>
    <artifact name="apache-tomcat" type="distro" ext="tar.gz"
conf="master"/>
    <artifact name="apache-tomcat" e:classifier="src" type="src"
ext="tar.gz" conf="source"/>
    <artifact name="apache-tomcat" e:classifier="deployer" type="distro"
ext="tar.gz" conf="deployer"/>
  </publications>
</ivy-module>


My Ivy settings file:

<ivysettings>
  
  <settings defaultResolver="default"/>
  
  
  <resolvers>
    <filesystem name="sandbox-repo" m2compatible="true">
      <ivy
pattern="/Users/imihov/work/eclipse/workspace/network_BR_ENG_KNL_TC6/sandbox-repo/[organisation]/[module]/[revision]/[module]-[revision].ivy"
/>
      <artifact
pattern="/Users/imihov/work/eclipse/workspace/network_BR_ENG_KNL_TC6/sandbox-repo/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"/>
    </filesystem>

    <chain name="default">
      <resolver ref="sandbox-repo"/>
    </chain>
  </resolvers>
  
</ivysettings>
Thanks,
--ivo
-- 
View this message in context: http://www.nabble.com/Settings---configuration-for-retrieving-artifacts-with-classifier-%28javadoc%2C-src%2C-etc.%29-tp23487693p23491864.html
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message