提交 27207bd3 编写于 作者: K kohsuke

needs to set POM file in full path since we can't rely on the current directory.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2778 71c3de6d-444a-0410-be80-ed276b4c234a
上级 de077648
......@@ -206,6 +206,7 @@ public class MavenBuild extends AbstractBuild<MavenModule,MavenBuild> {
ArgumentListBuilder margs = new ArgumentListBuilder();
margs.add("-N");
margs.add("-f",getParent().getModuleRoot().child("pom.xml").getRemote());
margs.addTokenized(getProject().getGoals());
boolean normalExit = false;
......@@ -227,7 +228,7 @@ public class MavenBuild extends AbstractBuild<MavenModule,MavenBuild> {
*/
public Channel newProcess(BuildListener listener, OutputStream out) throws IOException, InterruptedException {
return launcher.launchChannel(buildMavenCmdLine(listener).toCommandArray(),
out, getProject().getModuleRoot());
out, getProject().getParent().getModuleRoot());
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册