jersey archetype sun or glassfish

旧街凉风 提交于 2019-12-13 03:15:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!