1

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?

2

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. – Philippe Ombredanne Oct 26 '17 at 10:28
  • While that's a fair point, the question at hand is specific to an Apache licensed project. – John Ament Oct 26 '17 at 17:31
  • exactly, hence why I upvoted you and only added a comment – Philippe Ombredanne Oct 26 '17 at 20:47

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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