Xavier Hanin wrote:
It seems that Ivy find the modules but no artifacts (only 0 in the artifact
number column). So either the module descriptors for your dependencies
define no published artifact, or you depend on a configuration in these
module which have no artifacts.

Could you share your ivy.xml (and maybe also your ivyconf.xml)?

I'm pulling in stuff from the m2 repository, at least trying to.

ivy.xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="http://ivyrep.jayasoft.org/ivy-doc.xsl";?>
<ivy-module version="1.4">

  <info organisation="org.antbook" module="diary-core" />
  <!-- define four configurations, here-->
  <configurations defaultconfmapping="runtime">
    <conf name="compile" visibility="private"/>
    <conf name="test" extends="compile" visibility="private"/>
<conf name="master" description="contains the artifact but no dependencies"/>
    <conf name="runtime" extends="compile"/>
  </configurations>
  <publications>
    <!--get the artifact from our module name-->
    <artifact  />
  </publications>
  <dependencies>

<dependency org="log4j" name="log4j" rev="${log4j.version}" conf="compile->runtime"/>

    <!--test time artifacts-->
<dependency org="junit" name="junit" rev="${junit.version}" conf="test->runtime"/>

  </dependencies>
</ivy-module>



<ivyconf>
  <!--
  see http://www.jayasoft.org/ivy/doc/configuration
  -->
  <!-- you can override this property to use mirrors
          http://mirrors.dotsrc.org/maven2
          http://ftp.ggi-project.org/pub/packages/maven2
          http://mirrors.sunsite.dk/maven2
          http://public.planetmirror.com/pub/maven2
          http://ibiblio.lsu.edu/main/pub/packages/maven2
          http://www.ibiblio.net/pub/packages/maven2
  -->
  <property name="ibiblio-maven2-root"
      value="http://www.ibiblio.org/maven2/"; override="false"/>
  <property name="maven2.pattern"
      value="[organisation]/[module]/[revision]/[module]-[revision]" />
  <property name="maven2.pattern.ext"
      value="${maven2.pattern}.[ext]" />
  <!-- pull in the local repository -->
  <include url="${ivy.default.conf.dir}/ivyconf-local.xml"/>
  <conf defaultResolver="default"/>
  <resolvers>
    <filesystem name="team">
            ivys="true" artifacts="true"
            m2compatible="true" >
<artifact pattern="${ivy.conf.dir}/repository/${maven2.pattern.ext}"/>
        <ivy pattern="${ivy.conf.dir}/repository/${maven2.pattern}.xml"/>
      </filesystem>
      <ivyrep name="ivyrep"/>
<ivyrep name="sandbox" ivyroot="http://opensvn.csie.org/ivyrepsandbox/"/>
      <ibiblio name="maven2"
          root="${ibiblio-maven2-root}"
          pattern="${maven2.pattern.ext}"
          m2compatible="true"
          />
    <chain name="default" dual="true">
      <resolver ref="local"/>
      <resolver ref="team"/>
      <resolver ref="ivyrep"/>
      <resolver ref="sandbox"/>
      <resolver ref="maven2"/>
    </chain>
    <chain name="internal">
      <resolver ref="local"/>
      <resolver ref="team"/>
    </chain>
  </resolvers>
  <modules>
    <module organisation="org.antbook" name=".*" resolver="internal"/>
  </modules>
</ivyconf>



Reply via email to