Hello Claude, On Thu, 11 Jan 2024 at 22:32, Claude Warren <[email protected]> wrote: > > Can you show me the output for the specific file in the run? Does the > output indicate that it has detected it as an MIT license?
I ran following command `mvn clean apache-rat:0.16:check -X` here is the filtered result: <skipped> DEBUG] 2 license families loaded from pom [DEBUG] Family: MIT MIT [DEBUG] Family: OM_CC CC BY 4.0 [DEBUG] 2 licenses loaded from pom [DEBUG] License: MIT:The MIT License [DEBUG] License: OM_CC:CC BY 4.0 <skipped> [DEBUG] The following 16 licenses are activated: [DEBUG] * AL:Apache License Version 2.0 [DEBUG] * ASL:Applied Apache License Version 2.0 [DEBUG] * BSD-3:BSD 3 clause [DEBUG] * CDDL1:COMMON DEVELOPMENT AND DISTRIBUTION LICENSE Version 1.0 [DEBUG] * DOJO:DOJO License [DEBUG] * GEN:Generated Files [DEBUG] * GPL1:GNU General Public License, version 1 [DEBUG] * GPL2:GNU General Public License, version 2 [DEBUG] * GPL3:GNU General Public License, version 3 [DEBUG] * ILLUMOS:ILLUMOS CDDL1 Derived license [DEBUG] * MIT:The MIT License [DEBUG] * OASIS:OASIS Open License [DEBUG] * OM_CC:CC BY 4.0 [DEBUG] * TMF:The Telemanagement Forum License [DEBUG] * W3C:W3C Software Copyright [DEBUG] * W3CD:W3C Document Copyright <skipped> As a result custom licenses are not recognized working config can be found here: https://github.com/apache/openmeetings/blob/master/pom.xml#L1394 (As you can see license family name was changed to be OM_MIT) p.s. non-deprecated config is currently commented out due to it's performance is terrible :( "20:28 min" instead of "1.419 s" for version 0.15 ..... > > On Thu, Jan 11, 2024 at 11:33 AM Maxim Solodovnik (Jira) <[email protected]> > wrote: > > > > > [ > > https://issues.apache.org/jira/browse/RAT-343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17805493#comment-17805493 > > ] > > > > Maxim Solodovnik commented on RAT-343: > > -------------------------------------- > > > > [~claude] I've tried to add following {{configuration}} > > > > {code} > > <licenses> > > <license> > > > > <family>MIT</family> > > <notes /> > > <any> > > > > <text>licensed under the MIT</text> > > </any> > > </license> > > </licenses> > > <families> > > <family> > > > > <id>MIT</id> > > > > <name>MIT</name> > > </family> > > </families> > > {code} > > > > We have source file with following header > > > > {code} > > /* > > * jQuery CSSEmoticons plugin 0.2.9 > > * > > * Copyright (c) 2010 Steve Schwartz (JangoSteve) > > * > > * Dual licensed under the MIT and GPL licenses: > > * http://www.opensource.org/licenses/mit-license.php > > * http://www.gnu.org/licenses/gpl.html > > * > > * Date: Sun Oct 22 1:00:00 2010 -0500 > > */ > > {code} > > > > The line {{licensed under the MIT}} is in file, but the file is reported > > as having unapproved license :((( > > > > What am I doing wrong? :) > > > > > 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) > > > > > -- > LinkedIn: http://www.linkedin.com/in/claudewarren -- Best regards, Maxim
