Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-dev] about OSGI (Yevgeny Kazakov)

Manuel Enrique Puebla Martinez mpuebla at uci.cu
Mon Feb 20 20:28:21 PST 2017


 

Okay, apparently mixing maven and OSGI is a tricky subject. But please, could anyone tell me, precisely, what changes I have to make to incorporate new maven dependencies into an OSGI bundle?

I understand that there are two solutions:

1) "The build system can be configured to embed every class depend inside
The bundle that is being built; However that is not generally the best way
Of putting together an OSGI system; It makes the jar file bigger, and may
Make it harder to use alternative packages. "

2) "The other approach is to install bundles providing those packages into the
Running system. If the dependency is already a bundle, you can just deploy
That; Otherwise you can run a wrap command to create a minimalist bundle. "

Now ... could anyone explain how to do this ?, without having to master everything related to OSGI. Maven I know him, I worked with him a while ago. But from OSGI I know nothing.

I just need to add new MAVEN dependencies to some of the Protege bundle. I do not need to make major changes to Protege's OSGI architecture.

Best regards.


----- Mensaje reenviado -----
De: owlapi-developer-request at lists.sourceforge.net
Para: owlapi-developer at lists.sourceforge.net
Enviados: Sábado, 18 de Febrero 2017 7:05:30
Asunto: Owlapi-developer Digest, Vol 120, Issue 5

Send Owlapi-developer mailing list submissions to
	owlapi-developer at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/owlapi-developer
or, via email, send a message with subject or body 'help' to
	owlapi-developer-request at lists.sourceforge.net

You can reach the person managing the list at
	owlapi-developer-owner at lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Owlapi-developer digest..."


Today's Topics:

   1. about OSGI (Manuel Enrique Puebla Martinez)
   2. Re: about OSGI (Yevgeny Kazakov)


----------------------------------------------------------------------

Message: 1
Date: Fri, 17 Feb 2017 11:11:34 -0500 (CST)
From: Manuel Enrique Puebla Martinez <mpuebla at uci.cu>
Subject: [OWLAPI-developer] about OSGI
To: owlapi-developer at lists.sourceforge.net,
	protege-dev at lists.stanford.edu
Message-ID: <957547400.3787042.1487347894902.JavaMail.zimbra at uci.cu>
Content-Type: text/plain; charset="utf-8"


Thankful for the yuda. I see that I have to learn a lot about OSGI. 

Please, about this comment: 

"The build system can be configured to embedded every depend class inside the bundle that is being built ; however that is not generally the best way of putting together an OSGI system; it makes the jar file bigger, and may make it harder to use alternative packages. 

The other approach is to install bundles providing those packages into the running system. If the dependency is already a bundle, you can just deploy that ; otherwise you can run a wrap command to create a minimalist bundle. " 


Any source of information where you can learn to do this? 


best regards . 

?La @universidad_uci es Fidel. Los j?venes no fallaremos.
#HastaSiempreComandante
#HastalaVictoriaSiempre
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Fri, 17 Feb 2017 19:57:16 +0000
From: Yevgeny Kazakov <yevgeny.kazakov at uni-ulm.de>
Subject: Re: [OWLAPI-developer] about OSGI
To: owlapi-developer at lists.sourceforge.net,
	protege-dev at mailman.stanford.edu
Message-ID:
	<CACFL79fJeZSvyZFc_vAX45D6j1DsZfKhGO0Q1hBcRp2_3XhYEQ at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Dear Manuel,


On Fri, 17 Feb 2017 at 17:20, Manuel Enrique Puebla Martinez <mpuebla at uci.cu>
wrote:

>
>
> Any source of information where you can learn to do this?
>

Mixing OSGI and maven is an advanced subject.
These systems resolve dependencies in different way (one uses Pom.xml,
another uses Manifest.mf).
To learn about OSGI, I suggest you first look for tutorials that do not use
maven.
Here, for example, is the first google hit for me:

http://www.javaworld.com/article/2077837/application-development/java-se-hello-osgi-part-1-bundles-for-beginners.html

Similarly, you can separately learn about maven.
And then you can read about the maven bundle plugin, which is one way of
making bundles using maven:

http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html

However, it took me a while (a few years) to understand those things, so
you need to be patient.

Good luck!

- Yevgeny

P.S.: why are you creating new threads every time? It is very difficult to
find the problem you try to solve.



>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

------------------------------

_______________________________________________
Owlapi-developer mailing list
Owlapi-developer at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owlapi-developer


End of Owlapi-developer Digest, Vol 120, Issue 5
************************************************
La @universidad_uci es Fidel. Los jóvenes no fallaremos.
#HastaSiempreComandante
#HastalaVictoriaSiempre


More information about the protege-dev mailing list