Help still needed
Could not find any working way.
You could make this a build time property and filter copy the web.xml file.
This would not work. The fact is :
- Maven is used locally to compile and send the archive (EAR) to our enterprise Maven repository.
- the archive is then deployed on several servers through a home-made too
Consequently, the exact same EAR archive is deployed on several servers that do need different AUTH-METHOD parameters.
Currently, we do compile once with BASIC, then deploy on a few servers, then compile with CLIENT-CERT, then deploy on other servers. This can really cause manipulation errors. We'd like to compile once, deploy everywhere...
did you enable system properties placeholders replacement in deployment descriptors?
If not, you must use the following CLI command to do it.
There is also a property that enables it on custom deployment descriptors. You can refer to the doc.
You have to add a "system-property" with the CLI on AS7 as well to set the value dependending on your environment.
Please let us know it this works better.