instead of specifyind -D on the command line you can define it in your
settings.xml

a usefull aproach for sharing project information, including properties, is
using inheritance

make your project inherit from a common pom and define there the properties
you want to share

but if you think ant way you'll have trouble, maven is a different building
concept, that's my 0.02c


On 3/2/06, Bob Arnott <[EMAIL PROTECTED]> wrote:
>
> Henry S. Isidro wrote:
>
> [snipped...]
>
> > Have you tried passing it via command line? For example, mvn package
> > -Dlocal.repo.url=your_local_repo
>
> Why would I want to do this...? That would mean every time I run maven,
> I've
> got to specify loads of options, which defeats the point really. What I
> want
> is something like a properties file that each developer can change to suit
> themselves and that will replace values in the pom.xml when it comes to
> doing
> anything.
>
> I'm new to mven and want to use it on a couple of new prokject instead of
> ant,
> but unless I can do something similar to loading a properties file with
> ant,
> I'll have to go back to using ant. Using ant, I'd do -
>
> <property file="build.properties" />.
>
> What do I do with maven...?
>
> Cheers,
>
> --
> Bob Arnott
>
> Senior Software Developer
> Autonomy Systems Ltd.
> Cambridge Business Park
> Cowley Road
> Cambridge
> CB4 0WZ
>
> T: +44 (0) 1223 448 000
> F: +44 (0) 1223 448 001
> http://www.aungate.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Miguel Griffa
Skype: miguel.griffa
Y!: m_griffa
MSN: [EMAIL PROTECTED]
Cell: 15-62519355

Reply via email to