HBASE-18033 Fix license check for hadoop-3.x

Hadoop 3.x added some new dependencies that refer to the apache license
by it's older title (from apache parent pom 14 and earlier). Instead of
listing them all individually, we can group them under ASL for our
LICENSE file.

Signed-off-by: Sean Busbey <busbey@apache.org>
This commit is contained in:
Mike Drob 2017-06-09 11:44:02 -05:00 committed by Sean Busbey
parent 7b40f4f3ec
commit a6216db16f
2 changed files with 14 additions and 1 deletions

View File

@ -1550,7 +1550,7 @@ ${dep.scm.url}
#thrift_license() #thrift_license()
#end #end
## Note that this will fail the build if we don't have a license. update supplemental-models. ## Note that this will fail the build if we don't have a license. update supplemental-models.
#if( !(${dep.licenses[0].name.contains("Apache License, Version 2.0")}) ) #if( !(${dep.licenses[0].name.contains("Apache License, Version 2.0")} || ${dep.licenses[0].name.contains("The Apache Software License, Version 2.0")}) )
#if( ${dep.licenses[0].name.contains("CDDL")} ) #if( ${dep.licenses[0].name.contains("CDDL")} )
#if( ${dep.licenses[0].name.contains("1.0")} ) #if( ${dep.licenses[0].name.contains("1.0")} )
#set($aggregated = $cddl_1_0.add($dep)) #set($aggregated = $cddl_1_0.add($dep))

View File

@ -2270,6 +2270,19 @@ Copyright 2005 Sun Microsystems, Inc. and portions Copyright Apache Software Fou
</licenses> </licenses>
</project> </project>
</supplement> </supplement>
<supplement>
<project>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<licenses>
<license>
<name>Common Development and Distribution License (CDDL) v1.0</name>
<url>http://www.opensource.org/licenses/cddl1.php</url>
<distribution>repo</distribution>
</license>
</licenses>
</project>
</supplement>
<supplement> <supplement>
<project> <project>
<groupId>org.jamon</groupId> <groupId>org.jamon</groupId>