How to fix build failure Check License Headers (by RAT) (Maven

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

How to fix build failure Check License Headers (by RAT) (Maven

kcheng.mvp
I got below error in the TC, how to fix such issue?

[12:27:35]Step 4/8: Check License Headers (by RAT) (Maven) (7s)
[12:27:41][Step 4/8] org.apache.ignite:ignite-platform
[12:27:41][org.apache.ignite:ignite-platform] Failed to execute goal
org.apache.rat:apache-rat-plugin:0.11:check (default) on project
ignite-platform: Too many files with unapproved license: 1 See RAT report
in:
/home/teamcity/agent/work/cf2353597844dbf3/modules/platform/target/rat.txt
[12:27:43][Step 4/8] Step Check License Headers (by RAT) (Maven) failed
[12:27:43]Step 7/8: Build and run tests (Maven)
[12:27:44][Step 7/8] Step Build and run tests (Maven) failed



Thanks,
kcheng
Reply | Threaded
Open this post in threaded view
|

Re: How to fix build failure Check License Headers (by RAT) (Maven

Branko Čibej
On 27.08.2015 17:56, Ken Cheng wrote:

> I got below error in the TC, how to fix such issue?
>
> [12:27:35]Step 4/8: Check License Headers (by RAT) (Maven) (7s)
> [12:27:41][Step 4/8] org.apache.ignite:ignite-platform
> [12:27:41][org.apache.ignite:ignite-platform] Failed to execute goal
> org.apache.rat:apache-rat-plugin:0.11:check (default) on project
> ignite-platform: Too many files with unapproved license: 1 See RAT report
> in:
> /home/teamcity/agent/work/cf2353597844dbf3/modules/platform/target/rat.txt
> [12:27:43][Step 4/8] Step Check License Headers (by RAT) (Maven) failed
> [12:27:43]Step 7/8: Build and run tests (Maven)
> [12:27:44][Step 7/8] Step Build and run tests (Maven) failed

Did you add a new file without the required license header?

-- Brane

Reply | Threaded
Open this post in threaded view
|

Re: How to fix build failure Check License Headers (by RAT) (Maven

kcheng.mvp
No,

here is my PR

https://github.com/apache/ignite/pull/35/files

Thanks,
kcheng

On Fri, Aug 28, 2015 at 12:00 AM, Branko Čibej <[hidden email]> wrote:

> On 27.08.2015 17:56, Ken Cheng wrote:
> > I got below error in the TC, how to fix such issue?
> >
> > [12:27:35]Step 4/8: Check License Headers (by RAT) (Maven) (7s)
> > [12:27:41][Step 4/8] org.apache.ignite:ignite-platform
> > [12:27:41][org.apache.ignite:ignite-platform] Failed to execute goal
> > org.apache.rat:apache-rat-plugin:0.11:check (default) on project
> > ignite-platform: Too many files with unapproved license: 1 See RAT report
> > in:
> >
> /home/teamcity/agent/work/cf2353597844dbf3/modules/platform/target/rat.txt
> > [12:27:43][Step 4/8] Step Check License Headers (by RAT) (Maven) failed
> > [12:27:43]Step 7/8: Build and run tests (Maven)
> > [12:27:44][Step 7/8] Step Build and run tests (Maven) failed
>
> Did you add a new file without the required license header?
>
> -- Brane
>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to fix build failure Check License Headers (by RAT) (Maven

Artem Shutak
Just run RAT locally by

mvn clean validate -Pcheck-licenses

and see RAT report.

-- Artem --

On Thu, Aug 27, 2015 at 7:01 PM, Ken Cheng <[hidden email]> wrote:

> No,
>
> here is my PR
>
> https://github.com/apache/ignite/pull/35/files
>
> Thanks,
> kcheng
>
> On Fri, Aug 28, 2015 at 12:00 AM, Branko Čibej <[hidden email]> wrote:
>
> > On 27.08.2015 17:56, Ken Cheng wrote:
> > > I got below error in the TC, how to fix such issue?
> > >
> > > [12:27:35]Step 4/8: Check License Headers (by RAT) (Maven) (7s)
> > > [12:27:41][Step 4/8] org.apache.ignite:ignite-platform
> > > [12:27:41][org.apache.ignite:ignite-platform] Failed to execute goal
> > > org.apache.rat:apache-rat-plugin:0.11:check (default) on project
> > > ignite-platform: Too many files with unapproved license: 1 See RAT
> report
> > > in:
> > >
> >
> /home/teamcity/agent/work/cf2353597844dbf3/modules/platform/target/rat.txt
> > > [12:27:43][Step 4/8] Step Check License Headers (by RAT) (Maven) failed
> > > [12:27:43]Step 7/8: Build and run tests (Maven)
> > > [12:27:44][Step 7/8] Step Build and run tests (Maven) failed
> >
> > Did you add a new file without the required license header?
> >
> > -- Brane
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: How to fix build failure Check License Headers (by RAT) (Maven

kcheng.mvp
Summary
-------
Generated at: 2015-08-28T00:09:54+08:00
Notes: 0
Binaries: 0
Archives: 0
Standards: 41

Apache Licensed: 0
Generated Documents: 0

JavaDocs are generated and so license header is optional
Generated files do not required license headers

1 Unknown Licenses

*******************************

Unapproved licenses:


/Users/kcheng/sandbox/ignite/modules/platform/src/main/dotnet/Apache.Ignite.sln.DotSettings

*******************************

actually this is file is not in my checkin list and the content of this
file is :


<wpf:ResourceDictionary xml:space="preserve" xmlns:x="
http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="clr-namespace:System;assembly=mscorlib"
xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="
http://schemas.microsoft.com/winfx/2006/xaml/presentation">
        <s:Boolean
x:Key="/Default/CodeStyle/CSharpUsing/AddImportsToDeepestScope/@EntryValue">True</s:Boolean>

        <s:Boolean
x:Key="/Default/CodeStyle/CSharpUsing/QualifiedUsingAtNestedScope/@EntryValue">True</s:Boolean></wpf:ResourceDictionary>

Thanks,
kcheng

On Fri, Aug 28, 2015 at 12:07 AM, Artem Shutak <[hidden email]> wrote:

> Just run RAT locally by
>
> mvn clean validate -Pcheck-licenses
>
> and see RAT report.
>
> -- Artem --
>
> On Thu, Aug 27, 2015 at 7:01 PM, Ken Cheng <[hidden email]> wrote:
>
> > No,
> >
> > here is my PR
> >
> > https://github.com/apache/ignite/pull/35/files
> >
> > Thanks,
> > kcheng
> >
> > On Fri, Aug 28, 2015 at 12:00 AM, Branko Čibej <[hidden email]> wrote:
> >
> > > On 27.08.2015 17:56, Ken Cheng wrote:
> > > > I got below error in the TC, how to fix such issue?
> > > >
> > > > [12:27:35]Step 4/8: Check License Headers (by RAT) (Maven) (7s)
> > > > [12:27:41][Step 4/8] org.apache.ignite:ignite-platform
> > > > [12:27:41][org.apache.ignite:ignite-platform] Failed to execute goal
> > > > org.apache.rat:apache-rat-plugin:0.11:check (default) on project
> > > > ignite-platform: Too many files with unapproved license: 1 See RAT
> > report
> > > > in:
> > > >
> > >
> >
> /home/teamcity/agent/work/cf2353597844dbf3/modules/platform/target/rat.txt
> > > > [12:27:43][Step 4/8] Step Check License Headers (by RAT) (Maven)
> failed
> > > > [12:27:43]Step 7/8: Build and run tests (Maven)
> > > > [12:27:44][Step 7/8] Step Build and run tests (Maven) failed
> > >
> > > Did you add a new file without the required license header?
> > >
> > > -- Brane
> > >
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: How to fix build failure Check License Headers (by RAT) (Maven

kcheng.mvp
here is Rat report.

By the way, this is my first checkin for Ignite.

Thanks,
kcheng

On Fri, Aug 28, 2015 at 12:13 AM, Ken Cheng <[hidden email]> wrote:
Summary
-------
Generated at: 2015-08-28T00:09:54+08:00
Notes: 0
Binaries: 0
Archives: 0
Standards: 41

Apache Licensed: 0
Generated Documents: 0

JavaDocs are generated and so license header is optional
Generated files do not required license headers

1 Unknown Licenses

*******************************

Unapproved licenses:

  /Users/kcheng/sandbox/ignite/modules/platform/src/main/dotnet/Apache.Ignite.sln.DotSettings

*******************************

actually this is file is not in my checkin list and the content of this file is :


<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
        <s:Boolean x:Key="/Default/CodeStyle/CSharpUsing/AddImportsToDeepestScope/@EntryValue">True</s:Boolean>

        <s:Boolean x:Key="/Default/CodeStyle/CSharpUsing/QualifiedUsingAtNestedScope/@EntryValue">True</s:Boolean></wpf:ResourceDictionary>

Thanks,
kcheng

On Fri, Aug 28, 2015 at 12:07 AM, Artem Shutak <[hidden email]> wrote:
Just run RAT locally by

mvn clean validate -Pcheck-licenses

and see RAT report.

-- Artem --

On Thu, Aug 27, 2015 at 7:01 PM, Ken Cheng <[hidden email]> wrote:

> No,
>
> here is my PR
>
> https://github.com/apache/ignite/pull/35/files
>
> Thanks,
> kcheng
>
> On Fri, Aug 28, 2015 at 12:00 AM, Branko Čibej <[hidden email]> wrote:
>
> > On <a href="tel:27.08.2015%2017" value="+12708201517" target="_blank">27.08.2015 17:56, Ken Cheng wrote:
> > > I got below error in the TC, how to fix such issue?
> > >
> > > [12:27:35]Step 4/8: Check License Headers (by RAT) (Maven) (7s)
> > > [12:27:41][Step 4/8] org.apache.ignite:ignite-platform
> > > [12:27:41][org.apache.ignite:ignite-platform] Failed to execute goal
> > > org.apache.rat:apache-rat-plugin:0.11:check (default) on project
> > > ignite-platform: Too many files with unapproved license: 1 See RAT
> report
> > > in:
> > >
> >
> /home/teamcity/agent/work/cf2353597844dbf3/modules/platform/target/rat.txt
> > > [12:27:43][Step 4/8] Step Check License Headers (by RAT) (Maven) failed
> > > [12:27:43]Step 7/8: Build and run tests (Maven)
> > > [12:27:44][Step 7/8] Step Build and run tests (Maven) failed
> >
> > Did you add a new file without the required license header?
> >
> > -- Brane
> >
> >
>



rat.txt (9K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to fix build failure Check License Headers (by RAT) (Maven

Branko Čibej
In reply to this post by kcheng.mvp
On 27.08.2015 18:13, Ken Cheng wrote:

> Summary
> -------
> Generated at: 2015-08-28T00:09:54+08:00
> Notes: 0
> Binaries: 0
> Archives: 0
> Standards: 41
>
> Apache Licensed: 0
> Generated Documents: 0
>
> JavaDocs are generated and so license header is optional
> Generated files do not required license headers
>
> 1 Unknown Licenses
>
> *******************************
>
> Unapproved licenses:
>
>
> /Users/kcheng/sandbox/ignite/modules/platform/src/main/dotnet/Apache.Ignite.sln.DotSettings



Ah, that would be a side-effect of the new .net/C++ code import. The RAT
exclusion list needs to be updated.

-- Brane
Reply | Threaded
Open this post in threaded view
|

Re: How to fix build failure Check License Headers (by RAT) (Maven

kcheng.mvp
Who can help to add the new .net/C++ code to the exclusion list?

Thanks,
kcheng

On Fri, Aug 28, 2015 at 12:22 AM, Branko Čibej <[hidden email]> wrote:

> On 27.08.2015 18:13, Ken Cheng wrote:
> > Summary
> > -------
> > Generated at: 2015-08-28T00:09:54+08:00
> > Notes: 0
> > Binaries: 0
> > Archives: 0
> > Standards: 41
> >
> > Apache Licensed: 0
> > Generated Documents: 0
> >
> > JavaDocs are generated and so license header is optional
> > Generated files do not required license headers
> >
> > 1 Unknown Licenses
> >
> > *******************************
> >
> > Unapproved licenses:
> >
> >
> >
> /Users/kcheng/sandbox/ignite/modules/platform/src/main/dotnet/Apache.Ignite.sln.DotSettings
>
>
>
> Ah, that would be a side-effect of the new .net/C++ code import. The RAT
> exclusion list needs to be updated.
>
> -- Brane
>
Reply | Threaded
Open this post in threaded view
|

Re: How to fix build failure Check License Headers (by RAT) (Maven

Artem Shutak
Ken,

See check-licenses profile at parent/pom.xml.

But I don't understand, why you see this exception as long as you didn't
add new files. Can you merge to you dev-branch last version of master and
check again?

-- Artem --

On Thu, Aug 27, 2015 at 7:39 PM, Ken Cheng <[hidden email]> wrote:

> Who can help to add the new .net/C++ code to the exclusion list?
>
> Thanks,
> kcheng
>
> On Fri, Aug 28, 2015 at 12:22 AM, Branko Čibej <[hidden email]> wrote:
>
> > On 27.08.2015 18:13, Ken Cheng wrote:
> > > Summary
> > > -------
> > > Generated at: 2015-08-28T00:09:54+08:00
> > > Notes: 0
> > > Binaries: 0
> > > Archives: 0
> > > Standards: 41
> > >
> > > Apache Licensed: 0
> > > Generated Documents: 0
> > >
> > > JavaDocs are generated and so license header is optional
> > > Generated files do not required license headers
> > >
> > > 1 Unknown Licenses
> > >
> > > *******************************
> > >
> > > Unapproved licenses:
> > >
> > >
> > >
> >
> /Users/kcheng/sandbox/ignite/modules/platform/src/main/dotnet/Apache.Ignite.sln.DotSettings
> >
> >
> >
> > Ah, that would be a side-effect of the new .net/C++ code import. The RAT
> > exclusion list needs to be updated.
> >
> > -- Brane
> >
>