File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 381

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: 381
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)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What dependencies do I need for Jersey Example?