
Если включен стиль кода Google, импорт форматируется, как ожидалось, но форматирование моего Maven POM нарушено.
Maven POM со схемой по умолчанию:
Код: Выделить всё
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
com.test
test
1.0
jar
11
UTF-8
1.39
org.apache.maven.plugins
maven-compiler-plugin
3.8.1
11
org.apache.maven.plugins
maven-jar-plugin
3.1.2
true
test.Main
com.cosium.code
maven-git-code-format
${maven-git-code-format.version}
install-formatter-hook
install-hooks
validate-code-format
validate-code-format
Код: Выделить всё
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
test
maven-compiler-plugin
11
org.apache.maven.plugins
3.8.1
maven-jar-plugin
true
test.Main
org.apache.maven.plugins
3.1.2
maven-git-code-format
install-hooks
install-formatter-hook
validate-code-format
validate-code-format
com.cosium.code
${maven-git-code-format.version}
com.test
4.0.0
jar
11
1.39
UTF-8
1.0
Кто-нибудь поделился моим опытом и нашел решение моей проблемы?