javaspringmavenweb-servicesjersey-1.0

What could possibly be wrong in creating maven project if you have error in pom.xml file


missing artifact org.glassfish.extras glassfish-embedded-web:jar3.1.1 and there's an error in the pom.xml file of my maven project using jersey.

please explain what is wrong? the error mark is in the dependency tag below

<dependency>
  <groupId>org.glassfish.extras</groupId>
  <artifactsId>glassfish-embedded-web</artifactsId>
  <version>${glassfish.version}</version>
<dependency>

And also there an error in annotations @Path, @GET, and @Produces of myResource.java class


Solution

  • Try this,

    Right click -> Maven -> Update Project -> check "Force Update of Snapshots/Releases" and then click ok.