license-maven-plugin icon indicating copy to clipboard operation
license-maven-plugin copied to clipboard

Allow splitting of licenses

Open reitzmichnicht opened this issue 6 years ago • 3 comments

Projects often declare 2 different licences as single license.

For Example: CDDL+GPLv2

Would be great to merge this to 2 different licenses.

Currently I have

<licenseMerge>Common Development and Distribution License, Version 1.0) (GNU General Public License, Version 2 with the Classpath Exception|
                COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) plus GPL|
                CDDL/GPLv2+CE|
                CDDL or GPLv2 with exceptions|
                CDDL+GPLv2|
                CDDL+GPL|
                CDDL+GPL License|
                CDDL + GPLv2 with classpath exception
              </licenseMerge>

But I need this which is not allowed:

            <licenseMerge>Common Development and Distribution License, Version 1.0|
               COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) plus GPL|
               CDDL/GPLv2+CE|
               CDDL or GPLv2 with exceptions|
               CDDL+GPLv2|
               CDDL+GPL|
               CDDL+GPL License|
               CDDL + GPLv2 with classpath exception
             </licenseMerge>
             <licenseMerge>GNU General Public License, Version 2 with the Classpath Exception|
               COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) plus GPL|
               CDDL/GPLv2+CE|
               CDDL or GPLv2 with exceptions|
               CDDL+GPLv2|
               CDDL+GPL|
               CDDL+GPL License|
               CDDL + GPLv2 with classpath exception
             </licenseMerge>

reitzmichnicht avatar Jun 05 '18 13:06 reitzmichnicht

Please explain better (1) sum up the current behavior (2) what is wrong with the current behavior and (3) what is the expected behavior

ppalaga avatar Jan 04 '19 13:01 ppalaga

Which goals are affected?

ppalaga avatar Jan 04 '19 13:01 ppalaga

Often the license information in the pom.xml looks like this:

    <licenses>
        <license>
            <name>CDDL + GPLv2 with classpath exception</name>
            <url>http://glassfish.java.net/nonav/public/CDDL+GPL.html</url>
            <distribution>repo</distribution>
            <comments>A business-friendly OSS license</comments>
        </license>
    </licenses>

When running the goal license:aggregate-add-third-party for example it is not possible to configure 2 license merges for the same string as described above. That makes it hard to maintain blacklists.

Kind regards, Michael

reitzmichnicht avatar Jan 04 '19 20:01 reitzmichnicht