[jboss-user] [JBoss Tools] - Re: [m2e] [maven-bundle-plugin] Adding OSGI bundle resource to a server
Rob Stryker
do-not-reply at jboss.com
Thu Jun 21 02:48:43 EDT 2012
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&containerType=14&container=2128]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120621/45b7c70a/attachment.html
More information about the jboss-user
mailing list