I have a Java application that uses some Apache common libraries (Apache 2.0 license).

I wanted to distribute it as a single fat jar (maven builds a single jar with dependencies packaged in a single jar) with my classes along with the OSS classes.

Are there any issues in doing so?

1 Answer 1


As long as you preserve the NOTICE file(s) when distributing your binary, what you're doing is OK per the Apache License.

For instance, this is the NOTICE file for the current Commons Lang. You would need to ensure its contents are available to the consumer.

  • FWIW, There are possibly some caveats though beyond Apache-licensed code: there is no such thing as static linking in Java, but what if you have included a modified LGPL-licensed library? in this case this is IMHO akin to static linking and the corresponding LGPL terms would kick in. Another question is if a fat jar repacking is considered a modification or not. Oct 26, 2017 at 10:28
  • While that's a fair point, the question at hand is specific to an Apache licensed project.
    – John Ament
    Oct 26, 2017 at 17:31
  • exactly, hence why I upvoted you and only added a comment Oct 26, 2017 at 20:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.