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.
*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
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
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
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
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
*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
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
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
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--
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
-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
.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
13 matches
Mail list logo