开发者

Why 2 versions of Jetty Maven plugins?

I set up a new webapp Maven project and wanted to test it with Jetty's Maven plugin. So I issued the console command: mvn jetty:run

After defining the pluginGroup in Maven's settings file I ra开发者_开发知识库n once again the command. Unfortunately, it failed because I was using one of the below mentioned versions of the plugin:

  • maven-jetty-plugin
  • jetty-maven-plugin

Why are there 2 Maven based plugins for achieving the same thing - running Jetty? Why do they have to bring so much confusion?

Or be so kind as to explain me the differences between them.


With Jetty7 this plugin was renamed to jetty-maven-plugin to better conform to maven2 convention. The Jetty 7 version of the plugin has also undergone substantial changes in configuration. For more information, see the Jetty 7 Maven Plugin feature guide.

See the docs here


The maven-jetty-plugin is for Jetty 6 and jetty-maven-plugin is for Jetty7 and later. The name change was made to "adhere with maven plugin naming conventions" and is part of the big mess created by the move of Jetty to the Eclipse Foundation. Actually, Jetty 7 is considered as a transition version (this must be the politically correct expression for big mess).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜