Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8201651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:53:26+00:00 2026-06-07T06:53:26+00:00

There are two main approaches when developing an OSGi application with Maven: POM-first and

  • 0

There are two main approaches when developing an OSGi application with Maven: POM-first and MANIFEST first.

I’m looking for an answer that is in a form of a table that shows pros and cons of each method.

To be more specific, I would also like to know how it relates to:

  • Maturity of toolset
  • Vendor independence
  • Development ease (which includes finding people who can do the development on the tooling)
  • Compatibility
  • Avoiding ClassNotFound
  • Avoiding manual work
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T06:53:27+00:00Added an answer on June 7, 2026 at 6:53 am

    At present this is what I can come up with

    POM-First Pros (using maven-bundle-plugin)

    • Leverages existing Maven skills, repositories and tooling.
    • Likely easier to find people who know how to manage pom.xml rather than MANIFEST.MF along with pom.xml
    • Most of the information in MANIFEST.MF can be obtained from the pom.xml itself.
    • Can work with other IDEs not just Eclipse based ones.
    • Less invasive, just add the single plugin and change the packaging type to “bundle”

    POM-First Cons

    • ClassNotFoundException more likely to occur at runtime. However, this can be mitigated using pax-exam (although it is very complicated to set up).
    • Still need to understand how the MANIFEST is setup to make sure the instructions configuration element is set correctly.

    MANIFEST-first Pros (using tycho-maven-plugin)

    • Seems to be the recommended approach, or at least talked about as the recommended approach, but I can’t really see why it has significant benefit. (Hence why this question was asked).
    • Good for developing Eclipse plugins and integrates well with PDE
    • Provides tooling for testing thus allowing ClassNotFoundException to appear during JUnit testing rather than runtime.

    MANIFEST-first Cons

    • Seems to only work well on Eclipse based IDEs. You don’t have to use Eclipse, but without the PDE would you want to?
    • Violates DRY principles since I have to do put keep the names and versions from the POM and MANIFEST.MF in sync.
    • Need to name things in a specific fashion
    • You cannot mix, meaning existing Maven multi-project installations cannot just tack on OSGi support
    • A lot more configuration compared to maven-bundle-plugin is needed to get less warnings: http://wiki.eclipse.org/Tycho/Reference_Card#Examplary_parent_POM
    • Have to make test cases a separate project. It won’t run when built in src/test/java.
    • Seems that it will only test classes that are exposed, in other words those in “.internal.” is not testable.

    If I were asked for a recommendation for an enterprise that is using Maven already and want to move to OSGi then it would be POM first

    If I were asked for a recommendation for someone who is doing Eclipse plugin development, then it is Manifest first — with tycho

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my application two frame is there. In main frame Server button is there.
I've noticed that there seem to be two approaches to linking: a flat and
I have a main form that users fill out, and at the bottom there
I have read a document that they say: In java there two types of
When using flags in Java, I have seen two main approaches. One uses int
To get an application installed on a new computer there seems to be two
What are the main diffrences between these two implementations of LDAP protocol? Which is
I have my main stage, and I have two objects (blocks), these two objects
There are two intents on the receiver side which are called from the same
There are two table s : one is the master and one the detail

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.