Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What dependencies do I need for Jersey Example?

 
Siegfried Heintze
Ranch Hand
Posts: 408
  • Mark post as helpful
  • send pies
  • 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: 408
  • Mark post as helpful
  • send pies
  • 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...
 
Saif Asif
Ranch Hand
Posts: 440
Eclipse IDE Hibernate Linux
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic