Return-Path: X-Original-To: apmail-creadur-dev-archive@www.apache.org Delivered-To: apmail-creadur-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC63111C11 for ; Wed, 17 Sep 2014 01:39:38 +0000 (UTC) Received: (qmail 78643 invoked by uid 500); 17 Sep 2014 01:39:38 -0000 Delivered-To: apmail-creadur-dev-archive@creadur.apache.org Received: (qmail 78607 invoked by uid 500); 17 Sep 2014 01:39:38 -0000 Mailing-List: contact dev-help@creadur.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@creadur.apache.org Delivered-To: mailing list dev@creadur.apache.org Received: (qmail 78592 invoked by uid 99); 17 Sep 2014 01:39:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2014 01:39:38 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of solomax666@gmail.com designates 209.85.218.47 as permitted sender) Received: from [209.85.218.47] (HELO mail-oi0-f47.google.com) (209.85.218.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Sep 2014 01:39:08 +0000 Received: by mail-oi0-f47.google.com with SMTP id e131so389333oig.34 for ; Tue, 16 Sep 2014 18:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FzzMiHqgpyPeHatWJYH12kytRm9oRPJ6Pkobwjnx5gA=; b=kxjn/hOlKnx1qryrAqZBTGZL6YLKIUvSC0NiKSXosmqAZ4443cwtAm/n74ztYff/c+ YVo451EKeL5xsPrrkZ8MWfdY87BOO8q+QaH6ZqXsYtlu/edOYBCNOYzmiVuGGpggR30Z 1rR3/x0OytADlzrcSz3/Jm0BvT6+W66FOM4D3l2t8/x+2HXcjWx6RITL42YfCGCL68Jc XLfcDqGV7FkPKuPLQCnJZc6/xkvINeTPeclt+YRB5Sv5u3ZYYJRgJSf2G8OgHrJWe+Rz abdWVVumDoEF8JlCIaUTudWsdaBebO5CC++plOCAhJMTaLS2JewTEoFbYSeKHY4tWMmR kRZQ== MIME-Version: 1.0 X-Received: by 10.182.181.3 with SMTP id ds3mr38382461obc.11.1410917946628; Tue, 16 Sep 2014 18:39:06 -0700 (PDT) Received: by 10.182.152.98 with HTTP; Tue, 16 Sep 2014 18:39:06 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 Sep 2014 08:39:06 +0700 Message-ID: Subject: Re: Adding custom licenses From: Maxim Solodovnik To: dev@creadur.apache.org Content-Type: multipart/alternative; boundary=089e0118285604211c050338ef5a X-Virus-Checked: Checked by ClamAV on apache.org --089e0118285604211c050338ef5a Content-Type: text/plain; charset=UTF-8 I was using in ant can't find similar tag in maven ... :( 0.10 in maven behave the same way as 0.11 I was using report ant target, and was interpreting "no unknown licenses" as succes this is why it works for me Thanks for investigation :) On 17 September 2014 08:09, Maxim Solodovnik wrote: > We are using rat 0.10 in our ant build > Will check if maven plugin 0.10 works > > On 17 September 2014 07:28, sebb wrote: > >> On 16 September 2014 14:08, Maxim Solodovnik >> wrote: >> > actually it works in ant >> > https://svn.apache.org/repos/asf/openmeetings/branches/3.0.x/build.xml >> > (search for report_rat) >> >> Are you sure? >> >> I could not get it to work with Ant using 0.11 nor using current trunk. >> It behaved the same as Maven, i.e. one cannot merge new license >> families into the default approved list >> >> And as far as I can tell, the code that defines the approved licenses >> is shared between Ant and Maven so it's not surprising that they >> behave the same. >> >> > was hoping to get similar functionality with maven >> > >> > On 16 September 2014 19:26, Maxim Solodovnik >> wrote: >> > >> >> Yes, In addition to default ones >> >> >> >> On 16 September 2014 19:12, sebb wrote: >> >> >> >>> So the issue is that you want to be able to mark the new licenses as >> >>> approved - is that correct? >> >>> >> >>> On 16 September 2014 12:20, Maxim Solodovnik >> >>> wrote: >> >>> > I get report like this (some lines are omitted): >> >>> > >> >>> > 0 Unknown Licenses >> >>> > >> >>> > ******************************* >> >>> > >> >>> > Unapproved licenses: >> >>> > >> >>> > >> >>> > >> >>> >> /home/solomax/work/openmeetings/trunk/singlewebapp/openmeetings-web/src/main/webapp/js/jquery.ui.menubar.js >> >>> > >> >>> > >> >>> >> /home/solomax/work/openmeetings/trunk/singlewebapp/openmeetings-web/src/main/webapp/css/theme_om/jquery-ui-1.10.4.custom.css >> >>> > >> >>> > >> >>> >> /home/solomax/work/openmeetings/trunk/singlewebapp/openmeetings-web/src/main/webapp/css/jquery.ui.menubar.css >> >>> > >> >>> > ***************************************************** >> >>> > Files with Apache License headers will be marked AL >> >>> > Binary files (which do not require AL headers) will be marked B >> >>> > Compressed archives will be marked A >> >>> > Notices, licenses etc will be marked N >> >>> > AL >> >>> > >> >>> >> /home/solomax/work/openmeetings/trunk/singlewebapp/openmeetings-web/src/main/webapp/upload/library.xsd >> >>> > AL >> >>> > >> >>> >> /home/solomax/work/openmeetings/trunk/singlewebapp/openmeetings-web/src/main/webapp/upload/library.xml >> >>> > B >> >>> > >> >>> >> /home/solomax/work/openmeetings/trunk/singlewebapp/openmeetings-web/src/main/webapp/default/_big_profile_pic.jpg >> >>> > ...................................... >> >>> > !MIT+GPL >> >>> > >> >>> >> /home/solomax/work/openmeetings/trunk/singlewebapp/openmeetings-web/src/main/webapp/js/jquery.ui.menubar.js >> >>> > ...................................... >> >>> > !MIT >> >>> > >> >>> >> /home/solomax/work/openmeetings/trunk/singlewebapp/openmeetings-web/src/main/webapp/css/theme_om/jquery-ui-1.10.4.custom.css >> >>> > ...................................... >> >>> > !MIT+GPL >> >>> > >> >>> >> /home/solomax/work/openmeetings/trunk/singlewebapp/openmeetings-web/src/main/webapp/css/jquery.ui.menubar.css >> >>> > ...................................... >> >>> > >> >>> > >> >>> > On 16 September 2014 18:01, sebb wrote: >> >>> > >> >>> >> On 16 September 2014 08:04, Maxim Solodovnik > > >> >>> wrote: >> >>> >> > Hello All, >> >>> >> > >> >>> >> > Sorry for the long email :( >> >>> >> > >> >>> >> > Today I added apache-rat-plugin (0.11) to our maven build ( >> >>> >> > openmeetings.apache.org project) >> >>> >> > We have couple of jQuery files in our sources licensed under MIT >> and >> >>> >> > MIT+GPL and not recognized by apache-rat-plugin. >> >>> >> > So I have added custom licences: >> >>> >> > >> >>> >> > > >>> >> > >> >>> >> >> >>> >> implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense"> >> >>> >> > MIT+GPL >> >>> >> > MIT and GPL v2 >> >>> >> > >> >>> >> > >> >>> >> > Dual licensed under the MIT or GPL Version 2 >> >>> licenses. >> >>> >> > >> >>> >> > >> >>> >> > > >>> >> > >> >>> >> >> >>> >> implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense"> >> >>> >> > MIT >> >>> >> > MIT >> >>> >> > >> >>> >> > >> >>> >> > Licensed MIT >> >>> >> > >> >>> >> > >> >>> >> > >> >>> >> >> >>> >> OK >> >>> >> >> >>> >> > >> >>> >> > > >>> >> implementation="org.apache.rat.license.SimpleLicenseFamily"> >> >>> >> > MIT and GPL v2 >> >>> >> > >> >>> >> > > >>> >> implementation="org.apache.rat.license.SimpleLicenseFamily"> >> >>> >> > MIT >> >>> >> > >> >>> >> > >> >>> >> >> >>> >> What happens if you omit the section? >> >>> >> >> >>> >> > Unfortunately after that Apache licensed files are not approved >> any >> >>> more >> >>> >> > ******************************* >> >>> >> > >> >>> >> > Unapproved licenses: >> >>> >> > >> >>> >> > pom.xml >> >>> >> > >> >>> >> > ******************************* >> >>> >> > >> >>> >> > Archives: >> >>> >> > >> >>> >> > ***************************************************** >> >>> >> > Files with Apache License headers will be marked AL >> >>> >> > Binary files (which do not require AL headers) will be marked B >> >>> >> > Compressed archives will be marked A >> >>> >> > Notices, licenses etc will be marked N >> >>> >> > !AL pom.xml >> >>> >> > N CHANGELOG >> >>> >> > N NOTICE >> >>> >> > N README >> >>> >> > N LICENSE >> >>> >> > >> >>> >> > >> >>> >> > adding >> >>> >> > true >> >>> >> > also doesn't help >> >>> >> > >> >>> >> > Is there any option to add licences to default ones? >> >>> >> > >> >>> >> > Thanks in advance >> >>> >> > >> >>> >> > -- >> >>> >> > WBR >> >>> >> > Maxim aka solomax >> >>> >> >> >>> > >> >>> > >> >>> > >> >>> > -- >> >>> > WBR >> >>> > Maxim aka solomax >> >>> >> >> >> >> >> >> >> >> -- >> >> WBR >> >> Maxim aka solomax >> >> >> > >> > >> > >> > -- >> > WBR >> > Maxim aka solomax >> > > > > -- > WBR > Maxim aka solomax > -- WBR Maxim aka solomax --089e0118285604211c050338ef5a--