Why 2 versions of Jetty Maven plugins?
Asked Answered
E

2

8

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 ran once again the command. Unfortunately, it failed because I was using one of the below mentioned versions of the 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.

Equisetum answered 25/3, 2010 at 15:21 Comment(0)
M
14

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

Mercaptide answered 25/3, 2010 at 15:28 Comment(0)
J
7

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).

Jubilant answered 25/3, 2010 at 15:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.