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 1BD7B101F6 for ; Tue, 7 May 2013 20:21:21 +0000 (UTC) Received: (qmail 47934 invoked by uid 500); 7 May 2013 20:21:21 -0000 Delivered-To: apmail-creadur-dev-archive@creadur.apache.org Received: (qmail 47861 invoked by uid 500); 7 May 2013 20:21:20 -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 47847 invoked by uid 99); 7 May 2013 20:21:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 20:21:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of robertburrelldonkin@blueyonder.co.uk designates 81.103.221.48 as permitted sender) Received: from [81.103.221.48] (HELO mtaout02-winn.ispmail.ntl.com) (81.103.221.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 20:21:15 +0000 Received: from know-smtpout-1.server.virginmedia.net ([62.254.123.2]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20130507202053.CCZE23282.mtaout02-winn.ispmail.ntl.com@know-smtpout-1.server.virginmedia.net> for ; Tue, 7 May 2013 21:20:53 +0100 Received: from [82.41.107.157] (helo=[10.0.0.88]) by know-smtpout-1.server.virginmedia.net with esmtpa (Exim 4.63) (envelope-from ) id 1UZoMQ-00070K-RN for dev@creadur.apache.org; Tue, 07 May 2013 21:19:42 +0100 Message-ID: <518961DE.6050009@blueyonder.co.uk> Date: Tue, 07 May 2013 21:19:42 +0100 From: Robert Burrell Donkin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130412 Thunderbird/17.0.5 MIME-Version: 1.0 To: dev@creadur.apache.org Subject: Re: RAT maven plugin: exclude not working References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Cloudmark-Analysis: v=1.1 cv=AUhbpHVS+xhHrj9wLCYAQoYnFLYUZdbP8UM0GmH2jwk= c=1 sm=0 a=wf2twbrmTfYA:10 a=YWu0BbmnXnoA:10 a=3NElcqgl2aoA:10 a=IkcTkHD0fZMA:10 a=mV9VRH-2AAAA:8 a=SSmOFEACAAAA:8 a=fGO4tVQLAAAA:8 a=xJyJ1Ei13dXBKKTxggAA:9 a=QEXdDO2ut3YA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-Virus-Checked: Checked by ClamAV on apache.org On 05/04/13 16:10, Erik-Lân Do Dinh wrote: > Hello devs, Hi Erik > since I didn’t find a user mailing list, I’m trying this one – apologies > if this is the wrong place. We don't have a user list, so this is definitely the right place :-) > I have problems excluding files from the license header check. As an > example I set up a new maven project. The only files included are the > pom and file_which_should_be_excluded.txt file with dummy content. > The pom looks like this: > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd"> > 4.0.0 > org.example > rat-test > 0.0.1-SNAPSHOT > > > > org.apache.rat > apache-rat-plugin > 0.10-SNAPSHOT > > > > file_which_should_be_excluded.txt > *.txt > pom.xml > > > > > > > > To my understanding, there are no files left to check, but mvn rat:check > fails with: > [ERROR] Failed to execute goal > org.codehaus.mojo:rat-maven-plugin:1.0-alpha-3:check (default-cli) on > project rat-test: Too many unapproved licenses: 0 -> [Help 1] > > The whole rat.txt is at http://pastebin.com/Gy44dGgC, I think the > relevant part is: > ***************************************************** > Summary > ------- > Notes: 0 > Binaries: 0 > Archives: 0 > Standards: 2 > > Apache Licensed: 0 > Generated Documents: 0 > > JavaDocs are generated and so license header is optional > Generated files do not required license headers > > 2 Unknown Licenses > > ******************************* > > Why is it 2 Unknown Licenses? Shouldn't that be 0 because I specifically > excluded the 2 files? Or did I understand something wrong about the > exclusion? I'm not sure, but if you are willing to contribute your test code to Apache and open a JIRA, I'll add an integration test based on this code and investigate the issue. Robert