Eclipse 中的 Maven 启动配置

发布于 2024-08-22 14:22:59 字数 328 浏览 2 评论 0原文

从 Eclipse 运行 Maven 时,您可以选择默认执行这些启动配置.. 这是其图像:

alt text

现在我可以添加自己的启动配置并执行它们。像这样:

alt text

现在,我是否可以将自己的启动配置称为“,而不是每次都运行运行配置”全新安装跳过程序集测试”而不是默认运行配置 #1(Maven 程序集:程序集),或者我可以添加 #10 配置作为我创建的配置。谢谢

while running maven from eclipse you have option to execute these launch configurations by default .. here is the image of that :

alt text

Now I can add my own launch configurations and execute them. Like this :

alt text

Now instead of running run configurations every time, is it possible that I put my own launch configuration called "Clean install skip tests with assembly" instead of default run configuration #1(Maven assembly:assembly) or can I add #10 configuration to be my created configuration. Thank you

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

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

发布评论

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

评论(3

不忘初心 2024-08-29 14:23:00

现在,我可以不用每次都运行运行配置,而是可以将自己的启动配置(名为“干净安装,跳过程序集测试”)而不是默认运行配置 #1(Maven 程序集:程序集)或者我可以添加 #10配置是我创建的配置。

我不这么认为。但是,一旦您运行了Maven Build运行配置,它应该列在“运行方式...”绿色箭头下:

替代文本 http://img8.imageshack.us/img8/8510/screenshotrun.png

你可以添加它如果你愿意的话,可以作为最爱。

Now instead of running run configurations every time, is it possible that I put my own launch configuration called "Clean install skip tests with assembly" instead of default run configuration #1(Maven assembly:assembly) or can I add #10 configuration to be my created configuration.

I don't think so. But once you've run your Maven Build Run Configuration, it should be listed under the "Run As..." green arrow:

alt text http://img8.imageshack.us/img8/8510/screenshotrun.png

And you can add it as favorite if you want.

四叶草在未来唯美盛开 2024-08-29 14:23:00

当您选择运行方式>时2 Maven Build(带有快捷方式的那个。它可能并不总是2)您可以从更简单的对话框中选择要使用的运行配置 - 包括您的自定义。

When you select Run As > 2 Maven Build (the one with the shortcut. It may not always be 2) you can choose which run configuration to use from a simpler dialog - including your custom.

超可爱的懒熊 2024-08-29 14:23:00

要跳过测试,请勿在目标字段中添加 -D。使用配置文件输入框下方的“跳过测试”复选框,它应该可以工作:)

For skipping tests dont add -D in the goals field. Use the "Skip Tests" checkbox that is below the Profiles input box adn it should work :)

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