The Maven Install Plugin is used to add artifacts to the local repository. The Install Plugin uses the information in the POM (groupId, artifactId, version) to determine the proper location for the artifact within the local repository.
Goals:
- install:install is used to automatically install the project’s main artifact (the JAR, WAR or EAR), its POM and any attached artifacts (sources, javadoc, etc) produced by a particular project.
- install:install-file is mostly used to install an externally created artifact into the local repository, along with its POM.
The install:install goal doesn’t need any configuration, it needs the project’s POM and the artifact file to be installed during the install phase of the default build lifecycle.
Run the following command to run plugin goal:
mvn install