Eclipse 中的 Maven 启动配置
从 Eclipse 运行 Maven 时,您可以选择默认执行这些启动配置.. 这是其图像:
现在我可以添加自己的启动配置并执行它们。像这样:
现在,我是否可以将自己的启动配置称为“,而不是每次都运行运行配置”全新安装跳过程序集测试”而不是默认运行配置 #1(Maven 程序集:程序集),或者我可以添加 #10 配置作为我创建的配置。谢谢
while running maven from eclipse you have option to execute these launch configurations by default .. here is the image of that :
Now I can add my own launch configurations and execute them. Like this :
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我不这么认为。但是,一旦您运行了Maven Build运行配置,它应该列在“运行方式...”绿色箭头下:
替代文本 http://img8.imageshack.us/img8/8510/screenshotrun.png
你可以添加它如果你愿意的话,可以作为最爱。
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.
当您选择
运行方式>时2 Maven Build
(带有快捷方式的那个。它可能并不总是2
)您可以从更简单的对话框中选择要使用的运行配置 - 包括您的自定义。When you select
Run As > 2 Maven Build
(the one with the shortcut. It may not always be2
) you can choose which run configuration to use from a simpler dialog - including your custom.要跳过测试,请勿在目标字段中添加 -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 :)