diff --git a/.gitignore b/.gitignore index 5d31f3c7b7b..b0c803ca912 100644 --- a/.gitignore +++ b/.gitignore @@ -16,21 +16,18 @@ docs/build.log backwards/ ## eclipse ignores (use 'mvn eclipse:eclipse' to build eclipse projects) -## The only configuration files which are not ignored are certain files in -## .settings (as listed below) since these files ensure common coding -## style across Eclipse and IDEA. -## Other files (.project, .classpath) should be generated through Maven which -## will correctly set the classpath based on the declared dependencies. +## All files (.project, .classpath, .settings/*) should be generated through Maven which +## will correctly set the classpath based on the declared dependencies and write settings +## files to ensure common coding style across Eclipse and IDEA. .project .classpath +/.settings eclipse-build */.project */.classpath */eclipse-build -/.settings/ -!/.settings/org.eclipse.core.resources.prefs -!/.settings/org.eclipse.jdt.core.prefs -!/.settings/org.eclipse.jdt.ui.prefs +*/.settings +plugins/*/.settings ## netbeans ignores nb-configuration.xml diff --git a/pom.xml b/pom.xml index 20e2705fcbb..304a060a6cc 100644 --- a/pom.xml +++ b/pom.xml @@ -1028,6 +1028,56 @@ eclipse-build true + + + .settings/org.eclipse.core.resources.prefs + + =UTF-8 +]]> + + + + .settings/org.eclipse.jdt.core.prefs + + + + + + .settings/org.eclipse.jdt.ui.prefs + + +]]> + + +