Skip to content

Instantly share code, notes, and snippets.

@dashorst
Created April 2, 2020 12:02
Show Gist options
  • Save dashorst/b80f4a8a13fb945a41e5f7b2ffc7e31f to your computer and use it in GitHub Desktop.
Save dashorst/b80f4a8a13fb945a41e5f7b2ffc7e31f to your computer and use it in GitHub Desktop.
Example of automatically downloading Eclipse settings using Maven
<plugin>
<groupId>org.eclipse.scout</groupId>
<artifactId>eclipse-settings-maven-plugin</artifactId>
<version>3.0.3</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadoc>false</downloadJavadoc>
<additionalConfig>
<file>
<name>.settings/edu.umd.cs.findbugs.plugin.eclipse.prefs</name>
<location>/edu.umd.cs.findbugs.plugin.eclipse.prefs</location>
</file>
<file>
<name>.settings/org.eclipse.core.resources.prefs</name>
<location>/org.eclipse.core.resources.prefs</location>
</file>
<file>
<name>.settings/org.eclipse.jdt.apt.core.prefs</name>
<location>/org.eclipse.jdt.apt.core.prefs</location>
</file>
<file>
<name>.settings/org.eclipse.jdt.core.prefs</name>
<location>/org.eclipse.jdt.core.prefs</location>
</file>
<file>
<name>.settings/org.eclipse.jdt.ui.prefs</name>
<location>/org.eclipse.jdt.ui.prefs</location>
</file>
<file>
<name>.settings/org.eclipse.m2e.core.prefs</name>
<location>/org.eclipse.m2e.core.prefs</location>
</file>
<file>
<name>.settings/org.eclipse.wst.validation.prefs</name>
<location>/org.eclipse.wst.validation.prefs</location>
</file>
<file>
<name>.settings/org.maven.ide.eclipse.prefs</name>
<location>/org.maven.ide.eclipse.prefs</location>
</file>
<file>
<name>.settings/org.eclipse.core.runtime.prefs</name>
<location>/org.eclipse.core.runtime.prefs</location>
</file>
<file>
<name>.settings/org.eclipse.jdt.launching.prefs</name>
<location>/org.eclipse.jdt.launching.prefs</location>
</file>
<file>
<name>.settings/org.jboss.tools.jst.web.kb.prefs</name>
<location>/org.jboss.tools.jst.web.kb.prefs</location>
</file>
</additionalConfig>
</configuration>
<dependencies>
<dependency>
<groupId>org.eclipse.jakarta.batch</groupId>
<artifactId>jakarta-batch-eclipse-settings</artifactId>
<version>2020.4</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>attach-eclipse-settings</id>
<goals>
<goal>eclipse-settings</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment