You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by aldo_gg <al...@yahoo.com> on 2009/09/23 16:33:26 UTC

Problem with dynamic revisions and maven 2 javax.jdo jdo2-api [2.3-eb, 3.0): not found


Problem with dynamic revisions javax.jdo jdo2-api [2.3-eb, 3.0): not found

Ivy can't resolve correctly depency on dynamic revisions when the dinamyc
revision
contains strings as [2.3-eb, 3.0)

The jar is correctly located in the maven repository but ivy can't find it.

I had problemas with revisions with only numbers also but i resolved them 
adding in ivy.xml specific numbers to the top however it doesn't work for
[2.3-eb, 3.0)

Help i am new in IVY.


error message
---------------
[ivy:retrieve] :: Ivy 2.0.0-beta1 - 20071206070608 ::
http://ant.apache.org/ivy/ ::
....
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]          ::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]          :: oracle#ojdbc14_g;10.2.0.4: not found
[ivy:retrieve]          :: org.eclipse.core#org.eclipse.core.runtime;3.2.0:
not found
[ivy:retrieve]          :: org.datanucleus#datanucleus-thirdparty;1.0.1: not
found
[ivy:retrieve]          ::
org.eclipse.equinox#org.eclipse.equinox.registry;3.2.0: not found
[ivy:retrieve]          ::
org.eclipse.equinox#org.eclipse.equinox.common;3.2.0: not found
[ivy:retrieve]          :: javax.jdo#jdo2-api;[2.3-eb, 3.0): not found
[ivy:retrieve]          :: javax.transaction#transaction-api;1.1: not found
[ivy:retrieve]          :: org.eclipse.osgi#org.eclipse.osgi;3.2.0: not
found
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::



ivy.xml
-----------------------------------
<ivy-module version="2.0">
	<info organisation="apache" module="hello-ivy"/>
	<dependencies>
		<dependency org="asm" name="asm"   rev="3.1"/>
	  	<dependency org="log4j" name="log4j"   rev="1.2.8"/>
 	    <dependency org="org.datanucleus" name="datanucleus-core"  
rev="1.1.5"/>
	
		<dependency org="org.datanucleus" name="datanucleus-enhancer"  
rev="1.1.4"/>
		<dependency org="javax.jdo" name="jdo2-api" rev="2.3" />

		<dependency org="org.datanucleus" name="datanucleus-core"  rev="1.1.5"/>
		<dependency org="org.datanucleus" name="datanucleus-rdbms" rev="1.1.5"/>
		<dependency org="org.datanucleus" name="datanucleus-jpa"   rev="1.1.5"/>
		<dependency org="net.sf.ehcache" name="ehcache" rev="1.6.2"/>
	
	    <dependency org="com.thoughtworks.xstream" name="xstream-distribution"
rev="1.3"/>

	</dependencies>
</ivy-module>

ivysettings.xml
------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?> 
<ivysettings>
<settings defaultResolver="chained"/>
<resolvers> 
    <chain name="chained">

      <ibiblio name="java.net"    root="http://download.java.net/maven/2"
m2compatible="true"/>
      <ibiblio name="datanucleus"
root="http://www.datanucleus.org/downloads/maven2" m2compatible="true"/>
	  <ibiblio name="sourceforge"
root="http://oss.sonatype.org/content/repositories/sourceforge-releases"
m2compatible="true" /> 
	  <ibiblio name="codehaus"   
root="http://oss.sonatype.org/content/groups/codehaus/" m2compatible="true"
/> 
	  <ibiblio name="repo2"    root="http://repo2.maven.org/maven2"
m2compatible="true" /> 
	  <ibiblio name="public"      m2compatible="true" /> 
	  <ibiblio name="ibiblio"     m2compatible="true" /> 
	  
    </chain>

</resolvers> 
</ivysettings>

build.xml
-------------------------------------------
    <target name="resolve" description="--> retrieve dependencies with ivy">        
	<ivy:settings file="ivysettings.xml" />
	<ivy:retrieve />    
     </target>
-------------------------------------------
ed and dynamic revisions
-- 
View this message in context: http://www.nabble.com/Problem-with-dynamic-revisions-and-maven-2-javax.jdo-jdo2-api--2.3-eb%2C-3.0%29%3A-not-found-tp25531175p25531175.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: Problem with dynamic revisions and maven 2 javax.jdo jdo2-api [2.3-eb, 3.0): not found

Posted by aldo_gg <al...@yahoo.com>.
Updating the jar file to RC2 version did resolve the problem. Thanks.
i was using some example i found over the internet , so it is my fault not
checking the lates version.

  <property name="ivy.install.version" value="2.0.0-beta1" /> 

 <target name="download-ivy" unless="skip.download">
  <mkdir dir="${ivy.jar.dir}" /> 
 <!--  download Ivy from web site so that it can be used even without any
special installation 
  --> 
  <echo message="installing ivy..." /> 
  <get
src="http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.install.version}/ivy-${ivy.install.version}.jar"
dest="${ivy.jar.file}" usetimestamp="true" /> 
  </target>

-- 
View this message in context: http://www.nabble.com/Problem-with-dynamic-revisions-and-maven-2-javax.jdo-jdo2-api--2.3-eb%2C-3.0%29%3A-not-found-tp25531175p25604972.html
Sent from the ivy-user mailing list archive at Nabble.com.


Re: Problem with dynamic revisions and maven 2 javax.jdo jdo2-api [2.3-eb, 3.0): not found

Posted by Maarten Coene <ma...@yahoo.com>.
Could you please try a more recent version of Ivy (2.1.0-RC2 for instance) ?
If that doesn't work, please create a JIRA issue and post your settings, ivy.xml and full ant output log there.

Maarten




----- Original Message ----
From: aldo_gg <al...@yahoo.com>
To: ivy-user@ant.apache.org
Sent: Wednesday, September 23, 2009 4:33:26 PM
Subject: Problem with dynamic revisions and maven 2 javax.jdo jdo2-api [2.3-eb, 3.0): not found



Problem with dynamic revisions javax.jdo jdo2-api [2.3-eb, 3.0): not found

Ivy can't resolve correctly depency on dynamic revisions when the dinamyc
revision
contains strings as [2.3-eb, 3.0)

The jar is correctly located in the maven repository but ivy can't find it.

I had problemas with revisions with only numbers also but i resolved them 
adding in ivy.xml specific numbers to the top however it doesn't work for
[2.3-eb, 3.0)

Help i am new in IVY.


error message
---------------
[ivy:retrieve] :: Ivy 2.0.0-beta1 - 20071206070608 ::
http://ant.apache.org/ivy/ ::
....
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]          ::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]          :: oracle#ojdbc14_g;10.2.0.4: not found
[ivy:retrieve]          :: org.eclipse.core#org.eclipse.core.runtime;3.2.0:
not found
[ivy:retrieve]          :: org.datanucleus#datanucleus-thirdparty;1.0.1: not
found
[ivy:retrieve]          ::
org.eclipse.equinox#org.eclipse.equinox.registry;3.2.0: not found
[ivy:retrieve]          ::
org.eclipse.equinox#org.eclipse.equinox.common;3.2.0: not found
[ivy:retrieve]          :: javax.jdo#jdo2-api;[2.3-eb, 3.0): not found
[ivy:retrieve]          :: javax.transaction#transaction-api;1.1: not found
[ivy:retrieve]          :: org.eclipse.osgi#org.eclipse.osgi;3.2.0: not
found
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::



ivy.xml
-----------------------------------
<ivy-module version="2.0">
    <info organisation="apache" module="hello-ivy"/>
    <dependencies>
        <dependency org="asm" name="asm"   rev="3.1"/>
          <dependency org="log4j" name="log4j"   rev="1.2.8"/>
        <dependency org="org.datanucleus" name="datanucleus-core"  
rev="1.1.5"/>
    
        <dependency org="org.datanucleus" name="datanucleus-enhancer"  
rev="1.1.4"/>
        <dependency org="javax.jdo" name="jdo2-api" rev="2.3" />

        <dependency org="org.datanucleus" name="datanucleus-core"  rev="1.1.5"/>
        <dependency org="org.datanucleus" name="datanucleus-rdbms" rev="1.1.5"/>
        <dependency org="org.datanucleus" name="datanucleus-jpa"   rev="1.1.5"/>
        <dependency org="net.sf.ehcache" name="ehcache" rev="1.6.2"/>
    
        <dependency org="com.thoughtworks.xstream" name="xstream-distribution"
rev="1.3"/>

    </dependencies>
</ivy-module>

ivysettings.xml
------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?> 
<ivysettings>
<settings defaultResolver="chained"/>
<resolvers> 
    <chain name="chained">

      <ibiblio name="java.net"    root="http://download.java.net/maven/2"
m2compatible="true"/>
      <ibiblio name="datanucleus"
root="http://www.datanucleus.org/downloads/maven2" m2compatible="true"/>
      <ibiblio name="sourceforge"
root="http://oss.sonatype.org/content/repositories/sourceforge-releases"
m2compatible="true" /> 
      <ibiblio name="codehaus"  
root="http://oss.sonatype.org/content/groups/codehaus/" m2compatible="true"
/> 
      <ibiblio name="repo2"    root="http://repo2.maven.org/maven2"
m2compatible="true" /> 
      <ibiblio name="public"      m2compatible="true" /> 
      <ibiblio name="ibiblio"     m2compatible="true" /> 
      
    </chain>

</resolvers> 
</ivysettings>

build.xml
-------------------------------------------
    <target name="resolve" description="--> retrieve dependencies with ivy">        
    <ivy:settings file="ivysettings.xml" />
    <ivy:retrieve />    
     </target>
-------------------------------------------
ed and dynamic revisions
-- 
View this message in context: http://www.nabble.com/Problem-with-dynamic-revisions-and-maven-2-javax.jdo-jdo2-api--2.3-eb%2C-3.0%29%3A-not-found-tp25531175p25531175.html
Sent from the ivy-user mailing list archive at Nabble.com.