You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "SuichII, Christopher" <Ch...@netapp.com> on 2014/03/20 17:52:04 UTC

4.4 and master failing due to missing license header

Hey all,

I’m unable to build on 4.4 and master with no changes made in either branch. It appears that there are some files which don’t meet the license header requirement. I don’t see one, but is there a profile for ignoring the check license plugin? Alternatively, does anyone know what files are offending or how to easily fix this?

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.076s
[INFO] Finished at: Thu Mar 20 12:48:27 EDT 2014
[INFO] Final Memory: 40M/96M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.5:check (cloudstack-checklicence) on project cloud-utils: Some files do not have the expected license header -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :cloud-utils

Thanks,
Chris
-- 
Chris Suich
chris.suich@netapp.com
NetApp Software Engineer
Data Center Platforms – Cloud Solutions
Citrix, Cisco & Red Hat


Re: 4.4 and master failing due to missing license header

Posted by Daan Hoogland <da...@gmail.com>.
as long as nothing in git is in it, no

On Thu, Mar 20, 2014 at 6:17 PM, SuichII, Christopher
<Ch...@netapp.com> wrote:
> Maybe I should add **/target-eclipse/** to the list of excludes for the license checking? Anyone have an objection?
>
> -Chris
> --
> Chris Suich
> chris.suich@netapp.com
> NetApp Software Engineer
> Data Center Platforms - Cloud Solutions
> Citrix, Cisco & Red Hat
>
> On Mar 20, 2014, at 1:08 PM, SuichII, Christopher <Ch...@netapp.com> wrote:
>
>> I tried running the command with -X. There is quite a bit of output, but this is what I was able to find:
>>
>> ...
>> [WARNING] Missing header in: /Users/csuich/CloudStack/cloudstack/utils/target-eclipse/test-classes/com/cloud/utils/db/transactionContextBuilderTest.xml
>> ...
>> [WARNING] Missing header in: /Users/csuich/CloudStack/cloudstack/utils/target-eclipse/test-classes/testContext.xml
>> ...
>> [WARNING] Missing header in: /Users/csuich/CloudStack/cloudstack/utils/target-eclipse/test-classes/log4j.xml
>> ...
>> [WARNING] Missing header in: /Users/csuich/CloudStack/cloudstack/utils/target-eclipse/test-classes/com/cloud/utils/QualifierTestContext.xml
>> ...
>>
>> So, it looks like the check license plugin is going after some xml that Eclipse generates. Should I be telling maven to ignore these somehow? When I run 'git status', it says my working directory is clean as the .gitignore is setup to ignore that stuff.
>>
>> -Chris
>> --
>> Chris Suich
>> chris.suich@netapp.com
>> NetApp Software Engineer
>> Data Center Platforms - Cloud Solutions
>> Citrix, Cisco & Red Hat
>>
>> On Mar 20, 2014, at 12:54 PM, Daan Hoogland <da...@gmail.com> wrote:
>>
>>> So the offending file is in utils. Doesn't it give info above the BUIL
>>> FAILURE line?
>>>
>>> On Thu, Mar 20, 2014 at 5:52 PM, SuichII, Christopher
>>> <Ch...@netapp.com> wrote:
>>>> Hey all,
>>>>
>>>> I'm unable to build on 4.4 and master with no changes made in either branch. It appears that there are some files which don't meet the license header requirement. I don't see one, but is there a profile for ignoring the check license plugin? Alternatively, does anyone know what files are offending or how to easily fix this?
>>>>
>>>> [INFO] ------------------------------------------------------------------------
>>>> [INFO] BUILD FAILURE
>>>> [INFO] ------------------------------------------------------------------------
>>>> [INFO] Total time: 14.076s
>>>> [INFO] Finished at: Thu Mar 20 12:48:27 EDT 2014
>>>> [INFO] Final Memory: 40M/96M
>>>> [INFO] ------------------------------------------------------------------------
>>>> [ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.5:check (cloudstack-checklicence) on project cloud-utils: Some files do not have the expected license header -> [Help 1]
>>>> [ERROR]
>>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
>>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>>> [ERROR]
>>>> [ERROR] For more information about the errors and possible solutions, please read the following articles:
>>>> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>>>> [ERROR]
>>>> [ERROR] After correcting the problems, you can resume the build with the command
>>>> [ERROR]   mvn <goals> -rf :cloud-utils
>>>>
>>>> Thanks,
>>>> Chris
>>>> --
>>>> Chris Suich
>>>> chris.suich@netapp.com
>>>> NetApp Software Engineer
>>>> Data Center Platforms - Cloud Solutions
>>>> Citrix, Cisco & Red Hat
>>>>
>>>
>>>
>>>
>>> --
>>> Daan
>>
>



-- 
Daan

Re: 4.4 and master failing due to missing license header

Posted by "SuichII, Christopher" <Ch...@netapp.com>.
Maybe I should add **/target-eclipse/** to the list of excludes for the license checking? Anyone have an objection?

-Chris
-- 
Chris Suich
chris.suich@netapp.com
NetApp Software Engineer
Data Center Platforms – Cloud Solutions
Citrix, Cisco & Red Hat

On Mar 20, 2014, at 1:08 PM, SuichII, Christopher <Ch...@netapp.com> wrote:

> I tried running the command with -X. There is quite a bit of output, but this is what I was able to find:
> 
> ...
> [WARNING] Missing header in: /Users/csuich/CloudStack/cloudstack/utils/target-eclipse/test-classes/com/cloud/utils/db/transactionContextBuilderTest.xml
> ...
> [WARNING] Missing header in: /Users/csuich/CloudStack/cloudstack/utils/target-eclipse/test-classes/testContext.xml
> ...
> [WARNING] Missing header in: /Users/csuich/CloudStack/cloudstack/utils/target-eclipse/test-classes/log4j.xml
> ...
> [WARNING] Missing header in: /Users/csuich/CloudStack/cloudstack/utils/target-eclipse/test-classes/com/cloud/utils/QualifierTestContext.xml
> …
> 
> So, it looks like the check license plugin is going after some xml that Eclipse generates. Should I be telling maven to ignore these somehow? When I run ‘git status’, it says my working directory is clean as the .gitignore is setup to ignore that stuff.
> 
> -Chris
> -- 
> Chris Suich
> chris.suich@netapp.com
> NetApp Software Engineer
> Data Center Platforms – Cloud Solutions
> Citrix, Cisco & Red Hat
> 
> On Mar 20, 2014, at 12:54 PM, Daan Hoogland <da...@gmail.com> wrote:
> 
>> So the offending file is in utils. Doesn't it give info above the BUIL
>> FAILURE line?
>> 
>> On Thu, Mar 20, 2014 at 5:52 PM, SuichII, Christopher
>> <Ch...@netapp.com> wrote:
>>> Hey all,
>>> 
>>> I'm unable to build on 4.4 and master with no changes made in either branch. It appears that there are some files which don't meet the license header requirement. I don't see one, but is there a profile for ignoring the check license plugin? Alternatively, does anyone know what files are offending or how to easily fix this?
>>> 
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] BUILD FAILURE
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] Total time: 14.076s
>>> [INFO] Finished at: Thu Mar 20 12:48:27 EDT 2014
>>> [INFO] Final Memory: 40M/96M
>>> [INFO] ------------------------------------------------------------------------
>>> [ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.5:check (cloudstack-checklicence) on project cloud-utils: Some files do not have the expected license header -> [Help 1]
>>> [ERROR]
>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> [ERROR]
>>> [ERROR] For more information about the errors and possible solutions, please read the following articles:
>>> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>>> [ERROR]
>>> [ERROR] After correcting the problems, you can resume the build with the command
>>> [ERROR]   mvn <goals> -rf :cloud-utils
>>> 
>>> Thanks,
>>> Chris
>>> --
>>> Chris Suich
>>> chris.suich@netapp.com
>>> NetApp Software Engineer
>>> Data Center Platforms - Cloud Solutions
>>> Citrix, Cisco & Red Hat
>>> 
>> 
>> 
>> 
>> -- 
>> Daan
> 


Re: 4.4 and master failing due to missing license header

Posted by "SuichII, Christopher" <Ch...@netapp.com>.
I tried running the command with -X. There is quite a bit of output, but this is what I was able to find:

...
[WARNING] Missing header in: /Users/csuich/CloudStack/cloudstack/utils/target-eclipse/test-classes/com/cloud/utils/db/transactionContextBuilderTest.xml
...
[WARNING] Missing header in: /Users/csuich/CloudStack/cloudstack/utils/target-eclipse/test-classes/testContext.xml
...
[WARNING] Missing header in: /Users/csuich/CloudStack/cloudstack/utils/target-eclipse/test-classes/log4j.xml
...
[WARNING] Missing header in: /Users/csuich/CloudStack/cloudstack/utils/target-eclipse/test-classes/com/cloud/utils/QualifierTestContext.xml
…

So, it looks like the check license plugin is going after some xml that Eclipse generates. Should I be telling maven to ignore these somehow? When I run ‘git status’, it says my working directory is clean as the .gitignore is setup to ignore that stuff.

-Chris
-- 
Chris Suich
chris.suich@netapp.com
NetApp Software Engineer
Data Center Platforms – Cloud Solutions
Citrix, Cisco & Red Hat

On Mar 20, 2014, at 12:54 PM, Daan Hoogland <da...@gmail.com> wrote:

> So the offending file is in utils. Doesn't it give info above the BUIL
> FAILURE line?
> 
> On Thu, Mar 20, 2014 at 5:52 PM, SuichII, Christopher
> <Ch...@netapp.com> wrote:
>> Hey all,
>> 
>> I'm unable to build on 4.4 and master with no changes made in either branch. It appears that there are some files which don't meet the license header requirement. I don't see one, but is there a profile for ignoring the check license plugin? Alternatively, does anyone know what files are offending or how to easily fix this?
>> 
>> [INFO] ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 14.076s
>> [INFO] Finished at: Thu Mar 20 12:48:27 EDT 2014
>> [INFO] Final Memory: 40M/96M
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.5:check (cloudstack-checklicence) on project cloud-utils: Some files do not have the expected license header -> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions, please read the following articles:
>> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>> [ERROR]
>> [ERROR] After correcting the problems, you can resume the build with the command
>> [ERROR]   mvn <goals> -rf :cloud-utils
>> 
>> Thanks,
>> Chris
>> --
>> Chris Suich
>> chris.suich@netapp.com
>> NetApp Software Engineer
>> Data Center Platforms - Cloud Solutions
>> Citrix, Cisco & Red Hat
>> 
> 
> 
> 
> -- 
> Daan


Re: 4.4 and master failing due to missing license header

Posted by Daan Hoogland <da...@gmail.com>.
So the offending file is in utils. Doesn't it give info above the BUIL
FAILURE line?

On Thu, Mar 20, 2014 at 5:52 PM, SuichII, Christopher
<Ch...@netapp.com> wrote:
> Hey all,
>
> I'm unable to build on 4.4 and master with no changes made in either branch. It appears that there are some files which don't meet the license header requirement. I don't see one, but is there a profile for ignoring the check license plugin? Alternatively, does anyone know what files are offending or how to easily fix this?
>
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 14.076s
> [INFO] Finished at: Thu Mar 20 12:48:27 EDT 2014
> [INFO] Final Memory: 40M/96M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal com.mycila:license-maven-plugin:2.5:check (cloudstack-checklicence) on project cloud-utils: Some files do not have the expected license header -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <goals> -rf :cloud-utils
>
> Thanks,
> Chris
> --
> Chris Suich
> chris.suich@netapp.com
> NetApp Software Engineer
> Data Center Platforms - Cloud Solutions
> Citrix, Cisco & Red Hat
>



-- 
Daan