You must run mvn install at least once. For more information, see The Maven Build and Maven Life Cycle in 5 Minutes .
Here is a review
Maven Phases
Although hardly a complete list, these are the most common default life cycle phases.
check : check the correctness of the project and get all the necessary information
compile : compile project source code
test : check the compiled source code using a suitable unit testing system. These tests do not require code to be packaged or deployed.
package : take the compiled code and package it in your redistributable format, such as a JAR.
integration test : process and deploy the package, if necessary, into an environment in which integration tests can be performed
check : perform all checks to ensure that the package is valid and meets the quality criteria
install : install the package in a local repository, for use as a dependency in other projects locally
Deployment : Runs in an integration or release environment, copies the final package to a remote repository for sharing with other developers and projects.
There are two other Maven life cycles outside the default list above . They are
clean : cleans artifacts created by previous builds
site : creates site documentation for this project
Hope this helps.
source share