You can set up profiles defining properties in a separate profile.xml
file.
Why do you not want them in the pom.xml itself? Things like db
connection properties are generally associated with a particular
deployment environment. Therefore I set up a profile corresponding to
each environment, and place its specific properties within it.
Steve C
On 15/12/2006, at 7:33 AM, Rahul Thakur wrote:
Moving this to user list...
I have the same question - How do I inject properties from an
external file into pom.xml?
I have use case where I need to inject some DB connection
properties into pom.xml and I don't want to define them in the pom
itself. I noticed some discussion about properties-maven-plugin on
mojo-dev lists but that plugin isn't a part of Mojo project yet.
TIA,
Rahul
From: "Wendy Smoak" <[EMAIL PROTECTED]>
Date: 25 November 2006 2:21:15 AM
To: "Maven Developers List" <[email protected]>
Subject: Re: how to refer to a file properties starting from the
pom.xml
Reply-To: "Maven Developers List" <[email protected]>
On 11/24/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
You can include <properties> inside pom.xml itself.
... and please ask questions on the user list instead. :)
You can find subscription info here: http://maven.apache.org/mail-
lists.html
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]