Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: benalexau/xml-formatter
base: 37ccf25a06
head fork: benalexau/xml-formatter
compare: 00be4e9dd0
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Dec 30, 2011
Ben Alex Restore development version to 2.1-SNAPSHOT df64983
Ben Alex Add a readme 00be4e9
Showing with 54 additions and 1 deletion.
  1. +53 −0 README.markdown
  2. +1 −1  pom.xml
53 README.markdown
@@ -0,0 +1,53 @@
+Maven Java Formatter Plugin for Eclipse 3.7.1 SR1
+This is an Eclipse 3.7.1 Service Release 1-based fork of the original [maven-java-formatter-plugin]( This fork will be of interest to people who prefer the option of code formatting both within Eclipse and also via Maven builds. This plugin ensures consistent formatting results between these two environments, plus can consume source code formatting configuration files exported from newer Eclipse versions.
+You do not need to clone this GitHub repository to use the fork. You can use it immediately by making two simple changes to your project's pom.xml.
+First, declare this project as a plugin repository:
+ &lt;pluginRepository&gt;
+ &lt;id&gt;maven-java-formatter-plugin&lt;/id&gt;
+ &lt;name&gt;Maven2 Java Formatter Plugin repository&lt;/name&gt;
+ &lt;url&gt;;/url&gt
+ &lt;/pluginRepository&gt;
+Second, enable the plugin. Please refer to the [original documentation]( for more configuration options.
+ &lt;groupId&gt;com.googlecode.maven-java-formatter-plugin&lt;/groupId&gt;
+ &lt;artifactId&gt;maven-java-formatter-plugin&lt;/artifactId&gt;
+ &lt;version&gt;0.4.0.e371sr1&lt;/version&gt;
+ &lt;configuration&gt;
+ &lt;configFile&gt;../eclipse-formatter-config.xml&lt;/configFile&gt;
+ &lt;/configuration&gt;
+ &lt;executions&gt;
+ &lt;execution&gt;
+ &lt;goals&gt;
+ &lt;goal&gt;format&lt;/goal&gt;
+ &lt;/goals&gt;
+ &lt;/execution&gt;
+ &lt;/executions&gt;
+[Ticket 18]( has been logged against the [original project]( so they can incorporate these changes. As such, please check the ticket for updates before using this fork.
+#### XML File Formatting
+If you're interested in Java code formatting and Maven, you may also be interested in XML file formatting. The above plugin repository also includes a build of the [XML Formatter]( Maven plugin. To use this build, add the following additional plugin to your pom.xml and then refer to the [plugin documentation]( (of course check the original project doesn't have a more recent release available):
+ &lt;groupId&gt;org.technicalsoftwareconfigurationmanagement.maven-plugin&lt;/groupId&gt;
+ &lt;artifactId&gt;tscm-maven-plugin&lt;/artifactId&gt;
+ &lt;version&gt;;/version&gt;
2  pom.xml
@@ -8,7 +8,7 @@
- <version></version>
+ <version>2.1-SNAPSHOT</version>
<name>TSCM Maven Plugin</name>

No commit comments for this range

Something went wrong with that request. Please try again.