ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Not Zippy <notzi...@gmail.com>
Subject Optional dependencies
Date Tue, 16 Oct 2012 21:15:31 GMT
Hi

For some reason I hadn't noticed till now that when I used ant + ivy to
build my POMS that it created all the dependencies as "optional"
ie
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>2.2</version>
      <optional>true</optional>
    </dependency>

My ivy.xml looks like
<ivy-module version="1.0">
    <info
        organisation="xxx"
        module="ext-dx"
        status="integration"/>
    <configurations defaultconf="main">
      <conf name="core" visibility="private" />
      <conf name="common" extends="core" />
      <conf name="main" extends="core" />
      <conf name="default" extends="main" />
      <conf name="resource" extends="core" />
      <conf name="hidden" extends="core" />
      <conf name="test" extends="common" />
    </configurations>
    <publications>
      <artifact name="ext-dx" type="jar" conf="main"/>
      <artifact name="ext-dx" type="pom" conf="main"/>
      <artifact name="ext-dx-resource" type="zip" ext="zip" conf="main"/>
      <artifact name="ext-dx-sources" type="source" ext="jar" conf="main"/>
    </publications>
    <dependencies>
        <dependency conf="main->default" org="commons-io" name="commons-io"
rev="2.2"/>
....

Make pom is
    <ivy:makepom ivyfile="${basedir}/ivy.xml"
                 conf="default"
                 pomfile="${build.dir}/${artifact.name}.pom">
     <mapping conf="default" scope="compile"/>
     <mapping conf="default" scope="runtime"/>
    </ivy:makepom>

Anyone have idea why ? Can't see anything about it in the docs...

THANKS
nZ

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message