[ https://issues.apache.org/jira/browse/FLINK-27232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17522212#comment-17522212 ]
Chesnay Schepler commented on FLINK-27232: ------------------------------------------ AFAIK multiModuleProjectDirectory would neither work properly (based on google results) nor is it supported in maven 3.2.5. The safest (and most annoying solution) solution I could come up is to explicitly configure the scala check in each scala-reliant module, with the correct path to the file. > .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 > > 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)