in src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java [107:136]
public void createPomProperties(
MavenSession session,
MavenProject project,
Archiver archiver,
File customPomPropertiesFile,
File pomPropertiesFile,
boolean forceCreation)
throws IOException {
final String groupId = project.getGroupId();
final String artifactId = project.getArtifactId();
final String version = project.getVersion();
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, forceCreation);
archiver.addFile(pomPropertiesFile, "META-INF/maven/" + groupId + "/" + artifactId + "/pom.properties");
}