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

Reply via email to