[ https://issues.apache.org/jira/browse/FLINK-15623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17017675#comment-17017675 ]
sunjincheng commented on FLINK-15623: ------------------------------------- Agree with [~chesnay] 's analysis. The goal "source:jar" of maven-source-plugin will invoke the phase [generate-sources|https://maven.apache.org/plugins/maven-source-plugin/jar-mojo.html]. It will firstly execute the early phase "validate" during which maven-checkstyle-plugin will be executed. At this point, the generated sources are already generated and so checkstyle check failed. I think it makes sense to exclude the generated sources from the check style check. > Buildling flink-python with maven profile docs-and-source fails > --------------------------------------------------------------- > > Key: FLINK-15623 > URL: https://issues.apache.org/jira/browse/FLINK-15623 > Project: Flink > Issue Type: Bug > Components: Build System > Affects Versions: 1.10.0 > Environment: rev: 91d96abe5f42bd088a326870b4885d79611fccb5 > Reporter: Gary Yao > Assignee: sunjincheng > Priority: Blocker > Fix For: 1.10.0 > > > *Description* > Building flink-python with maven profile {{docs-and-source}} fails due to > checkstyle violations. > *How to reproduce* > Running > {noformat} > mvn clean install -pl flink-python -Pdocs-and-source -DskipTests > -DretryFailedDeploymentCount=10 > {noformat} > should fail with the following error > {noformat} > [...] > [ERROR] > generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8343] > (regexp) RegexpSinglelineJava: Line has leading space characters; indentation > should be performed with tabs only. > [ERROR] > generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8344] > (regexp) RegexpSinglelineJava: Line has leading space characters; indentation > should be performed with tabs only. > [ERROR] > generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8345] > (regexp) RegexpSinglelineJava: Line has leading space characters; indentation > should be performed with tabs only. > [ERROR] > generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8346] > (regexp) RegexpSinglelineJava: Line has leading space characters; indentation > should be performed with tabs only. > [ERROR] > generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8347] > (regexp) RegexpSinglelineJava: Line has leading space characters; indentation > should be performed with tabs only. > [ERROR] > generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8348] > (regexp) RegexpSinglelineJava: Line has leading space characters; indentation > should be performed with tabs only. > [ERROR] > generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8349] > (regexp) RegexpSinglelineJava: Line has leading space characters; indentation > should be performed with tabs only. > [ERROR] > generated-sources/org/apache/flink/fnexecution/v1/FlinkFnApi.java:[8350] > (regexp) RegexpSinglelineJava: Line has leading space characters; indentation > should be performed with tabs only. > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 18.046 s > [INFO] Finished at: 2020-01-16T16:44:01+00:00 > [INFO] Final Memory: 158M/2826M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (validate) on > project flink-python_2.11: You have 7603 Checkstyle violations. -> [Help 1] > [ERROR] > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)