Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm producing a binary distributable for my Java project. I'm releasing it in two ways:

  1. Maven Central

  2. Zipped distributable on Google code

My project is licensed under the Apache 2.0 license. I use a small number of third-party parties, one of which is MIT licensed. I believe it's my obligation to make users of my project aware of the license contents, based on the following text from the license:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

How am I best to reference this within my source and my distributables? I'm currently thinking:

  1. My source files needn't reference anything. They just include my Apache 2.0 boilerplate notice.

  2. I add a LICENSE.txt file at the root of my project including the Apache 2.0 license text.

  3. For my zipped distributable, I need to also add something that indicates a component is MIT licensed. Perhaps a NOTICE file?

  4. For my Maven Central distribution, I needn't do anything as my artifact just declares its dependencies, but doesn't actually include them.

Does this seem like a valid plan? If so, can anyone advise how to accomplish point 3.

share|improve this question

Try the following Maven plugins or

share|improve this answer
Thanks for the links. I'm using the Codehaus plugin already to gather some of the licence texts. My question was more aimed at the "normal" way to collate these licenses and announce their presence to software users. – Duncan Feb 5 '13 at 17:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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