PME offers the ability to modify one or many xml files in the repository prior to running the build.
|Warning : This should not be used to modify XML POM files within the Maven Model (as they will get overwriten by the POM Manipulator) but for e.g. assembly files.|
The manipulator is controlled by the
xmlUpdate property. The format is
Multiple comma separated values may be supplied. If the replacement-value is not specified the operation becomes a delete rather than an update.
Note: Any ‘,’ or ‘:’ in the path expression or replacement value should be escaped with ‘\’.
As an example:
- For the file src/main/assembly/dep.xml
- Use the path expression //include[starts-with(.,’org.apache.tomcat’)] to locate the appropriate node.
- Replace the value with com.rebuild:servlet-api.