[
https://issues.apache.org/jira/browse/HBASE-19662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16306506#comment-16306506
]
Chia-Ping Tsai commented on HBASE-19662:
----------------------------------------
bq. can somebody manually deploy the latest snapshot and see if that fixes
things?
I get the error if I remove hbase from local repository. Seems maven use the
checkstyle rule from the snapshot file.
{code}
[DEBUG] The resource 'hbase/checkstyle.xml' was not found with resourceLoader
org.codehaus.plexus.resource.loader.URLResourceLoader.
[DEBUG] The resource 'hbase/checkstyle.xml' was not found with resourceLoader
org.codehaus.plexus.resource.loader.JarResourceLoader.
[DEBUG] The resource 'hbase/checkstyle.xml' was not found with resourceLoader
org.codehaus.plexus.resource.loader.FileResourceLoader.
[DEBUG] The resource 'hbase/checkstyle.xml' was found as
jar:file:/home/chia7712/.m2/repository/org/apache/hbase/hbase-checkstyle/3.0.0-SNAPSHOT/hbase-checkstyle-3.0.0-SNAPSHOT.jar!/hbase/checkstyle.xml.
{code}
And the rule is decrepit.
{code}
<!-- Import Checks
http://checkstyle.sourceforge.net/config_imports.html -->
<module name="AvoidStarImport"/>
<module name="ImportOrder">
<property name="option" value="top" />
<property name="ordered" value="true"/>
<property name="sortStaticImportsAlphabetically" value="true"/>
</module>
<module name="RedundantImport"/>
<module name="UnusedImports">
<property name="processJavadoc" value="true"/>
</module>
{code}
> hbase-metrics-api fails checkstyle due to wrong import order
> ------------------------------------------------------------
>
> Key: HBASE-19662
> URL: https://issues.apache.org/jira/browse/HBASE-19662
> Project: HBase
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Ted Yu
> Priority: Minor
> Attachments: 19662.v1.txt
>
>
> In recent trunk builds, there were the following errors:
> {code}
> [ERROR]
> src/main/java/org/apache/hadoop/hbase/metrics/MetricRegistriesLoader.java:[31]
> (imports) ImportOrder: Wrong order for
> 'org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting'
> import.
> [ERROR]
> src/test/java/org/apache/hadoop/hbase/metrics/TestMetricRegistriesLoader.java:[28]
> (imports) ImportOrder: Wrong order for
> 'org.apache.hbase.thirdparty.com.google.common.collect.Lists' import.
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)