in src/main/java/org/apache/maven/plugins/war/packaging/CopyUserManifestTask.java [59:72]
public void performPackaging(WarPackagingContext context) throws MojoExecutionException, MojoFailureException {
File userManifest = context.getArchive().getManifestFile();
if (userManifest != null) {
try {
getLog().info("Copying manifest...");
File metainfDir = new File(context.getWebappDirectory(), META_INF_PATH);
copyFile(context, userManifest, new File(metainfDir, "MANIFEST.MF"), "META-INF/MANIFEST.MF", true);
} catch (IOException e) {
throw new MojoExecutionException("Error copying user manifest", e);
}
}
}