marhg
marhg

Reputation: 687

jersey archetype sun or glassfish

I´m new with Jersey and I have problems with the installation. Specially with the error:

Can't resolve Archetype org.glassfish.jersey.archetypes:jersey-heroku-webapp:2.26

I already looked for solutions:

Now, I noticed that when creating a new Maven project and selecting the archetype it appears:

com.sun.jersey.archetypes

Can I use that to run jersey? or Is only with

org.glassfish.jersey.archetypes

any suggestions?

Upvotes: 0

Views: 241

Answers (1)

Paul Samsotha
Paul Samsotha

Reputation: 208964

  • com.sun.jersey.archetypes <- Jersey 1.x (see docs)

  • org.glassfish.jersey.archetypes <- Jersey 2.x (see docs)

For new projects, use 2.x

Upvotes: 1

Related Questions