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 = [])
${empty[0]}
{code}
The code above is added by HBASE-16318.
{code}
#set($empty = [])
{code}
defines an empty array(size = 0) and named it as "empty"
and then refers to the index 0 of that empty array, as
{code}
${empty[0]}
{code}
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 
{code:title=hbase-assembly/target/maven-shared-archive-resources/META-INF/LICENSE|borderStyle=solid}
This product includes Glassfish Jasper API licensed under the Apache License Version 2.0.

${dep.licenses[0].comments}
Please check ^^^^^^^^^^^^ this License for acceptability here:

https://www.apache.org/legal/resolved

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:

<groupId>org.mortbay.jetty</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>

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

project website
http://jetty.mortbay.org/project/jsp-api
project source
http://fisheye.codehaus.org/viewrep/jetty/jsp-api/
{code}

> 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
change.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message