# java-formatter-maven-plugin **Repository Path**: mirrors_subchen/java-formatter-maven-plugin ## Basic Information - **Project Name**: java-formatter-maven-plugin - **Description**: Formats your java code using maven - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-07-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Maven](https://img.shields.io/maven-central/v/com.github.subchen/java-formatter-maven-plugin.svg?style=flat&label=java-formatter-maven-plugin)](https://search.maven.org/search?q=a:java-formatter-maven-plugin) [![Build Status](https://github.com/subchen/java-formatter-maven-plugin/actions/workflows/maven-publish.yml/badge.svg)](https://github.com/subchen/java-formatter-maven-plugin/actions/workflows/maven-publish.yml) [![Coverity Scan Build Status](https://scan.coverity.com/projects/subchen-java-formatter-maven-plugin/badge.svg?flat=1)](https://scan.coverity.com/projects/subchen-java-formatter-maven-plugin) [![JDK](http://img.shields.io/badge/JDK-v8.0+-yellow.svg)](http://www.oracle.com/technetwork/java/javase/downloads/index.html) [![License](http://img.shields.io/badge/License-Apache_2-red.svg)](http://www.apache.org/licenses/LICENSE-2.0) # java-formatter-maven-plugin Formats your java code using maven ## Usage To have your sources automatically formatted on each build, add to your `pom.xml`: ```xml com.github.subchen java-formatter-maven-plugin 2.0.0 process-sources format ``` - 1.x for Java 8 - 2.x for Java 11+ ### Command line ```bash mvn java-formatter:format or mvn process-sources ``` ## Eclipse & IntelliJ IDEA Download & Import config file into Eclipse IDE. If you are using IntelliJ IDEA, please install `Eclipse Code Formmater` plugin. https://github.com/subchen/java-formatter-maven-plugin/blob/master/src/main/resources/java-formatter.xml