Browse Source

Error advanced-osgi formating (#11382)

Some snippets codes do not render properly.
tags/8.7.0.beta1
DiegoSanzVi 5 years ago
parent
commit
ccb1c45a6a
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      documentation/advanced/advanced-osgi.asciidoc

+ 5
- 0
documentation/advanced/advanced-osgi.asciidoc View File

The easiest way to convert regular maven-based Vaadin application into a valid OSGi bundle consists of five steps: The easiest way to convert regular maven-based Vaadin application into a valid OSGi bundle consists of five steps:


* Change packaging type to `jar` in your `pom.xml`: * Change packaging type to `jar` in your `pom.xml`:

[source, xml] [source, xml]
---- ----
<packaging>jar</packaging> <packaging>jar</packaging>
---- ----
* Change the scope for all vaadin dependencies from default to `provided`, like this: * Change the scope for all vaadin dependencies from default to `provided`, like this:

[source, xml] [source, xml]
---- ----
<dependency> <dependency>
</dependency> </dependency>
---- ----
* Add OSGi-related dependencies to the project * Add OSGi-related dependencies to the project

[source, xml] [source, xml]
---- ----
<groupId>com.vaadin</groupId> <groupId>com.vaadin</groupId>
</dependency> </dependency>
---- ----
* Setup necessary plugins for building the project: * Setup necessary plugins for building the project:

[source, xml] [source, xml]
---- ----
<build> <build>
</build> </build>
---- ----
* Add bundle script (`bnd.bnd`) into the project root folder: * Add bundle script (`bnd.bnd`) into the project root folder:

[source, text] [source, text]
---- ----
Bundle-Name: ${project.name} Bundle-Name: ${project.name}

Loading…
Cancel
Save