为什么有 2 个版本的 Jetty Maven 插件?

发布于 2024-08-26 17:48:59 字数 528 浏览 4 评论 0原文

我建立了一个新的 webapp Maven 项目,并想使用 Jetty 的 Maven 插件对其进行测试。 所以我发出了控制台命令: mvn jetty:run

在 Maven 的设置文件中定义 pluginGroup 后,我再次运行了该命令。 不幸的是,它失败了,因为我使用的是下面提到的插件版本之一:

为什么有2个基于Maven的用于实现相同目标的插件 - 运行 Jetty?为什么他们要带来这么多混乱?

或者请好心地向我解释它们之间的区别。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

给妤﹃绝世温柔 2024-09-02 17:48:59

在 Jetty7 中,这个插件被重命名为 jetty-maven-plugin 以更好地符合 maven2 约定。 Jetty 7 版本的插件在配置上也发生了实质性的变化。有关更多信息,请参阅 Jetty 7 Maven 插件功能指南。

请参阅此处的文档

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

旧时浪漫 2024-09-02 17:48:59

maven-jetty-plugin 适用于 Jetty 6,jetty-maven-plugin 适用于 Jetty7 及更高版本。名称更改是为了“遵守 Maven 插件命名约定”,并且是 Jetty 迁移到 Eclipse 基金会造成的混乱的一部分。实际上,Jetty 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文