Flueras Bogdan
Flueras Bogdan

Reputation: 9497

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

Upvotes: 8

Views: 3003

Answers (2)

Pascal Thivent
Pascal Thivent

Reputation: 570335

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

Upvotes: 7

Paul Whelan
Paul Whelan

Reputation: 16809

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

Upvotes: 14

Related Questions