Ctrl+Shift+Alt+S
Use this page to configure support of OSGi
bundles generation.
Prerequisite: Osmorc plugin should be enabled.
The available tabs are:
General tab
| Item | Description |
|---|---|
| Bundle Creation | In this area, specify the bundling method and appoint the OSGi Bundle manifest file to use (or specify the way to create a new one).
The available options are:
|
| Maven Synchronization | In this area you can select the following option: Do not synchronize facet settings with Maven - if you select this check box, OGGi facet settings will not be synchronized with Maven. It might be helpful if you want to save facet settings that are different from the settings in pom.xml file when you reimport from the Maven project. |
Bundle jar tab
The controls in this tab are not available if you have selected the Create using bnd and ignore facet configuration option in the General tab.
| Item | Description |
|---|---|
| JAR filename | Use this field to specify the name of your bundle JAR file. |
| JAR output path | Use this area to specify the location of the bundle JAR file. You can select from the following options:
|
| Always Rebuild Bundle JAR | Select this check box to have the OSGi bundle JAR file rebuilt upon every module make. |
| Additional JAR Contents | In this area, specify extra sources to be packaged into the JAR and the target location where to store the packaging results.
|
| File Ignore Pattern (regex) | Use this field to exclude items you do not need from the JAR file after the compilation. Bundles are assembled using bnd tool.
This parameter acts as bnd directive -donotcopy.For example, you usually do not copy CVS and .svn directories. So, the default, in this case, is (CVS|.svn).
The syntax for the parameter is as follows:-donotcopy= (CVS|.svn|.+.bak|~.+)
|
Manifest generation tab
The controls in this tab are only available when the Create manifest using facet settings and bundle using facet configuration option is selected in the General tab.
| Item | Description |
|---|---|
| Symbolic Name | In this text box, specify an alias to refer to the bundle. |
| Bundle Activator | In this text box, specify the class that implements the OSGi activator.
Type the class name or click the Browse button
and choose it in the Select Bundle Activator Class dialog box, that opens. |
| Bundle Version | In this text box, specify the version of the framework integrator used. |
| Additional Properties | In this text box, type additional properties to be included in the manifest.mf manifest file.
Syntax highlighting, auto-completion, and intention actions are available.
|
and choose the desired location
in the
(
(
(