hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiang Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-18139) maven-remote-resources-plugin fails with IndexOutOfBoundsException in hbase-assembly
Date Fri, 02 Jun 2017 09:07:04 GMT

    [ https://issues.apache.org/jira/browse/HBASE-18139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16034350#comment-16034350

Xiang Li commented on HBASE-18139:

Some findings:
1. As posted by Sean, 
{code:title=hbase-resource-bundle/src/main/resources/META-INF/LICENSE.vm, start from line
1674 |borderStyle=solid}
## fail the template. If you're looking at the source LICENSE.vm
## file based on a stacktrace or exception message, you need to find
## the generated LICENSE file that has the actual dependency info printed.
#set($empty = [])
The code above is added by HBASE-16318.
#set($empty = [])
defines an empty array(size = 0) and named it as "empty"
and then refers to the index 0 of that empty array, as
So the code intends to break the build here by throwing IndexOutOfBoundsException: Index:
0, Size: 0, when it fails the template (no license or not in the white list)

2. From the generated LICENSE file in hbase-assembly/target, the artifact which has a license
in question is 
This product includes Glassfish Jasper API licensed under the Apache License Version 2.0.

Please check ^^^^^^^^^^^^ this License for acceptability here:


If it is okay, then update the list named 'non_aggregate_fine' in the LICENSE.vm file.
If it isn't okay, then revert the change that added the dependency.

More info on the dependency:


maven central search
g:org.mortbay.jetty AND a:jsp-api AND v:2.1

project website
project source

> maven-remote-resources-plugin fails with IndexOutOfBoundsException in hbase-assembly
> ------------------------------------------------------------------------------------
>                 Key: HBASE-18139
>                 URL: https://issues.apache.org/jira/browse/HBASE-18139
>             Project: HBase
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.3.2
>            Reporter: Xiang Li
>            Priority: Minor
> The same as HBASE-14199.
> {code}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process
(aggregate-licenses) on project hbase-assembly: Error rendering velocity resource.: Error
invoking method 'get(java.lang.Integer)' in java.util.ArrayList at META-INF/LICENSE.vm[line
1678, column 8]: InvocationTargetException: Index: 0, Size: 0 -> [Help 1]
> {code}
> Fail to run mvn install against the latest branch-1 and branch-1.3, with no additional

This message was sent by Atlassian JIRA

View raw message