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.