Maven 如何确定给定阶段内运行的顺序目标?

发布于 2024-08-05 09:29:33 字数 204 浏览 3 评论 0原文

我知道 Maven 有许多阶段,这些阶段按照为给定 生命周期定义的顺序运行a>,并且您可以将目标附加到一个阶段。

当您将多个目标附加到一个阶段时会发生什么,Maven 如何确定运行目标的顺序?

I understand that Maven has a number of phases that run in the order they are defined for a given lifecycle, and that you can attach goals to a phase.

What happens when you attach a number of goals to a phase, how does Maven determine what order to run the goals in?

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

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

发布评论

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

评论(1

固执像三岁 2024-08-12 09:29:33

来自“构建生命周期简介”:

配置的目标将添加到已绑定到所选包的生命周期的目标中。如果多个目标绑定到特定阶段,则使用的顺序是首先执行打包中的目标,然后执行 POM 中配置的目标。请注意,您可以使用 元素来更好地控制特定目标的顺序。

From "Introduction to the Build Lifecycle":

The goals that are configured will be added to the goals already bound to the lifecycle from the packaging selected. If more than one goal is bound to a particular phase, the order used is that those from the packaging are executed first, followed by those configured in the POM. Note that you can use the <executions> element to gain more control over the order of particular goals.

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