How does a Java package published on Maven documents the provenance (origin and license) of an open source project packaged and published in such a public repo?

In particular what can I do to document and how should I document my code when I am the author and publisher of a package?

And what if this is a package (possibly modified) that I have not authored but that I only publish as Maven Central Jar?


If I understand your question correctly, you can simple add this information to your POM file. The following is an example from the Maven POM reference.

    <name>Apache License, Version 2.0</name>
    <comments>A business-friendly OSS license</comments>

<project xmlns="http://maven.apache.org/POM/4.0.0"
    <name>Codehaus Mojo</name>

As for your last question, I'm not entirely sure what you're asking, but I would say point the URL to your fork.

  • Thanks. You mean point the url to your fork? which url? the license URL? – Philippe Ombredanne Feb 9 '17 at 14:50
  • The project URL @PhilippeOmbredanne – RubberDuck Feb 9 '17 at 15:20
  • If I can put more than one license <tags>, would this mean that all the licenses apply or that this is a choice of licenses? – Philippe Ombredanne Feb 9 '17 at 22:46
  • I assume that would mean you're dual licensing @PhilippeOmbredanne, but that is just an assumption. – RubberDuck Feb 9 '17 at 22:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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