On 03/08/2012 12:04 PM, Jared Hall wrote:
I would like to be able to modify the contents of a WAR file.
Goal: I would like to be in a directory with my WAR and a pom.xml. When I type
'maven configure', I would like maven to apply a filter to some of the files in
the war, and then leave behind the exact same WAR, with the filters applied. I
don't need to compile any files, I just need to apply some filters to some
files that are already in a WAR.
The motivation for this is that I compile something that is still
un-configured. I throw the war into my test environment and configure it. If it
passes, I graduate it to production and re-configure it.
Note: I don't care whether or not I use Maven or something like a scripting
language to accomplish this. The end goal is what I described above, one typed
command that reconfigures the WAR. I thought Maven might be able to do most of
the leg-work for me.
Any help is appreciated, thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
Maven is not a scripting tool.
It has very definite ideas about how software gets built and this is not
really in line with its ideas.
In dealing with Maven, you have to conform to its process or you will
have a miserable life until you submit.
"Resistance is futile" is your best mantra when planning to do battle
with Maven.
Stop before you start.
Try Ant.
It is the Border Collie of Java tools and wants to do whatever you want
to do.
It has no preconceived ideas about "Best Practices".
Ron
--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]