This page (revision-13) was last changed on 23-Apr-2022 17:05 by Harry Metske

This page was created on 23-Apr-2022 17:05 by Harry Metske

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
13 23-Apr-2022 17:05 7 KB Harry Metske to previous
12 23-Apr-2022 17:05 6 KB Harry Metske to previous | to last
11 23-Apr-2022 17:05 6 KB Harry Metske to previous | to last
10 23-Apr-2022 17:05 6 KB Harry Metske to previous | to last
9 23-Apr-2022 17:05 4 KB Harry Metske to previous | to last
8 23-Apr-2022 17:05 3 KB Harry Metske to previous | to last
7 23-Apr-2022 17:05 3 KB Harry Metske to previous | to last
6 23-Apr-2022 17:05 2 KB Harry Metske to previous | to last
5 23-Apr-2022 17:05 2 KB Harry Metske to previous | to last
4 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
3 23-Apr-2022 17:05 1 KB Harry Metske to previous | to last
2 23-Apr-2022 17:05 598 bytes Harry Metske to previous | to last
1 23-Apr-2022 17:05 525 bytes Harry Metske to last

Page References

Incoming links Outgoing links
OSGi...nobody

Version management

Difference between version and

At line 87 added 45 lines
!! Switch to IntelliJ and maven-bundle-plugin
Import the same project in IntelliJ and add framework support for maven.
This is the basic [pom.xml] file to use
Then run {{mvn org.apache.felix:maven-bundle-plugin:bundle}} to create the first bundle in ./target.
Fire up the Felix shell : {{cd /usr/local/felix && java -jar bin/felix.jar}}
The {{lb}} command lists the currently installed bundles, and we install our bundle with :
{{{
g! install file:/home/metskem/workspace/OSGiTutorial/target/OSGiTutorial-1.0-SNAPSHOT.jar
Bundle ID: 13
g! lb
START LEVEL 1
ID|State |Level|Name
0|Active | 0|System Bundle (4.2.1)
1|Active | 1|Apache Felix Bundle Repository (1.6.6)
2|Active | 1|Apache Felix Gogo Command (0.12.0)
3|Active | 1|Apache Felix Gogo Runtime (0.10.0)
4|Active | 1|Apache Felix Gogo Shell (0.10.0)
13|Installed | 1|file:/home/metskem/workspace/OSGiTutorial/target/OSGiTutorial-1.0-SNAPSHOT.jar (0.0.0)
g! start 13
g!
}}}
Install __Felix web console__ with {{g! install http://mirror.switch.ch/mirror/apache/dist/felix/org.apache.felix.webconsole-4.2.0.jar}} and the Felix log service with {{g! install http://mirror.switch.ch/mirror/apache/dist/felix/org.apache.felix.log-1.0.1.jar}}
{{{
g! install http://mirror.switch.ch/mirror/apache/dist/felix/org.apache.felix.log-1.0.1.jar
Bundle ID: 15
g! lb
START LEVEL 1
ID|State |Level|Name
0|Active | 0|System Bundle (4.2.1)
1|Active | 1|Apache Felix Bundle Repository (1.6.6)
2|Active | 1|Apache Felix Gogo Command (0.12.0)
3|Active | 1|Apache Felix Gogo Runtime (0.10.0)
4|Active | 1|Apache Felix Gogo Shell (0.10.0)
13|Active | 1|file:/home/metskem/workspace/OSGiTutorial/target/OSGiTutorial-1.0-SNAPSHOT.jar (0.0.0)
14|Installed | 1|Apache Felix Web Management Console (4.2.0)
15|Installed | 1|Apache Felix Log Service (1.0.1)
}}}