The Jalopy Plug-in provides a standard goal to format your sources. For example, to format all source files from the current project, run:
maven triemax-jalopy
You'll notice that all of the code is compiled before any formatting is applied. This is good practise in order to ensure valid input.
If you want to bypass the compilation, you can use another goal:
maven triemax-jalopy:format
Table 11.2. Jalopy Maven Jelly goals
| Goal | Description |
|---|---|
| triemax-jalopy | Formats the source files according to coding convention. The source files will be compiled before formatting takes place. |
| triemax-jalopy:format | Formats the source files according to coding convention. |
| triemax-jalopy:taskdef | Defines the Jalopy task to Ant and Jelly. |