The License File

The License XML file defines which Licenses belong to which category.

Categories

Basically you have to define three categories in the Licenses file valid, warning and invalid.

<?xml version="1.0" encoding="UTF-8"?>
<licenses>
  <valid>
  ..
  </valid>
  <warning>
  ..
  </warning>
  <invalid>
  ..
  </invalid>
</licenses>

License definition

The first thing you should define is a name for the License which is only for description purposes. The second part is to define
the name for the License which is define the <name>..</name> part for the License
in the pom.xml file of an Maven artifact and the last thing is to define an URL for the License which will be defined by
the artifacts in the <url></url> part of the pom. It is not unusual that a
License is known under different names (e.g. the Apache License or The Apache Software License etc.) and/or different URL's.

  <license>
    <description>Apache Software License 2.0</description>
    <names>
      <name>Apache 2</name>
      <name>Apache Software License 2.0</name>
      <name>Apache Software License, Version 2.0</name>
      <name>The Apache Software License, Version 2.0</name>
    </names>
    <urls>
      <url>http://www.apache.org/licenses/LICENSE-2.0</url>
      <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <url>http://apache.org/licenses/LICENSE-2.0</url>
      <url>http://apache.org/licenses/LICENSE-2.0.html</url>
      <url>http://apache.org/licenses/LICENSE-2.0.txt</url>
    </urls>
  </license>

Also available in: HTML TXT