问题
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:
- adding a remote catalog
- adding a new Maven Archetype locally
- proxy setting are working (I can access a web page using my internal browser)
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?
回答1:
com.sun.jersey.archetypes
<- Jersey 1.x (see docs)org.glassfish.jersey.archetypes
<- Jersey 2.x (see docs)
For new projects, use 2.x
来源:https://stackoverflow.com/questions/47176372/jersey-archetype-sun-or-glassfish