+ }finally{
+ IOUtils.closeQuietly(manifestOut);
+ }
+
+ // Write bundle POM
+ File pomFile = bundlePackage.getPomFile();
+ StringBuffer pomBuf = createPomFileHeader(project
+ .getParentArtifact().getGroupId(), project
+ .getParentArtifact().getArtifactId(), project
+ .getParentArtifact().getBaseVersion(), bundlePackage
+ .getArtifact().getGroupId(), bundlePackage.getArtifact()
+ .getArtifactId(), "jar");
+ String pomStr = closePomFile(pomBuf);
+ try {
+ FileUtils.writeStringToFile(pomFile, pomStr);
+ } catch (IOException e) {
+ throw new MojoExecutionException(
+ "Could not write pom for bundle "
+ + bundlePackage.getArtifact().getArtifactId(),
+ e);