Dashboard > Development > Development > Maven
Maven Log In View a printable version of the current page.

Added by Christiaan Fluit , last edited by Christiaan Fluit on 2008-02-27  (view change)
Labels: 
(None)

Aduna Open Source projects use Maven 2 as the primary build tool. Instructions for building and developing projects assume Maven is setup correctly on your machine.

Maven mirrors

To get faster downloads from the "central" repository, read these instructions to setup Maven mirrors.

Maven integration with your IDE

Several IDEs are supported in Maven through plugins. Running these will generate configuration files that should allow you to import the Maven projects in your IDE. To enhance integration, additional steps may be required.

  • Run the following Maven command to generate configuration files for your favorite IDE:
    • Eclipse: mvn eclipse:eclipse (more instructions)
    • Netbeans: mvn netbeans-freeform:generate-netbeans-project
    • IntelliJ IDEA: mvn idea:idea

Maven command-line use

Projects can be built from the command-line as well of course:

Build the project, run any unit tests and install the resulting artifact in your local repository:
mvn clean install

If a project consists of multiple modules, this will build all dependend modules.

Skipping unit tests

To skip unit tests, run Maven with the -Dmaven.test.skip=true parameter, e.g. mvn -Dmaven.test.skip=true clean install. Note that this is not recommended, but sometimes convenient when Maven fails due to an empty test directory or other issues.

Powered by a free Atlassian Confluence Open Source Project License granted to Aduna Open Source. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators