I have a question regarding properties in a multi-module project.
Consider the following three-level project:
project
+- pom.xml (packaging: pom) //referred to as super-pom
+- module_group
+- pom.xml (packaging: pom) //referred to as group-pom
+- module
+-pom.xml (packaging: jar) //referred to as module-pom
In super-pom, I define a version of a property that gets the default value of "unknown".
In addition, I declare and use buildnumber-maven-pluginwhich is configured to receive the svn revision and puts it in the property revision.
Then I configure maven-jar-pluginto write this property to the manifest.
In the pom module, I declare the use buildnumber-maven-pluginso that it actually executes.
All this works with the direct construction of the module, i.e. Only when executing the pump module. The manifest contains the patch reported buildnumber-maven-pluginas shown on the console.
, -pom group-pom, , buildnumber-maven-plugin, ( maven-jar-plugin ).
, , - .
- , ? - , ( , )?
Update
(-X) , , , :
1) pom parsing , pom, .
pom:
<properties>
<revision>default</revision>
</properties>
...
<someconfig>${revision}</someconfig>
pom , , , :
<properties>
<revision>default</revision>
</properties>
...
<someconfig>default</someconfig>
2) , , , validate.
, , .
3) , <someconfig> ( maven-jar-plugin), <someconfig>default</someconfig> , , revision.
- ?