【发布时间】:2017-02-20 07:12:16
【问题描述】:
下面是我的代码
InvocationRequest request = new DefaultInvocationRequest();
request.setPomFile(new File(pom.xml));
request.setGoals(Arrays.asList("clean", "install"));
Invoker invoker = new DefaultInvoker();
try {
invoker.execute(request);
} catch (MavenInvocationException e) {
e.printStackTrace();
}
当我调用 pom.xml 时,我想跳过我无法找到的测试。
如何在 setGoals 方法中设置跳过测试。
【问题讨论】: