maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Lopez <>
Subject Re: maven-antrun-plugin and ant basedir question
Date Fri, 10 May 2013 11:19:58 GMT

The build.xml file is part of the Dojo distribution.  I would like to 
avoid modifying their files as Dojo is being updated all the time.  So 
ideally I would like to be able to somehow pass the override value from 
Maven since I own that pom.xml file.  So that is my question.  How do I do 
that?  If I was running Ant directly I would just pass the value in the 
command line.  I have not been able to figure out how to do that in Maven.

Luis F. López

From:   Wayne Fay <>
To:     Maven Users List <>, 
Date:   05/09/2013 04:24 PM
Subject:        Re: maven-antrun-plugin and ant basedir question

> I am trying to do a custom build of Dojo using Maven and the Dojo 
> build.xml file.  I have managed to get most of the pieces that I need 
> the pom.xml file to where the ant clean task works and the default task
> starts.  Unfortunately the default task depends on the value of basedir
> which is set to "." at the top of the build.xml file (<project 
> default="cldr" basedir=".">).  Since Maven is not running from the
> directory where the build.xml file is at, all the paths are wrong.  In 

Can you not simply edit the basedir="." directly in the build.xml file
itself to reflect the correct directory? Or set/override that value
using a parameter passed in from Maven, or passed via a system
setting, or read from a properties file... or something?


To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message