Apache Maven 1.x has reached its end of life, and is no longer supported. For more information, see the announcement. Users are encouraged to migrate to the current version of Apache Maven.

Maven Code Style

The following sections show how to set up the code style for Maven in IDEA and Eclipse. It is strongly preferred that patches use this style before they are spplied.

IntelliJ IDEA 4.5+

Download maven-codestyle.xml and copy it to ~/.IntelliJIDEA/config/codestyles then restart IDEA. On Windows, try C:\Documents and Settings\username\.IntelliJIDEA\config\codestyles.

After this, restart IDEA and open the settings to select the new code style.

Eclipse 3.x

Download maven-eclipse-codestyle.xml.

After this, select Window -> Preferences, and open up the configuration for Java -> Code Style -> Code Formatter. Click on the button labeled Import... and select the file you downloaded. Give the style a name, and click OK.