What is the difference between the “mvn install” command, versus the use of the jar:jar plugin ?
Its clear that “install” seems to build a jar, and so, I am wondering what the need for the jar:jar plugin would be.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
mvn installcommand will “execute” the maven lifecycle up to the install phase.It means that all previous phases will be executed (including the package phase).
On a simple maven jar project, the package phase is bind to the maven-jar-plugin. And so executing
mvn installwill execute at some pointjar:jar.