in src/main/java/org/apache/maven/shared/archiver/PomPropertiesUtil.java [92:118]
public void createPomProperties(
String groupId,
String artifactId,
String version,
Archiver archiver,
Path customPomPropertiesFile,
Path pomPropertiesFile)
throws IOException {
Properties p;
if (customPomPropertiesFile != null) {
p = loadPropertiesFile(customPomPropertiesFile);
} else {
p = new Properties();
}
p.setProperty("groupId", groupId);
p.setProperty("artifactId", artifactId);
p.setProperty("version", version);
createPropertiesFile(p, pomPropertiesFile);
archiver.addFile(
pomPropertiesFile.toFile(), "META-INF/maven/" + groupId + "/" + artifactId + "/pom.properties");
}