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
This commit is contained in:
kohsuke committed 2007-03-29 06:57:03 +00:00
1 parent de07764844
commit 27207bd32c
1 file changed
+2 -1
@@ -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());
}
/**