Skip navigation
5,448 Views 11 Replies Last post: Dec 11, 2009 11:02 AM by Jonathan Tai RSS
Jonathan Tai Medspherian 341 posts since
Jul 24, 2008
Currently Being Moderated

Dec 3, 2009 11:37 AM

OpenVista REST: Unable to resolve restlet dependency?

I wasn't able to build the project.  After ivy downloaded a bunch of stuff, it quit with:

 

[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve]         module not found: ${groupId}#org.restlet;2.0-M5
[ivy:retrieve]     ==== libraries: tried
[ivy:retrieve]       -- artifact ${groupId}#org.restlet;2.0-M5!org.restlet.jar:
[ivy:retrieve]       /home/jon/Archives/bzr/ovrest/repository/org.restlet-2.0-M5.jar
[ivy:retrieve]     ==== ibiblio: tried
[ivy:retrieve]       http://repo1.maven.org/maven2/${groupId}/org.restlet/2.0-M5/org.restlet-2.0-M5.pom
[ivy:retrieve]       -- artifact ${groupId}#org.restlet;2.0-M5!org.restlet.jar:
[ivy:retrieve]       http://repo1.maven.org/maven2/${groupId}/org.restlet/2.0-M5/org.restlet-2.0-M5.jar
[ivy:retrieve]     ==== java-net-maven1: tried
[ivy:retrieve]       -- artifact ${groupId}#org.restlet;2.0-M5!org.restlet.jar:
[ivy:retrieve]       http://download.java.net/maven/1/${java.net.maven.pattern}
[ivy:retrieve]     ==== java-net-maven2: tried
[ivy:retrieve]       http://download.java.net/maven/2/${groupId}/org.restlet/2.0-M5/org.restlet-2.0-M5.pom
[ivy:retrieve]       -- artifact ${groupId}#org.restlet;2.0-M5!org.restlet.jar:
[ivy:retrieve]       http://download.java.net/maven/2/${groupId}/org.restlet/2.0-M5/org.restlet-2.0-M5.jar
[ivy:retrieve]     ==== maven.restlet.org: tried
[ivy:retrieve]       http://maven.restlet.org/${groupId}/org.restlet/2.0-M5/org.restlet-2.0-M5.pom
[ivy:retrieve]       -- artifact ${groupId}#org.restlet;2.0-M5!org.restlet.jar:
[ivy:retrieve]       http://maven.restlet.org/${groupId}/org.restlet/2.0-M5/org.restlet-2.0-M5.jar
[ivy:retrieve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]         ::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]         :: ${groupId}#org.restlet;2.0-M5: not found
[ivy:retrieve]         ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] 
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
Andy Pardue Medspherian 159 posts since
Sep 11, 2008
Currently Being Moderated
1. Dec 3, 2009 11:48 AM in response to: Jonathan Tai
Re: OpenVista REST: Unable to resolve restlet dependency?

Odd, I tried it fresh and it worked.  I'll look into it, but in the meantime try:

 

ant clean-cache

... and then try to build again...

ant

 

Let me know if that works.  I'll assume that it won't though, but its simple to try.

Andy Pardue Medspherian 159 posts since
Sep 11, 2008
Currently Being Moderated
3. Dec 3, 2009 12:46 PM in response to: Jonathan Tai
Re: OpenVista REST: Unable to resolve restlet dependency?

Maybe you're running with the JRE and not the JDK?  You'll need the JDK installed.  I'll update the instructions since they are vague.

Andy Pardue Medspherian 159 posts since
Sep 11, 2008
Currently Being Moderated
5. Dec 4, 2009 6:58 AM in response to: Jonathan Tai
Re: OpenVista REST: Unable to resolve restlet dependency?

Not sure what's going on... First, you want to make sure that your $JAVA_HOME is correctly pointing to the JDK you installed.  If so, try this when you get a chance:

 

From your project directory...

 

  • ant clean
  • rm -r contrib/lib
  • ant clean-cache
  • [cross-fingers]
  • ant
JohnLeo Zimmer Contributor 14 posts since
Sep 12, 2008
Currently Being Moderated
6. Dec 10, 2009 7:37 PM in response to: Andy Pardue
Re: OpenVista REST: Unable to resolve restlet dependency?

I an on the same quest... with essentially the same result:

 

$ant clean runs as expected, but

$ant clean-cache is not recognized as an ant option and gives me the same error as Jon.

 

I have java-6-openjdk installed (and added sun-java6-jdk this evening.

But I don't have $JAVA_HOME defined and when I set it to, say, /usr/lib/jvm/java-6-openjdk/ nothing happens.

 

org.restlet-2.0-M5 (whatever it is) remains AWOL

Andy Pardue Medspherian 159 posts since
Sep 11, 2008
Currently Being Moderated
7. Dec 11, 2009 8:34 AM in response to: JohnLeo Zimmer
Re: OpenVista REST: Unable to resolve restlet dependency?

I can reproduce this now... I'll come up with a fix soon.

 

Thanks for the help and patience.

 

Andy

Andy Pardue Medspherian 159 posts since
Sep 11, 2008
Currently Being Moderated
8. Dec 11, 2009 9:47 AM in response to: JohnLeo Zimmer
Re: OpenVista REST: Unable to resolve restlet dependency?

JohnLeo and Jon,

 

First, to get clean-cache to work, try the following:  Create a directory structure (if it doesn't exist) under your home account named .ant/lib.  If you are on linux and your home directory is /home/user then it would be /home/user/.ant/lib.  Note, .ant is a hidden directory weith a preceding '.'.  After creating that, from the directory you are trying to build ovrest from, copy ivy/ivy.jar to <home>/.ant/lib.  After the ivy.jar is in .ant/lib, you should be able to execute ant clean-cache successfully.  Let me know if this works for you and I'll update hte doc.

 

Next, to circumvent problems getting two restlet jars, I've made them static to the project instead.  So, do a bzr merge from lp:ovrest (or grab a new branch, whichever you prefer) and try again.

 

Let me know how it goes.

 

Andy

JohnLeo Zimmer Contributor 14 posts since
Sep 12, 2008
Currently Being Moderated
9. Dec 11, 2009 10:24 AM in response to: Andy Pardue
Re: OpenVista REST: Unable to resolve restlet dependency?

Bingo!

 

Your cooking, Andy.

 

Following your instructions, apt clean-cache now works {BTW what does it do?}, bsr merge ran, and ant now runs to successful completion.

 

Thankyou,

GpZ

 

Now to figure out what I have done... :-)

Andy Pardue Medspherian 159 posts since
Sep 11, 2008
Currently Being Moderated
10. Dec 11, 2009 10:39 AM in response to: JohnLeo Zimmer
Re: OpenVista REST: Unable to resolve restlet dependency?

the clean-cache target is an ivy-specific target that completely cleans (removes) anything that ivy has downloaded.  It is seldom that you'd need to clean the ivy cache -- but in situations where things aren't downloading correctly, then cleaning the cache is worth a try.

 

As ivy downloads dependencies (jars) for you, it stores them all in one place within your home directory.  This way, the next time you request the dependency, a file download is not required.

More Like This

  • Retrieving data ...

Bookmarked By (0)