• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maven 2: How do I pull a different web.xml file based on a profile?

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using Maven 2.2 on Mac 10.5.6. I'm using profiles to configure my web application build, and have this ...



My question is, does anyone know how I can get the build to include the web.xml file I have specified in the ${web.xml.path} variable? I'm not able to find how to tell Maven where to pull the web.xml file from.

Thanks, - Dave
 
Tim Holloway
Saloon Keeper
Posts: 18300
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest way to to it is to specify an alternate resource directory, put the model web.xml into that and specify that directory as the resource source in your profile.

The Maven docs are reasonably clear on stuff like that, although I don't think they specifically mentioned anything about it in the WAR plugin, just the general resource handling of profiles.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic