Coder Social home page Coder Social logo

eclipse-settings-maven-plugin's Introduction

eclipse-settings-maven-plugin

Applies per-project Eclipse settings to Maven projects. The most common use cases is to configure the Java code formatter to conform to the code style in use in the project.

There are two key differences with other similarly named Maven plugins:

  • The plugin sets individual properties instead of replacing entire preference files. This is important for the org.eclipse.jdt.core bundle because its preferences contain compiler settings as well as the code formatter configuration. The compiler settings are generated by M2E based on the maven-compiler-plugin configuration. They must not be overwritten when applying code formatter settings.

  • The settings are configured directly in the POM (typically in a parent POM) instead of a separate settings JAR.

Usage

<plugin>
    <groupId>com.github.veithen.maven</groupId>
    <artifactId>eclipse-settings-maven-plugin</artifactId>
    <executions>
        <execution>
            <goals>
                <goal>apply</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <bundles>
            <bundle>
                <symbolicName>org.eclipse.jdt.core</symbolicName>
                <properties>
                    <property>
                        <name>org.eclipse.jdt.core.formatter.comment.line_length</name>
                        <value>100</value>
                    </property>
                    <property>
                        <name>org.eclipse.jdt.core.formatter.lineSplit</name>
                        <value>100</value>
                    </property>
                    <property>
                        <name>org.eclipse.jdt.core.formatter.tabulation.char</name>
                        <value>space</value>
                    </property>
                    <property>
                        <name>org.eclipse.jdt.core.formatter.indentation.size</name>
                        <value>4</value>
                    </property>
                </properties>
            </bundle>
        </bundles>
    </configuration>
</plugin>

eclipse-settings-maven-plugin's People

Contributors

dependabot[bot] avatar veithen avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

berkcanerken

eclipse-settings-maven-plugin's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.