Ir al contenido
Otras versiones

Cargando…

Configuring Maven in your OS

Esta página aún no está disponible en tu idioma.

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.

Download sources and javadoc from dependency libraries to improve the developer experience:

Terminal window
$ mvn install -DdownloadSources=true  -DdownloadJavadocs=true

Ignore test failures in the build process this way:

Terminal window
$ mvn install -Dmaven.test.failure.ignore=true

To skip tests, you can do so by executing the following command: 

Terminal window
$ 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"

Go to Window > Preferences > Maven > Installation and click on Add button to set your local Maven.