Read xml inside POM in Maven

I want to read the below XML file using POM. and I want to run the POM based on the inputs given in POM.

<packging operation-mode="" server="" java-compiler-version="">
    <operation-layer name="framework">
        <operation-module name="framework" exclude-installation-mode="" exclude-server=""></operation-module>
        <operation-module name="admin" exclude-installation-mode="" exclude-server=""></operation-module>
        <operation-module name="tpe" exclude-installation-mode="" exclude-server=""></operation-module>
        <operation-module name="sample" exclude-installation-mode="" exclude-server=""></operation-module>
    </operation-layer>
    <operation-layer name="function">
        <operation-module name="function" exclude-installation-mode="" exclude-server=""></operation-module>
    </operation-layer>
    <operation-layer name="product">
        <operation-module name="product" exclude-installation-mode="" exclude-server=""></operation-module>
    </operation-layer>
    <operation-layer name="solution">
        <operation-module name="solution" exclude-installation-mode="" exclude-server=""></operation-module>
    </operation-layer>
</packging>

Answers


You can use ANT+xmltask in your pom at phase validate for example.


Need Your Help

How can I find out which version of emacs introduced a function?

emacs robustness

I want to write a .emacs that uses as much of the mainline emacs functionality as possible, falling back gracefully when run under previous versions. I've found through trial and error some functions

saving QML image

qt qml

How can I save QML Image into phone memory ??