Rb87
Rb87

Reputation: 180

Maven jersey artifact create a project with no target runtime options

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:

maven wizard screenshot

the problem is - after the project is build, tomcat dosn't recognize the maven project as a resource:

new server wizard screenshot

I'v tried to add the target runtime in the project properties but it won't show up:

project properties window

How can i correct this? (preferably using a maven)

Upvotes: 2

Views: 200

Answers (1)

Rb87
Rb87

Reputation: 180

Found the solution: I was missing m2e-wtp - JAX-RX configurator for WTP plugin in my eclipse:

enter image description here

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

Related Questions