Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to include org.eclipse.jgit packages in my plugin? Edited

For a plugin I'm developing, I need to use classes from package org.eclipse.jgit (e.g. RevWalk).

Few findings: 

  • There is no OSGi bundle that exports this package.
  • The OSGi bundle atlassian-bamboo-plugin-git uses this org.eclipse.jgit package, but doesn't export it.
  • The OSGi bundle atlassian-bamboo-plugin-git has the the  META-INF/lib/org.eclipse.jgit-3.5.3-atlassian-13.jar in the 'Bundle Classpath'. This jar contains the classes I need, but I'm not sure how useful this is for my plugin.

When I include this bamboo git bundle/package to my pom.xml file,


my code compiles just fine; it can find all the org.eclipse.jgit classes, (presumably because these are part of the git plugin?)

But then the problems start for me. I tried many different combinations of 'import-packages'. But it either errors during install that it can't find a bundle, or I'm getting a noClassDefFoundError.

Also added the org.eclipse.jgit as a separate dependency and compiled it with my plugin. Still errors during my install.

If anybody has successfully imported org.eclipse.jgit classes in their plugin (in combination with using the bamboo git plugin), I am very curious what the pom.xml settings are.

1 answer

Hi Wouter

Can remove from your pom entry


 If scope is provided then it does not include that library in package.

Please try it.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

215 views 4 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you