diff --git a/.mvn/readme.txt b/.mvn/readme.txt
deleted file mode 100644
index a1333a41d2291..0000000000000
--- a/.mvn/readme.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-The .mvn directory is needed to be able to use the ${maven.multiModuleProjectDirectory} property, since git cannot
-commit an empty directory, add this file.
-
-Once we do not use ${maven.multiModuleProjectDirectory}, we can remove this file and .mvn directory.
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 75a7cd098a95a..39eeb125043d6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -816,6 +816,7 @@ under the License.
spotless-maven-plugin
${spotless.version}
+ ${project.basedir}
1.7
@@ -829,18 +830,18 @@ under the License.
- ${maven.multiModuleProjectDirectory}/copyright.txt
+ ./copyright.txt
${spotless.delimiter}
3.4.3
- ${maven.multiModuleProjectDirectory}/.scalafmt.conf
+ ./.scalafmt.conf
- ${maven.multiModuleProjectDirectory}/copyright.txt
+ ./copyright.txt
${spotless.delimiter}