简体   繁体   中英

Maven launch configurations in Eclipse

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

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.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM