diff --git a/maven-plugins/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java b/maven-plugins/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java index 8c7ecfe426..968a8e3e17 100644 --- a/maven-plugins/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java +++ b/maven-plugins/maven-antrun-plugin/src/main/java/org/apache/maven/plugin/antrun/AbstractAntMojo.java @@ -46,6 +46,7 @@ public abstract class AbstractAntMojo antLogger.setOutputPrintStream( System.out ); antLogger.setErrorPrintStream( System.err ); antTasks.getProject().addBuildListener( antLogger ); + antTasks.getProject().setBaseDir( mavenProject.getBasedir() ); getLog().info( "Executing tasks" );