Fork me on GitHub


This impsort-maven-plugin allows you to sort your Java source file’s import statements according to the rules you specify.

Getting Started

To add this plugin to your project, configure the plugin similarly to:

              <goal>sort</goal><!-- runs at process-sources phase by default -->

and build your project, similarly to (it runs at the process-sources phase by default):

mvn package