import org.jboss.osgi.framework.spi.IntegrationConstants;
import org.jboss.osgi.metadata.OSGiManifestBuilder;
public class OSGiManifestStructureProcessor implements DeploymentUnitProcessor {
@Override
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
<BUG>final DeploymentUnit depUnit = phaseContext.getDeploymentUnit();
if (depUnit.hasAttachment(Attachments.OSGI_MANIFEST))

return;</BUG>
Deployment dep = BundleLifecycleIntegration.getDeployment(depUnit.getName());

import org.jboss.osgi.framework.spi.IntegrationConstants;
import org.jboss.osgi.metadata.OSGiManifestBuilder;
public class OSGiManifestStructureProcessor implements DeploymentUnitProcessor {
@Override
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
DeploymentUnit depUnit = phaseContext.getDeploymentUnit();
Manifest manifest = depUnit.getAttachment(Attachments.OSGI_MANIFEST);
if (manifest != null)
return;
Deployment dep = BundleLifecycleIntegration.getDeployment(depUnit.getName());
