pom.setArtifactId(reference.getArtifactId());
pom.setVersionString(reference.getVersion().toVersionString());
pom.setPackaging(packaging);
try {
pom.write(packageDir.createFile(prefix + ".pom").getOutputStream());
file.copy( packageDir.createFile(jarPrefix + "." + packaging) );
this.clearCachedInformation(reference);
} catch (JAXBException e) {
throw ThrowableManagerRegistry.caught(e);