Which Maven command is used to install the project into the local repository?

Which Maven command is used to install the project into the local repository?

A) mvn install
B) mvn deploy
C) mvn package
D) mvn compile

Answer:

A) mvn install

Explanation:

The mvn install command is used to install the built artifact (e.g., JAR or WAR file) into the local Maven repository. This makes the artifact available for use as a dependency in other Maven projects on the same machine.

Reference links:

https://www.javaguides.net/p/maven.html

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top