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

Can I license a program under Apache License 2.0, if it is using/including EclipseLink? (EclipseLink under Eclipse Public License or Eclipse Distribution License)

I did not change anything in EclipseLink. I would realy like to distribute a Version that includes the needed EclipseLink jars, so that it is working "out of the box".

share|improve this question

migrated from Dec 20 '12 at 23:02

This question came from our site for professional and enthusiast programmers.

For most things you might want to do, yes.

There are differences in the terms so that some situations could result in problems. As always, before you do anything like commercial use or annoying someone big and nasty get competent legal advice. The advice will probably be: don't do it.

Make sure you read the licences and do what they say you have to. EPL seems to require their copyright notice on your distribution, so do that. Full disclosure of what components you used and including copies of everyone's licence in your distribution should keep everyone happy.

share|improve this answer

I had the same problem at some point and what I do is to distribute the build configuration i.e. the Maven pom.xml. This way you distribute the source to something that will pull Eclipselink but not package or hardwire it within. Then the users are then bound to both licenses. In my case the users are also free to stay at Hibernate or simply JPA.

share|improve this answer

Your Answer


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