ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lewis John Mcgibbney <lewis.mcgibb...@gmail.com>
Subject rev="latest.integration" not new enough
Date Fri, 22 Feb 2013 21:56:23 GMT
Hi Everyone,

I have an issue where I wish to use the most recent snapshot from here [0]
when sourcing the dependencies for another project.
If you look at [0] you'll see that there are various SNAPSHOT's available.
I wish to pull the 'very' latest one e.g. an irtifact which looks like this
gora-cassandra-0.3-20130222.081353-236.jar<https://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-cassandra/0.3-SNAPSHOT/gora-cassandra-0.3-20130222.081353-236.jar>
Simply put, these are nightly build artifacts and are the result of work we
are doing elsewhere. We wish to use these in the upstream application.
I've therefore configured the following

*ivysettings.xml*
------------------
<property name="snapshot.apache.org"
    value="https://repository.apache.org/content/repositories/snapshots/"
    override="false"/>
  <property name="maven2.pattern"
    value="[organisation]/[module]/[revision]/[module]-[revision]"/>
  <property name="maven2.pattern.ext"
    value="${maven2.pattern}.[ext]"/>
...
<resolvers>
    <ibiblio name="maven2"
      root="${repo.maven.org}"
      pattern="${maven2.pattern.ext}"
      m2compatible="true"
      />
    <ibiblio name="apache-snapshot"
      root="${snapshot.apache.org}"
      pattern="${maven2.pattern.ext}"
      m2compatible="true"
      />
...
<chain name="external-and-snapshots">
      <resolver ref="maven2"/>
      <resolver ref="apache-snapshot"/>
      <resolver ref="sonatype"/>
    </chain>
...
<module organisation="org.apache.gora" name=".*"
resolver="external-and-snapshots"/>

*ivy.xml*
---------
dependency org="org.apache.gora" name="gora-cassandra"
rev="latest.integration" conf="*->default" />

*PROBLEMS*

1) My first problem is that when I look at the latest.integration version
of the above SNAPSHOT in my ~/.ivy2/cache, I see that it is actually not
the latest.integration revision as the artifact pattern does not reflect
the latest one.

I observe the artifact
<info organisation="org.apache.gora" module="gora-cassandra"
revision="0.3-SNAPSHOT" status="integration" publication="20120723224854">
when what I want is
<info organisation="org.apache.gora" module="gora-cassandra"
revision="0.3-SNAPSHOT-20130222.081353-236" status="integration"
publication="${yesterday_evening}">

Does this therefore suggest that I need to change the pattern value for Ivy
to specifically fetch the most recent SNAPSHOT as desired?

2) I get the following rather unsavoury output when I try to compile

[ivy:resolve] :::: WARNINGS
[ivy:resolve]         module not found:
me.prettyprint#hector-core;working@CEE279Law3-Linux
[ivy:resolve]     ==== local: tried
[ivy:resolve]
/home/law/.ivy2/local/me.prettyprint/hector-core/working@CEE279Law3-Linux
/ivys/ivy.xml
[ivy:resolve]       -- artifact
me.prettyprint#hector-core;working@CEE279Law3-Linux!hector-core.jar:
[ivy:resolve]
/home/law/.ivy2/local/me.prettyprint/hector-core/working@CEE279Law3-Linux
/jars/hector-core.jar
[ivy:resolve]     ==== maven2: tried
[ivy:resolve]
http://repo1.maven.org/maven2/me/prettyprint/hector-core/working@CEE279Law3-Linux/hector-core-working@CEE279Law3-Linux.pom
[ivy:resolve]       -- artifact
me.prettyprint#hector-core;working@CEE279Law3-Linux!hector-core.jar:
[ivy:resolve]
http://repo1.maven.org/maven2/me/prettyprint/hector-core/working@CEE279Law3-Linux/hector-core-working@CEE279Law3-Linux.jar
[ivy:resolve]     ==== sonatype: tried
[ivy:resolve]
http://oss.sonatype.org/content/repositories/releases/me/prettyprint/hector-core/working@CEE279Law3-Linux/hector-core-working@CEE279Law3-Linux.pom
[ivy:resolve]       -- artifact
me.prettyprint#hector-core;working@CEE279Law3-Linux!hector-core.jar:
[ivy:resolve]
http://oss.sonatype.org/content/repositories/releases/me/prettyprint/hector-core/working@CEE279Law3-Linux/hector-core-working@CEE279Law3-Linux.jar
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]         :: me.prettyprint#hector-core;working@CEE279Law3-Linux:
not found
[ivy:resolve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

Can someone therefore advise if my ivy.xml conf value is appropriate in
order to fetch all of the depedencies for the SNAPSHOT which I grab above?

[0]
https://repository.apache.org/content/repositories/snapshots/org/apache/gora/gora-cassandra/0.3-SNAPSHOT/

Thank you so much to anyone able to give me a hand on this one. It os
greatly appreciated.
Looking forward to meeting with anyone heading to ApacheCon in Portland
next week... Oh and I'll certainly be up for buying beers for anyone who
can help me out ;)
Best
Lewis

-- 
*Lewis*

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