Code Monkey home page Code Monkey logo

Comments (8)

fo0 avatar fo0 commented on July 2, 2024

Hi Alex,

thats a good idea. Im going to use the implementation guide on vaadin i'v found:
https://vaadin.com/blog/osgifying-your-add-ons

from advancedtokenfield.

fo0 avatar fo0 commented on July 2, 2024

This is my first project where I integrated this OSGi support.
Could you maybe take a look or give it a try. Please tell me if it works not not.

https://github.com/fo0/AdvancedTokenField/blob/master/AdvancedTokenField-addon/pom.xml
https://github.com/fo0/AdvancedTokenField/blob/master/AdvancedTokenField-addon/src/main/java/META-INF/MANIFEST.MF

from advancedtokenfield.

alexweirig avatar alexweirig commented on July 2, 2024

Hi,

I dont't like using maven so I'm not the pom specialist. In the linked MANIFEST.MF file, the Import-Packages and Export-Packages statements are missing.
I changed the pom.xml and now the result looks better:

  1. you need to change the packaging from jar to bundle
    bundle
  2. you need to specify which package needs to be exported. My best guess was that
    com.fo0.advancedtokenfield.main.* would be enough but you know your add-on better than I do so maybe other packages also need to be exported.
    In OSGi, if your bundle doesn't do an explicit export of a package, that package and thus the classes inside the package will not be visible by other classes, e.g. if somebody using your add-on needs to have access to the listeners or events, you need to export those packages as well.

I can't test the add-on today maybe tomorrow I'll be able to deploy it into a karaf and try to use it with a Vaadin OSGi application.

Regards,

Alex

from advancedtokenfield.

fo0 avatar fo0 commented on July 2, 2024

could you maybe provide me your pom changes that I can take a look ?
But anyway im going to do some tests and keep looking on the Export Statements inside the MANIFEST.MF

from advancedtokenfield.

alexweirig avatar alexweirig commented on July 2, 2024

Hi,

not sure if it was the best thing to do but I tried to create a pull request with the changes I made to the pom.xml ...

HTH

from advancedtokenfield.

fo0 avatar fo0 commented on July 2, 2024

I already did these changes. Im going to validate the output and update the version to: 0.0.62

from advancedtokenfield.

fo0 avatar fo0 commented on July 2, 2024

Published on Version: 0.0.63
Please check and give me feedback

from advancedtokenfield.

fo0 avatar fo0 commented on July 2, 2024

looks like its fixed, no more response.

from advancedtokenfield.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.