Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Creating deployment packages
Creating deployment packages [message #1795329] Thu, 20 September 2018 12:18 Go to next message
Valentas Malakauskas is currently offline Valentas MalakauskasFriend
Messages: 4
Registered: March 2018
Junior Member
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?
Re: Creating deployment packages [message #1795335 is a reply to message #1795329] Thu, 20 September 2018 13:56 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
you could use features like here: https://github.com/eclipse/kura/tree/develop/kura/features/org.eclipse.kura.driver.s7plc

Hope that helps.

Matteo
Re: Creating deployment packages [message #1795397 is a reply to message #1795335] Fri, 21 September 2018 10:42 Go to previous messageGo to next message
Valentas Malakauskas is currently offline Valentas MalakauskasFriend
Messages: 4
Registered: March 2018
Junior Member
Thanks for a quick response.

I have been looking around your example and if I correctly understand, instead of defining whats going to be in a DP using maven dependencies, I can use feature.xml to define required bundles as plugins that go into it.

Where could I find the documentation on how to define features? Because these features does not look like karaf featues.

EDIT: I found that these features configurations are for tycho-source-feature-plugin

[Updated on: Fri, 21 September 2018 10:47]

Report message to a moderator

Re: Creating deployment packages [message #1797146 is a reply to message #1795397] Fri, 26 October 2018 09:11 Go to previous message
shubh wade is currently offline shubh wadeFriend
Messages: 28
Registered: July 2018
Junior Member
No Message Body

[Updated on: Mon, 29 October 2018 08:46]

Report message to a moderator

Previous Topic:Generate dp file
Next Topic:Can this portable Java Device I/O library be of any assistance?
Goto Forum:
  


Current Time: Wed Nov 13 21:57:03 GMT 2024

Powered by FUDForum. Page generated in 0.04483 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top