Hello,

I proposed the modification of the war-war-resources for filtering (MPWAR-46) because we use a database for each developer and therefore we need not to have each one modify the configuration files using the ant filtering defining the filters using a pre-goal. The build system has default values set in the project.properties files and each developer
in its build.properties.

The modifications are the address to the database, the user and its password.

Raphaël


Simon McClenahan a écrit :

I have a need for filtering from ${maven.war.src}. Searching JIRA for "war filter" comes up with a few unresolved issues that I think are related:

http://jira.codehaus.org/browse/MPWAR-46
http://jira.codehaus.org/browse/MPWAR-39
http://jira.codehaus.org/browse/MPWAR-37

The Maven documentation at http://maven.apache.org/using/resources.html and the thread ending at http://mail-archives.apache.org/mod_mbox/maven-users/200504.mbox/[EMAIL PROTECTED] suggests writing a pre-goal for java:jar-resources , but I need this applied to war:war-resources.

I think the solution in http://jira.codehaus.org/browse/MPWAR-46 is what I need to do, but I don't understand how I would write this as a goal/pre-goal in m1, and specify a filtersfile.

Furthermore, I would like to invoke maven specifying different filterfiles, e.g. for dev, qa, production environments. I know this goes against the best practice recommendation for reproducible builds http://maven.apache.org/using/bestpractices.html#Reproduciblity , but I can't refactor to write external configuration yet.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to