Hi Anders, Thank you for your fast reply !
I'm not surprised with your proposition, but is there anyone who did this (add properties out of the archive) with WebLogic ? Thanks, Xavier 2012/8/22 Anders Hammar <[email protected]> > Although it is possible to unpack, update and then re-pack, I strongly > suggest you try to change this behavior of having environment specific > properties file bundled with the EARs/WARs/etc. There has been > numerous discussion around this on this mailing list (search achive) > and best practice is to keep configuration outside of the archive. I > normally suggest reading the configuration from the classpath where > you then could put these config files in some folder of the app server > where they are added to the classpath (all servers should support > this), but it is also possible to read configuration from JNDI for > example. > > When you do this, deploying is as simple as grabbing the archive from > the repo and copy/deploy to the server. No tweaking of the files in > the archive. > > /Anders > > On Wed, Aug 22, 2012 at 8:21 AM, Xavier NOPRE <[email protected]> wrote: > > Hi, > > > > I want to use Maven to retrieve some dependencies, like JAR, WAR, EAR > (from > > Archiva), and I want to deploy them to tests servers (Weblo) and to > Archiva. > > > > My problem is that I have to change some properties files in the EAR, > with > > my own properties, depending on target test server. > > > > Is it possible to do that ? How ? > > > > I think, perhaps, I have to "extract" the EAR, and then, repack it with > wy > > filtered properties .... ? > > > > Thanks for your help, > > > > Xavier > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
