~/.m2/settings.xml, ${basedir}/pom.xml or ${basedir}/profiles.xml, according to the documentation.



On 9 Dec 2005, at 21:49, Frank Russo wrote:

Where are profiles defined? I don't remember seeing that on the website.

Thanks...

Frank Russo
Senior Developer
FX Alliance, LLC

-----Original Message-----
From: Olivier Lamy [mailto:[EMAIL PROTECTED]
Sent: Friday, December 09, 2005 3:47 PM
To: 'Maven Users List'
Subject: RE : What is the proper way to handle properties
files based on the environment you are building for?


Use differents profiles (with differents resources
definitions). The default can be the dev one. Then use mvn -P
prod package to build the production war.

- Olivier

-----Message d'origine-----
De : Frank Russo [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 9 décembre 2005 20:42
À : [email protected]
Objet : What is the proper way to handle properties files
based on the environment you are building for?


I'm building a webapp. Our webapp depends on some environment
specific variables that are defined in a group of properties
files. Depending on the environment I want to build for,
i.e., dev, qa, prod, I build the war as follows: mvn
-Denv=ENV_VAR clean package.

Our package structure for the properties files is:

src
|
----main
|
----resources
|
----dev
|
----*.properties
|
----qa
|
----*.properties
|
----prod
|
----*.properties

Depending on the value of -Denv=ENV_VAR, (e.g. -Denv=dev),
the proper grouping of properties files get put into my
web-inf/classes directory.

Is this the proper way of doing this, or is there another
way? The reason I'm asking is that, say someone does a build
forgetting to add this. Then the build will still work,
except that all files, including the folder structure, are
added to the war without warning. This probably won't be
caught until we deploy the app.

Thanks...
Frank Russo
Senior Developer
FX Alliance, LLC




This e-mail, any attachments and the information contained
therein ("this message") are confidential and intended solely
for the use of the addressee(s). If you have received this
message in error please send it back to the sender and delete
it. Unauthorized publication, use, dissemination or
disclosure of this message, either in whole or in part is
strictly prohibited.
--------------------------------------------------------------
------------------------------------------------
Ce message électronique et tous les fichiers joints ainsi que
les informations contenues dans ce message ( ci après "le
message" ), sont confidentiels et destinés exclusivement à
l'usage de la personne à laquelle ils sont adressés. Si vous
avez reçu ce message par erreur, merci de le renvoyer à son
émetteur et de le détruire. Toutes diffusion, publication,
totale ou partielle ou divulgation sous quelque forme que se
soit non expressément autorisées de ce message, sont interdites.
--------------------------------------------------------------
-----------------------------------------------


---------------------------------------------------------------------
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]


<x-tad-smaller>Met vriendelijke groeten,

Jan Dockx
</x-tad-smaller><x-tad-smaller>
PeopleWare NV - Head Office</x-tad-smaller>
<x-tad-smaller>
Cdt.Weynsstraat 85
B-2660 Hoboken
Tel: +32 3 448.33.38
Fax: +32 3 448.32.66 </x-tad-smaller>
<x-tad-bigger>
</x-tad-bigger>
<x-tad-smaller>
PeopleWare NV - Branch Office Geel</x-tad-smaller>
<x-tad-smaller>
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25</x-tad-smaller>
<x-tad-bigger>
</x-tad-bigger>
<x-tad-smaller>
http://www.peopleware.be/
</x-tad-smaller><x-tad-smaller>http://www.mobileware.be/</x-tad-smaller>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to