提交 e6ad00c5 编写于 作者: K kohsuke

run maven with the batch mode.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3734 71c3de6d-444a-0410-be80-ed276b4c234a
上级 97883b83
......@@ -265,7 +265,7 @@ public class MavenBuild extends AbstractBuild<MavenModule,MavenBuild> {
ProcessCache.MavenProcess process = mavenProcessCache.get(launcher.getChannel(), listener, this);
ArgumentListBuilder margs = new ArgumentListBuilder();
margs.add("-N");
margs.add("-N").add("-B");
margs.add("-f",getParent().getModuleRoot().child("pom.xml").getRemote());
margs.addTokenized(getProject().getGoals());
......
......@@ -140,6 +140,7 @@ public class Maven extends Builder {
args.add(exec.getPath());
}
args.addKeyValuePairs("-D",build.getBuildVariables());
args.add("-B");
args.addTokenized(normalizedTarget);
Map<String,String> env = build.getEnvVars();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册