Re: Profiles in maven - help!

2007-08-16 Thread Federico Schroder
Have you enabled filtering for this?

Federico.

On Thu, 2007-08-16 at 16:10 -0500, Vaidya, Supriya A (US - Chicago)
wrote:
 HI:
  
 I have a profiles.xml in my project root folder, that has the following
 structure:
  
 settings
 profiles
 profile
 iddevelopment/id
 activation
 activeByDefaulttrue/activeByDefault
 /activation
 properties
 prop1value1/prop1
 prop2value2/prop2
  
 :
 :
 :
 :
  
 
 Now the project contains a EAR/WAR and a JAR. In my WAR file, I have a
 resources/spring directory, containing an xml with the following:
  
 key
 valueproperty1/value
 /key
 value${prop1}/value
  
 
 and so on.
  
 In my command prompt, when I run the mvn clean install -P development -
 everything runs fine, but the XML remains with the unprocessed property
 values {prop}.
  
 I tried running the mvn help:active-profiles,and when I do this - it sez
 that the following profiles are active: - development
 but then goes on to say that no profiles are active for the POJO, the
 WAR or the EAR... hwo do I active the profile for teh WAR??
  
 
 Supriya A Vaidya 
 Technology Integration 
 Deloitte Consulting LLP 
 Tel: +1 312 486 4835 
 Fax: +1 312 247 4835
 Mobile: + 1 414 736 8157 
 www.deloitte.com http://www.deloitte.com/ 
 
 
 This message (including any attachments) contains confidential information 
 intended for a specific individual and purpose, and is protected by law.  If 
 you are not the intended recipient, you should delete this message. 
 
 
 Any disclosure, copying, or distribution of this message, or the taking of 
 any action based on it, is strictly prohibited. [v.E.1]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Overridden properties not applied while building a war

2007-08-15 Thread Federico Schroder
Hello,
So far I've been using maven 2 to build a webapp without problems, now I
want to generate a new webapp that is a customization of the original.
For now the only things I would like to change are a few images and some
other minor stuff, this includes some of the properties defined in the
profiles in the master pom.

What I did
I created a new master pom for this customization and a new webapp
project that extends the previous one.

The problem
The new app is building almost fine, the newly defined files overwrite
the previous ones. The problem is that for non overridden files the
profile properties being used are the ones defined in the old project.
This makes sense from one point of view, but is there a way to tell the
base webapp to use the properties defined in the new master pom?

Thanks,
Federico.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]