Maven - Install (Local Package Installation)

1 - About

Install is a phase that install the generated artifact in the local repository.

Installation in a remote location is called: deploy

3 - Plugin

Plugin that can be used in this phase.

3.1 - Apache Maven Install

3.1.1 - Install: Install the main artifact and the derived one

install is a goal that will install:

  • the project's main artifact
  • and any other artifacts attached by other plugins in the lifecycle such as an assembly artifact.

3.1.2 - Install-file: Install an external file in a local repository manually

Installs a file in the local repository if it's available in any public remote repository.

This installation occurs in the local maven repository, see remote repository for an installation on a server.


cd $ORACLE_HOME/jdbc/lib
mvn install:install-file -Dfile=ojdbc6.jar -DartifactId=ojdbc6 -Dversion= -Dpackaging=jar -DgeneratePom=true

  • Microsoft JDBC driver

mvn install:install-file -Dfile="/path/to/sqljdbc41.jar" -DartifactId=jdbc -Dversion=4.1 -Dpackaging=jar


3.2 - Maven Resource Plugin

3.2.1 - Copy-resources: Copy into a local directory


3.3 - Dependency Plugin

3.3.1 - Unpack (Unzip)

This goal permits to unzip locally a created assembly (generally in a local bin directory.


4 - Documentation / Reference

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap