Reputation: 180
I'm trying to build a restful api using a Maven project and tomcat in eclipse. in the maven project wizard i am using 'org.glassfish.jersey.webapp.archetypes' 'jersey-quickstart-webapp' version 2.26:
the problem is - after the project is build, tomcat dosn't recognize the maven project as a resource:
I'v tried to add the target runtime in the project properties but it won't show up:
How can i correct this? (preferably using a maven)
Upvotes: 2
Views: 200
Reputation: 180
Found the solution: I was missing m2e-wtp - JAX-RX configurator for WTP plugin in my eclipse:
To fix this issue:
1) Go to help->install new software
2) Select eclipse repository (I'm using Oxygen this will be different for another eclipse version)
3) Under: Web, XML, Java EE and OSGi Enterprise Development
select: m2e-wtp - JAX-RX configurator for WTP
4) Proceed Installation and restart eclipse
Note that an existing maven project will not automatically be fixed but a new project will be set correctly
Upvotes: 1