https://github.com/subchen/java-formatter-maven-plugin
Formats your java code using maven
https://github.com/subchen/java-formatter-maven-plugin
Last synced: 5 months ago
JSON representation
Formats your java code using maven
- Host: GitHub
- URL: https://github.com/subchen/java-formatter-maven-plugin
- Owner: subchen
- License: other
- Created: 2019-05-24T09:37:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-05-10T11:21:25.000Z (about 1 year ago)
- Last Synced: 2025-05-10T12:25:21.488Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://search.maven.org/search?q=a:java-formatter-maven-plugin)
[](https://github.com/subchen/java-formatter-maven-plugin/actions/workflows/maven-publish.yml)
[](https://scan.coverity.com/projects/subchen-java-formatter-maven-plugin)
[](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
[](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