Rob Stryker [
https://community.jboss.org/people/rob.stryker] created the discussion
"Re: [m2e] [maven-bundle-plugin] Adding OSGI bundle resource to a server"
To view the discussion, visit:
https://community.jboss.org/message/743259#743259
--------------------------------------------------------------
The code we use to determine whether to turn a project into a deployable osgi feature is:
protected IModule[] createModules(IProject project) {
if (!WorkspaceModelManager.isBinaryProject(project) &&
WorkspaceModelManager.isPluginProject(project)) {
IModel model = PluginRegistry.findModel(project);
if (model != null && isValidModel(model) &&
hasBuildProperties((IPluginModelBase) model)) {
IModule module = createModule(project.getName(), project.getName(),
MODULE_TYPE, VERSION, project);
return new IModule[] { module };
}
}
return null;
}
So yes, we require that osgi recognizes it as a plugin project *and* that it has a build
properties file :)
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/743259#743259]
Start a new discussion in JBoss Tools at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]