manifest.addConfiguredAttribute(new Attribute("Bundle-Version", project.getVersion()));
manifest.addConfiguredAttribute(new Attribute("Bundle-ManifestVersion", "2"));
manifest.addConfiguredAttribute(new Attribute("Bundle-Description", project.getDescription()));
archiver.addConfiguredManifest(manifest);
archiver.createArchive();
projectHelper.attachArtifact(project, "jar", classifier, packageFile);
} else {
projectHelper.addResource(project, libDirectory.getCanonicalPath(), null, null);