Configuring Maven in your OS
The latest Eclipse version comes with embedded Maven software already installed. We suggest using the default configuration.
Maven is a software tool for Java project management and build automation. It is similar in functionality to the Apache Ant tool, but is based on different concepts. Maven is hosted by the Apache Software Foundation, where it was formerly part of the Jakarta Project.
Maven uses a process known as a Project Object Model (POM) to describe the software project being built, its dependencies on other external modules and components, and the build order. It comes with pre-defined targets for performing certain well defined tasks such as compilation of code and its packaging.
More information at http://maven.apache.org.
Install Maven version 3.3.x
Follow the Maven installation guide.
Download sources and javadoc from dependency libraries to improve the developer experience:
$ mvn install -DdownloadSources=true -DdownloadJavadocs=true
Ignore test failures in the build process this way:
$ mvn install -Dmaven.test.failure.ignore=true
To skip tests, you can do so by executing the following command:
$ mvn install -Dmaven.test.skip=true
To set more memory for Maven in GNU/Linux you can add the Maven executable to the binary path editing the $HOME/.bashrc file and adding this line at the end:
export PATH=$PATH:/path/to/maven/installation/bin export MAVEN_OPTS="-Xmx512m"
On windows this can be set through the general environment variables feature.
Configure eclipse to use local Maven
Go to Window > Preferences > Maven > Installation and click on Add button to set your local Maven.
We do not suggest you to apply this change, the default embedded Maven configuration works well in almost all cases.