[ 
https://issues.apache.org/jira/browse/RAT-343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17805199#comment-17805199
 ] 

Gary D. Gregory commented on RAT-343:
-------------------------------------

So what is the solution with 0.16 if there is one? My 0.15 configuration does 
not work:

{code:xml}
        <configuration>
          <licenses>
            <license 
implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
              <licenseFamilyCategory>MyCustomString</licenseFamilyCategory>
              <licenseFamilyName>My Custom String</licenseFamilyName>
              <notes />
              <patterns>
                <pattern>${my.property1}</pattern>
                <pattern>${my.property2}</pattern>
              </patterns>
            </license>
          </licenses>
          <licenseFamilies>
            <licenseFamily 
implementation="org.apache.rat.license.SimpleLicenseFamily">
              <familyName>My Custom String</familyName>
            </licenseFamily>
          </licenseFamilies>
{code} 
If I remove the element {{licenseFamilies}}, then I get 
{{java.lang.ClassNotFoundException: 
org.apache.rat.analysis.license.SimplePatternBasedLicense}}

> Custom licensenses not working in contrast to v0.15
> ---------------------------------------------------
>
>                 Key: RAT-343
>                 URL: https://issues.apache.org/jira/browse/RAT-343
>             Project: Apache Rat
>          Issue Type: Bug
>          Components: license-meta-data, scan, site
>    Affects Versions: 0.16
>            Reporter: Philipp Ottlinger
>            Priority: Major
>
> Due to the changes introduced in 0.16 projects with custom license 
> definitions do not seem to work anymore as reported by [~solomax] with 
> OpenMeetings:
> [https://github.com/apache/openmeetings/blob/master/pom.xml#L1393]
> Verify that the documentation provided in 
> [https://creadur.apache.org/rat/apache-rat-plugin/examples/custom-license.html]
> is correct and ideally add an example usage to 
> [CreadurExamples|https://github.com/ottlinger/creadur-rat-examples] to 
> prevent future regressions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to