Giter Club home page Giter Club logo

Comments (5)

lincolnthree avatar lincolnthree commented on September 24, 2024

Hey! Thanks for this idea. Would you like to help set this up? I haven't done any work in OSGi, so I probably wouldn't be able to test it very well. Your help would be very appreciated!

from prettytime.

lincolnthree avatar lincolnthree commented on September 24, 2024

(A pull request adding this configuration to the POM would be awesome!)

from prettytime.

kitschen avatar kitschen commented on September 24, 2024

To you POM, add something like:

<plugins>
  <plugin>
    <groupId>org.apache.felix</groupId>
    <artifactId>maven-bundle-plugin</artifactId>
    <extensions>true</extensions>
    <configuration>
      <instructions>
        <Export-Package>org.foo.myproject.api</Export-Package>
        <Private-Package>org.foo.myproject.*</Private-Package>
      </instructions>
    </configuration>
  </plugin>
</plugins>

Where the export should contain all packages that your users will actually use (ie. import).
Private should contain all packages which are only for the lib's internal use.
Not sure if you need a version here, but if so, try 2.3.7 or the latest (2.5.3)

from prettytime.

amergey avatar amergey commented on September 24, 2024

I would also be interested to use prettytime in osgi environment.
I have created a pull request (#100) adding configuration to the POM in order to build prettytime with OSGI manifest

from prettytime.

lincolnthree avatar lincolnthree commented on September 24, 2024

(Merged PR)

from prettytime.

Related Issues (20)

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.