Thursday, 4 February 2016

Maven Introduction



There are basically four types of repositories involved
  1. Local Repositories
  2. Global Repositories
  3. Project Repositories
  4. Custom Repositories

A snapshot version in Maven is one that has not been released. The idea is that before a 1.0 release (or any other release) is done, there exists a 1.0-SNAPSHOT . That version is what might become 1.0 . It's basically " 1.0 under development".

Downloading in Maven is triggered by a project declaring a dependency that is not present in the local repository (or for a SNAPSHOT, when the remote repository contains one that is newer). By default, Maven will download from the central repository.

Maven central repository : http://repo.maven.apache.org/maven2/
Maven central repository : http://central.maven.org/maven2
Maven central repository : http://uk.maven.org/maven2/

Maven Plug-In repository : http://repo1.maven.org/maven2/org/codehaus/mojo/


Maven reads both global settings as well as user setting file when you trigger install

C:\Users\vnemalik\Documents\001096043\b2b\code_base\newCodeHub\RB-2016.08.x>mvn clean install -X

Picked up JAVA_TOOL_OPTIONS: -Djava.vendor="Sun Microsystems Inc."
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T22:59:23+05:30)
Maven home: C:\Users\vnemalik\Documents\001096043\soft\apache-maven-3.2.5\bin\..
Java version: 1.8.0_60, vendor: Sun Microsystems Inc.
Java home: C:\Users\vnemalik\Documents\001096043\soft\jdk1.8.0_45\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "dos"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from C:\Users\vnemalik\Documents\001096043\soft\apache-maven-3.2.5\bin\..\conf\settings.xml
[DEBUG] Reading user settings from C:\Users\vnemalik\.m2\settings.xml


No comments:

Post a Comment