Tag Archives: No goals have been specified for this build. You must specify a valid lifecycle phase……

mvn -V No goals have been specified for this build. You must specify a valid lifecycle phase……

Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>

This command should be executed in the Maven project directory. At the same time, modify the pom.xml file and add the following in the build tag:

< defaultGoal> compile</ defaultGoal>