m2eclipse filtering test resources

我与影子孤独终老i 提交于 2019-12-24 02:22:41

问题


I am using m2eclipse and I want to right click and run tests from inside eclipse while the test resources get filtered from Maven. How can I do this? From eclipse when I right click on a test I do not get any m2eclipse options

Julia.

Similar to:

Debugging maven junit tests with filtered resources?


回答1:


  1. Setup filtering in your pom.xml (and you'll get filtering under Eclipse with m2eclipse, m2eclipse runs process-resources after a change of any resource).
  2. Run your test as any other test (right-click then Run As > JUnit Test).
  3. After a first run, you can run an individual test method (right-click on the method in the JUnit view).



回答2:


Right click on the project -> Run As -> Maven test



来源:https://stackoverflow.com/questions/3734977/m2eclipse-filtering-test-resources

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!