如何配置maven安装以跳过eclipse中的测试? [英] How to configure maven install to skip tests in eclipse?

查看:603
本文介绍了如何配置maven安装以跳过eclipse中的测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以在eclipse中配置运行为maven安装程序,以跳过单元测试,如果这样的事情是可行的,那么请告诉我如何做,谢谢提前。

i was wondering if it's possible to configure run as maven install in eclipse to skip unit tests, if such thing is doable, then please tell me how to do it, thanks in advance.

推荐答案


  1. 确保为您的项目配置Maven

  2. 右键单击项目

  3. 转到运行方式

  4. 选择运行配置

  5. 在左侧列中,点击'Maven Build'并选择'New'

  6. 中选择要构建的基本目录(项目)
  7. 编写'install'和点击跳过测试单选按钮

  8. 点击运行!

  1. Ensure Maven is configured for your project
  2. Right-click on your project
  3. Go to 'Run As'
  4. Select 'Run Configurations'
  5. In the left-hand column, right-click 'Maven Build' and select 'New'
  6. Select the base directory (the project) you want to build from
  7. Write 'install' and any other goals you want in the 'Goals' field
  8. Click the 'Skip Tests' radio button
  9. Click Run!

希望有所帮助。

这篇关于如何配置maven安装以跳过eclipse中的测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆