You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Guillaume Lederrey <gu...@gmail.com> on 2008/01/22 09:28:39 UTC
including properties in the pom.xml from an external file
Hello !
Is there a way to include properties in a pom.xml from an external
file ? There was that possibility in Maveen 1 with a
project.properties, but I cant find anything in the documentation of
Maven 2 ...
Did this disappear ? For what reason ?
Thanks for your help !
--
Jabber : gehel@amessage.ch
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.com/
* http://rwandatech.wordpress.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: including properties in the pom.xml from an external file
Posted by Lee Meador <le...@leemeador.com>.
Rex,
I find it just as easy to put the properties in my pom.xml. I put them at
the bottom so they are easy to find. Here are the properties I used in a
recent program (and now you know how out of date I am with that program)
<properties>
<spring.version>1.2.6</spring.version>
<struts.version>1.3.5</struts.version>
<quartz.version>1.5.2</quartz.version>
<axis.version>1.3</axis.version>
</properties>
Here is how I used one of them:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
<scope>compile</scope>
</dependency>
Thanks.
-- Lee
On Jan 22, 2008 10:45 AM, Rex Huang <re...@gmail.com> wrote:
> Take out the properties from pom file is sensible, it make it easy to
> configuration.
> I don't know whether profile can do this.
>
> Rex
>
> On Jan 22, 2008 5:32 PM, Wayne Fay <wa...@gmail.com> wrote:
>
> > Yes, it is no longer available.
> >
> > What is your use case? Most things can be handled with filters and/or
> > <properties> in your pom or profile.
> >
> > Wayne
> >
> > On 1/22/08, Guillaume Lederrey <gu...@gmail.com> wrote:
> > > Hello !
> > >
> > > Is there a way to include properties in a pom.xml from an external
> > > file ? There was that possibility in Maveen 1 with a
> > > project.properties, but I cant find anything in the documentation of
> > > Maven 2 ...
> > >
> > > Did this disappear ? For what reason ?
> > >
> > > Thanks for your help !
> > >
> > > --
> > > Jabber : gehel@amessage.ch
> > > Skype : Guillaume.Lederrey
> > > Projects :
> > > * http://rwanda.wordpress.com/
> > > * http://rwandatech.wordpress.com/
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> >
>
--
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com
Re: including properties in the pom.xml from an external file
Posted by Rex Huang <re...@gmail.com>.
Take out the properties from pom file is sensible, it make it easy to
configuration.
I don't know whether profile can do this.
Rex
On Jan 22, 2008 5:32 PM, Wayne Fay <wa...@gmail.com> wrote:
> Yes, it is no longer available.
>
> What is your use case? Most things can be handled with filters and/or
> <properties> in your pom or profile.
>
> Wayne
>
> On 1/22/08, Guillaume Lederrey <gu...@gmail.com> wrote:
> > Hello !
> >
> > Is there a way to include properties in a pom.xml from an external
> > file ? There was that possibility in Maveen 1 with a
> > project.properties, but I cant find anything in the documentation of
> > Maven 2 ...
> >
> > Did this disappear ? For what reason ?
> >
> > Thanks for your help !
> >
> > --
> > Jabber : gehel@amessage.ch
> > Skype : Guillaume.Lederrey
> > Projects :
> > * http://rwanda.wordpress.com/
> > * http://rwandatech.wordpress.com/
> >
> > ---------------------------------------------------------------------
> > 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
>
>
Re: including properties in the pom.xml from an external file
Posted by Wayne Fay <wa...@gmail.com>.
Yes, it is no longer available.
What is your use case? Most things can be handled with filters and/or
<properties> in your pom or profile.
Wayne
On 1/22/08, Guillaume Lederrey <gu...@gmail.com> wrote:
> Hello !
>
> Is there a way to include properties in a pom.xml from an external
> file ? There was that possibility in Maveen 1 with a
> project.properties, but I cant find anything in the documentation of
> Maven 2 ...
>
> Did this disappear ? For what reason ?
>
> Thanks for your help !
>
> --
> Jabber : gehel@amessage.ch
> Skype : Guillaume.Lederrey
> Projects :
> * http://rwanda.wordpress.com/
> * http://rwandatech.wordpress.com/
>
> ---------------------------------------------------------------------
> 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