1.

How Do You Reference A Property Defined In Your Pom.xml File?

Answer»

To reference a property DEFINED in your pom.xml, the property name uses the names of the XML elements that DEFINE the VALUE, with "pom" being allowed as an alias for the PROJECT (root) element.

So ${pom.name} refers to the name of the project, ${pom.version} refers to the version of the project, ${pom.build.finalName} refers to the final name of the file CREATED when the built project is packaged, etc.

To reference a property defined in your pom.xml, the property name uses the names of the XML elements that define the value, with "pom" being allowed as an alias for the project (root) element.

So ${pom.name} refers to the name of the project, ${pom.version} refers to the version of the project, ${pom.build.finalName} refers to the final name of the file created when the built project is packaged, etc.



Discussion

No Comment Found