[ 
https://issues.apache.org/jira/browse/PHOENIX-6017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chinmay Kulkarni updated PHOENIX-6017:
--------------------------------------
    Description: 
I believe this is introduced by some changes related to the maven-shaded 
plugin. We create a dependency-reduced-pom.xml which is considered during the 
license header check, thus always causing preCommit to fail on this step. We 
should prevent its creation perhaps via something like 
[this|https://stackoverflow.com/questions/11314182/maven-shade-plugin-adding-dependency-reduced-pom-xml-to-base-directory].
 Example of a failing build's error:
{code:java}
1 Unknown Licenses

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

Files with unapproved licenses:

  
/home/jenkins/jenkins-slave/workspace/PreCommit-PHOENIX-Build/phoenix-server/dependency-reduced-pom.xml

*****************************************************
{code}

  was:
I believe this is introduced by some changes related to the maven-shaded 
plugin. We create a dependency-reduced-pom.xml which is considered during the 
license header check, thus always causing preCommit to fail on this step. We 
should prevent its creation perhaps via something like 
[this|https://stackoverflow.com/questions/11314182/maven-shade-plugin-adding-dependency-reduced-pom-xml-to-base-directory]
{code:java}
1 Unknown Licenses

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

Files with unapproved licenses:

  
/home/jenkins/jenkins-slave/workspace/PreCommit-PHOENIX-Build/phoenix-server/dependency-reduced-pom.xml

*****************************************************
{code}


> Hadoop QA Precommit build keeps failing with release audit warning for 
> phoenix-server/dependency-reduced-pom.xml
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-6017
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6017
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.15.0
>            Reporter: Chinmay Kulkarni
>            Priority: Major
>              Labels: beginner, newbie
>             Fix For: 4.16.0
>
>
> I believe this is introduced by some changes related to the maven-shaded 
> plugin. We create a dependency-reduced-pom.xml which is considered during the 
> license header check, thus always causing preCommit to fail on this step. We 
> should prevent its creation perhaps via something like 
> [this|https://stackoverflow.com/questions/11314182/maven-shade-plugin-adding-dependency-reduced-pom-xml-to-base-directory].
>  Example of a failing build's error:
> {code:java}
> 1 Unknown Licenses
> *****************************************************
> Files with unapproved licenses:
>   
> /home/jenkins/jenkins-slave/workspace/PreCommit-PHOENIX-Build/phoenix-server/dependency-reduced-pom.xml
> *****************************************************
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to