This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Services and the fly likes What dependencies do I need for Jersey Example? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "What dependencies do I need for Jersey Example?" Watch "What dependencies do I need for Jersey Example?" New topic
Author

What dependencies do I need for Jersey Example?

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 388

I'm trying to follow the tutorial for a REST server at
Oracle's Jersey Tutorial

Eclipse is complaining about "import javax.ws.rs.GET;"
What do I have to put in my maven pom.xml to make eclipse happy? According to eclipse, I'm using javac 1.7.

I tried letting Eclipse/maven search for an artifact to include but it could not find one.

Thanks
Siegfried
Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 388
searching for jersey-bundle in the maven repository did the trick. Hmmm.... It would have been nice if Eclipse could have figured that out...
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

You can use the eclipse maven GUI to search for the dependencies in the maven central ( am sure you must have figured that out by now ) but at the moment Eclipse is not capable of auto-detecting which jars are missing and then download them on its own.( although it would be really nice to have a sort of a plugin to do that ). If you do come accross any tool or utility that does something similar to this , do share here.


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What dependencies do I need for Jersey Example?