From 1da7290269fa5290cdd6dc916e9fd4dab45ce7a9 Mon Sep 17 00:00:00 2001 From: Sean Busbey Date: Mon, 31 Aug 2015 08:52:12 -0500 Subject: [PATCH] HBASE-14337 if we know we're going to fail the build via velocity template failure, output the cause in the generated LICENSE file. --- .../src/main/resources/META-INF/LICENSE.vm | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm b/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm index d00b17c..54f53fd 100644 --- a/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm +++ b/hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm @@ -1560,13 +1560,21 @@ You can redistribute it and/or modify it under either the terms of the GPL #set($hadoop = false) ## include LICENSE sections for anything not under ASL2.0 #foreach( ${dep} in ${projects} ) +## if there are no licenses we'll fail the build later, so +## make sure we output something now that can be used to triage. +#if(${dep.licenses.size()} == 0) +No license info included; must update supplemental-models for: + +g:${dep.groupId} AND a:${dep.artifactId} AND v:${dep.version} + +Until hbase-resource-bundle/src/main/resources/supplemental-models.xml +is updated, the build should fail. +#end #if(${debug-print-included-work-info.equalsIgnoreCase("true")}) ===== Check license for included work -#if(${dep.licenses.size()} == 0) -No license info included; must update supplemental-models -#else +#if(${dep.licenses.size()} > 0) License short name: '${dep.licenses[0].name}' #end -- 2.1.0