• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What dependencies do I need for Jersey Example?

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
searching for jersey-bundle in the maven repository did the trick. Hmmm.... It would have been nice if Eclipse could have figured that out...
 
Ranch Hand
Posts: 440
Hibernate Eclipse IDE Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic