whitespace-maven-plugin Maven Mojo

Maven plugin for stripping trailing whitespace errors from java source code

License

License

Categories

Categories

Maven Build Tools Ant
GroupId

GroupId

com.github.dantwining.whitespace-maven-plugin
ArtifactId

ArtifactId

whitespace-maven-plugin
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

whitespace-maven-plugin Maven Mojo
Maven plugin for stripping trailing whitespace errors from java source code
Project URL

Project URL

https://github.com/dantwining/whitespace-maven-plugin
Source Code Management

Source Code Management

https://github.com/dantwining/whitespace-maven-plugin

Download whitespace-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.dantwining.whitespace-maven-plugin</groupId>
    <artifactId>whitespace-maven-plugin</artifactId>
    <version>1.0.4</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.0
commons-io : commons-io jar 2.4
org.apache.commons : commons-lang3 jar 3.1

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

whitespace-maven-plugin

The whitespace plugin will remove any trailing whitespace from .java, .xml and .scala files in your project.

Usage

The plugin works best if it is run every time during Maven compilation. However, if you wish to perform a simple test of what the plugin does, then run the following within your Maven project:

mvn com.github.dantwining.whitespace-maven-plugin:whitespace-maven-plugin:trim

To enable the plugin for every Maven compilation, add the following to your pom and run any maven phase that would include the process-sources phase:

<plugin>
	<artifactId>whitespace-maven-plugin</artifactId>
	<groupId>com.github.dantwining.whitespace-maven-plugin</groupId>
	<version>1.0.4</version>
	<executions>
		<execution>
			<phase>process-sources</phase>
			<goals>
				<goal>trim</goal>
			</goals>
		</execution>
	</executions>
</plugin>

Versions

Version
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0