Re: Need to change parameters of War, when overlay.

2012-04-11 Thread mavenbabuk
Yes, You given correct solution to me. Thank you all. -- View this message in context: http://maven.40175.n5.nabble.com/replace-parameters-when-overlaying-in-maven-tp5626856p5632304.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Need to change parameters of War, when overlay.

2012-04-10 Thread mavenbabuk
*Environment Details*, Apache Maven 2.2.1 Java version: 1.6.0_20 Spring2 *Generating Parent War* I have create a war from the common resource without mention the property value. This war has been generated by

Re: Need to change parameters of War, when overlay.

2012-04-10 Thread mavenbabuk
Here i am given the problem in detail.. *Environment Details*, Apache Maven 2.2.1 Java version: 1.6.0_20 Spring2 *Generating Parent War* I have create a war from the common resource without mention the property

Re: Need to change parameters of War, when overlay.

2012-04-10 Thread Ansgar Konermann
You could externalize the configuration bits of current.vertical.title into a config file or jndi parameter and have the web application read it at runtime/during startup. I doubt the WAR plugin can filter resources which are already packaged as WAR, that is: have already gone through phase

Re: Need to change parameters of War, when overlay.

2012-04-10 Thread mavenbabuk
I have tried with externalize property file named as *my-file.properties*. I configured in pom for externalize as given below, plugin groupIdorg.codehaus.mojo/groupId

Re: Need to change parameters of War, when overlay.

2012-04-10 Thread Ansgar Konermann
You cannot use *Maven* properties in your application. You need to use some Java JRE call or equivalent in your application to load the configuration at startup or run time. Your pom is merely loading the properties from a file so that *maven* can use them during build time, i. e. you could

Re: Need to change parameters of War, when overlay.

2012-04-10 Thread Wayne Fay
       *Here my complexity* is,                When i run install command for child project, this parent war getting extracted in my deploy path.                But, Still the replacement of the property values change does not occur. Ryan gave you an answer with a sample plugin

Re: Need to change parameters of War, when overlay.

2012-04-10 Thread mavenbabuk
I excuse for not properly execute of Ryan sample plugin configuration. Now, Once again i tried and i faced the problem as given below, While install command executes, First child application deploy with filtering, then parent war getting overlay. How to change this order, when

Re: Need to change parameters of War, when overlay.

2012-04-10 Thread Ron Wheeler
As mentioned earlier, you are probably trying to do something that you should not. You might want to look at 2 blog articles that I wrote, with some help from Stephen Connolly, that gives you a better approach to your problem. http://blog.artifact-software.com/tech/?p=150

Re: Need to change parameters of War, when overlay.

2012-04-10 Thread Ryan Wexler
I am not sure I understand the problem exactly. But one option you could look at is separating the two tasks. You could first use the maven dependency plugin to unpack the parent war. resources !--Reference the build directory so we can apply the resource filtering to it--

Need to change parameters of War, when overlay.

2012-04-09 Thread mavenbabuk
value from the child pom. Thank for the people who try to give answer. -- View this message in context: http://maven.40175.n5.nabble.com/Need-to-change-parameters-of-War-when-overlay-tp5626856p5626856.html Sent from the Maven - Users mailing list archive at Nabble.com

Re: Need to change parameters of War, when overlay.

2012-04-09 Thread Ron Wheeler
-to-change-parameters-of-War-when-overlay-tp5626856p5626856.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h

Re: Need to change parameters of War, when overlay.

2012-04-09 Thread Ryan Wexler
.nabble.com/Need-to-change-parameters-of-War-when-overlay-tp5626856p5626856.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional