问题
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:
- Setup filtering in your
pom.xml
(and you'll get filtering under Eclipse with m2eclipse, m2eclipse runsprocess-resources
after a change of any resource). - Run your test as any other test (right-click then Run As > JUnit Test).
- 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