Re: about OSGI (Yevgeny Kazakov)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: about OSGI (Yevgeny Kazakov)

mpuebla
 

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: [hidden email]
Para: [hidden email]
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
        [hidden email]

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
        [hidden email]

You can reach the person managing the list at
        [hidden email]

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 <[hidden email]>
Subject: [OWLAPI-developer] about OSGI
To: [hidden email],
        [hidden email]
Message-ID: <[hidden email]>
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 <[hidden email]>
Subject: Re: [OWLAPI-developer] about OSGI
To: [hidden email],
        [hidden email]
Message-ID:
        <[hidden email]>
Content-Type: text/plain; charset="utf-8"

Dear Manuel,


On Fri, 17 Feb 2017 at 17:20, Manuel Enrique Puebla Martinez <[hidden email]>
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
[hidden email]
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
_______________________________________________
protege-dev mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-dev