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

Jan Hentschel commented on HBASE-19780:
---------------------------------------

Regarding point 1: I used {{validate}} to run it before the compiler does 
anything (see the [usage 
page|https://maven.apache.org/plugins/maven-checkstyle-plugin/usage.html] for 
details). I don't have a problem changing the goal to {{verify}}.

Regarding point 2: I would like to stick with using a dedicated module. This 
provides the advantage that the path to the Checkstyle files only needs to be 
set once in the parent POM instead of setting it in every module to the 
appropriate path. But if it fixes things we can change it according to 
{{dev-support}}.

On a side note, I see some room for improvements of the Checkstyle 
configuration in the parent POM. The plugin is defined in the 
{{pluginManagement}} section, but the same configuration is used in the 
{{plugin}} section, which shouldn't be necessary.

> Fix build in branch-2
> ---------------------
>
>                 Key: HBASE-19780
>                 URL: https://issues.apache.org/jira/browse/HBASE-19780
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Appy
>
> Not able to run following command successfully:
> {{mvn -DskipTests install site 
> -Dmaven.repo.local=/Users/appy/Desktop/temp_repo}}
> Use a clean separate repo so that existing packages don't pollute the build.
> Error is following.
> {noformat}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site) on project 
> hbase: failed to get report for 
> org.apache.maven.plugins:maven-javadoc-plugin: Failed to execute goal 
> org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (checkstyle) on 
> project hbase-error-prone: Execution checkstyle of goal 
> org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check failed: Plugin 
> org.apache.maven.plugins:maven-checkstyle-plugin:2.17 or one of its 
> dependencies could not be resolved: Failure to find 
> org.apache.hbase:hbase-checkstyle:jar:2.0.0-beta-1 in 
> http://repository.apache.org/snapshots/ was cached in the local repository, 
> resolution will not be reattempted until the update interval of 
> apache.snapshots has elapsed or updates are forced -> [Help 1]
> {noformat}
> Note that master build goes pass this point.
> Need to figure out what's the difference and fix the overall build.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to