You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by suresh kamini <su...@gmail.com> on 2013/03/17 04:17:14 UTC
Reg:How to pass value into pom.xml file runtime in any options
Hi All,
I have 2 file one is *a.properties* and *pom.xml*
*a.properties *which contains below code
<name>12345</name>
*pom.xml *which contains below code
project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>orgjboss</groupId>
<artifactId>abc</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
</project>
*Question*
*
Requirement is how to place the name value 12345 from a.properties into
pom.xml groupid place
*
*Expect output:*
project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>12345</groupId>
<artifactId>abc</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
</project>
Regards,
Suresh