[
https://issues.apache.org/jira/browse/FLINK-27232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17522310#comment-17522310
]
Marios Trivyzas edited comment on FLINK-27232 at 4/14/22 1:48 PM:
------------------------------------------------------------------
[https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#default-lifecycle]
I think that conceptually, checking the source files for checkstyle should be
done in the {{process-sources}} phase and not in the {{validate}} or
{{initialize}} phases which are for setting up things.
Furthermore the {{directory-maven-plugin}} should maybe be bound to
{{validate}} which is the 1st phase, to make sure that {{rootDir}} property isĀ
available from {{initialize}} state on.
was (Author: matriv):
[https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#default-lifecycle]
I think that conceptually, checking the source files for checkstyle should be
done in the {{process-sources}} phase and not in the {{validate}} or
{{initialize}} phases which are for setting up things.
Furthermore the {{directory-maven-plugin}} should maybe be bound to
{{validate}} which is the 1st phase, to make sure that it's available from
{{initialize}} state on.
> .scalafmt.conf cant be located when running in sub-directory
> ------------------------------------------------------------
>
> Key: FLINK-27232
> URL: https://issues.apache.org/jira/browse/FLINK-27232
> Project: Flink
> Issue Type: Technical Debt
> Components: Build System
> Affects Versions: 1.16.0
> Reporter: Chesnay Schepler
> Assignee: Chesnay Schepler
> Priority: Major
> Labels: pull-request-available
>
> cd flink-scala
> mvn validate
> Error: Failed to execute goal
> com.diffplug.spotless:spotless-maven-plugin:2.13.0:check (spotless-check) on
> project flink-scala_2.12: Execution spotless-check of goal
> com.diffplug.spotless:spotless-maven-plugin:2.13.0:check failed: Unable to
> locate file with path: .scalafmt.conf: Could not find resource
> '.scalafmt.conf'. -> [Help 1]
> Currently breaks the docs build.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)