You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by Scott Wilson <sc...@gmail.com> on 2009/11/02 17:53:21 UTC

Branch merged... but a weird ivy problem

Hi everyone,

I've merged the standalone branch into the trunk of the SVN repository.

When testing in Eclipse (just using the ant "run" configuration) all  
works perfectly fine.

However when I've tested it by doing "ant" in the terminal, I keep  
coming up with an Ivy bug:

[ivy:resolve] :::: WARNINGS
[ivy:resolve] 		module not found: ${groupId}#hibernate-core;3.3.1.GA
[ivy:resolve] 	==== main: tried
[ivy:resolve] 	  -- artifact ${groupId}#hibernate-core;3.3.1.GA! 
hibernate-core.jar:
[ivy:resolve] 	  /Users/scott/Documents/workspace2/test/trunk/ant/lib/ 
hibernate-core-3.3.1.GA.jar
[ivy:resolve] 	==== public: tried
[ivy:resolve] 	  http://repo1.maven.org/maven2/${groupId}/hibernate- 
core/3.3.1.GA/hibernate-core-3.3.1.GA.pom
[ivy:resolve] 	  -- artifact ${groupId}#hibernate-core;3.3.1.GA! 
hibernate-core.jar:
[ivy:resolve] 	  http://repo1.maven.org/maven2/${groupId}/hibernate- 
core/3.3.1.GA/hibernate-core-3.3.1.GA.jar
[ivy:resolve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] 		::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] 		:: ${groupId}#hibernate-core;3.3.1.GA: not found
[ivy:resolve] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

Taking a look at http://repo1.maven.org/maven2/org/hibernate/hibernate-c3p0/3.3.1.GA/hibernate-c3p0-3.3.1.GA.pom 
  reveals:

         <dependency>
             <groupId>${groupId}</groupId>
             <artifactId>hibernate-core</artifactId>
             <version>${version}</version>
         </dependency>
Presumably the variable isn't being picked up for ${groupId} when ant  
is run on the command line, resulting in the dependency not being  
found. But somehow this works OK in Eclipse.
Trying to exclude this dependency causes problems elsewhere as  
something then goes wrong with the hibernate dependencies (jta,  
javassist) not being loaded even though they are in the configuration.
Is this just a problem with my Ivy configuration, has something gone  
wrong with the repository, or is it something else?
(It all worked just fine last week!)
S