Maven installation and configuration for Ubuntu
|
|
|
This document describes how to install Maven on Ubuntu
Requirement
| Java JDK | 1.5 or above (this is to execute Maven - it still allows you to build against 1.3 and prior JDK's) |
| Memory | o minimum requirement |
Installation
Installation of Maven on ubuntu can be pretty straightforward
Files should be installed in /usr/share/maven2
Verification
Type �mvn
-version
� to verify the installation.
Where the Maven installed?
The Apt-get installation will install all the required files in the following folder structure
P.S The Maven configuration is store in /etc/maven2
Configuring Maven to use Nexus (Optional)
Nexus is a maven repository manager. You can use Nexus to host your own maven repository for artifact created in your company, or for caching external artifacts.
If you don't have a nexus server in your organisation you can skip this section.
To use Nexus, you will configure Maven to check Nexus instead of the public repositories. To do this, you'll need to edit your
settings.xml
file.
We have defined a single profile: nexus.
The nexus profile is configured to download from the central repository with a bogus URL of http://central. This URL is overridden by the mirror setting in the same settings.xml file to point to the URL of your single Nexus group. The nexus group is then listed as an active profile in the activeProfiles element.
If you have any remark or questions feel free to put a comment.If you enjoyed this tutorial and want to promote it don't hesitate to click on
If you are looking for a Maven installation guide for Windows click on the following link :
Maven Tutorial related articles
Comments
RSS feed for comments to this post