Creating deployment packages [message #1795329] |
Thu, 20 September 2018 08:18  |
Eclipse User |
|
|
|
Hello,
Im currently developing OSGi bundles on top of kura with Eclipse and I came to a point where I need to create deployment packages from them.
I know how to build them manually, but I am looking for a way to automate this process with maven or some other tools.
I am currently playing around with felix maven plugin and dentrassi osgi-dp maven plugins:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.5</version>
<extensions>true</extensions>
<configuration>
<manifestLocation>META-INF</manifestLocation>
<instructions>
<Bundle-SymbolicName>${project.artifactId};singleton:=true</Bundle-SymbolicName>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-Version>${project.version}</Bundle-Version>
<Import-Package>*</Import-Package>
<Export-Package>*</Export-Package>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>de.dentrassi.maven</groupId>
<artifactId>osgi-dp</artifactId>
<version>0.4.0</version>
<extensions>true</extensions>
</plugin>
But it seems like if you use maven then you lose eclipse plugins functionality because manifest is generated by felix plugin instructions and to build DP you have to again define all the maven dependencies that go into it.
Is there any guidelines or examples how it should be done?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04869 seconds