maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juan Ignacio Garzón" <juanignaciogar...@gmail.com>
Subject Re: Maven2 properties file as in Ant
Date Fri, 07 Sep 2007 21:23:51 GMT
Which plugin could I use?

The reason for prefering to store the properties outside personal's
settings.xml is that I want it to be in the source code repository.

And i dont want to have them inside pom.xml because its cleaner (i
think) having them outside.

Maybe my mind is not still ready for maven2  :P


2007/9/7, Wayne Fay <waynefay@gmail.com>:
> Not without using a plugin. Why not use the settings.xml that stored
> in your personal user directory (~/.m2/settings.xml) for these kinds
> of things -- that's about as secure as it gets.
>
> Wayne
>
> On 9/7/07, Juan Ignacio Garzón <juanignaciogarzon@gmail.com> wrote:
> > Hi!
> >
> > I have read the Settings Reverence [1], and in the section
> > "Properties" there is a paragraph saying:
> >
> > "x : Set within a <properties /> element or an **external files**, the
> > value may be used as ${someVar} ."
> >
> > Is there a way to define properties in an external file, in the same
> > way as Ant? I would like to have all my passwords (for example, for
> > database connections) stored in only one place and isolated from the
> > rest of my properties. I prefer having them outside settings.xml and
> > pom.xml.
> >
> > Thanks in advance!!
> >
> > [1] http://maven.apache.org/settings.html#Profiles
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message