Error:
Nogoalshavebeenspecifiedforthisbuild.Youmustspecifyavalidlifecyclephaseoragoalintheformat<plugin-prefix>:<goal>or<plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>.Availablelifecyclephasesare:validate,initialize,generate-sources,process-sources,generate-resources,process-resources,compile,process-classes,generate-test-sources,process-test-sources,generate-test-resources,process-test-resources,test-compile,process-test-classes,test,prepare-package,package,pre-integration-test,integration-test,post-integration-test,verify,install,deploy,pre-clean,clean,post-clean,pre-site,site,post-site,site-deploy.->[Help1]
Solution:
pom.xml file<build> tag followed by<defaultGoal>compile</defaultGoal> will do
Similar Posts:
- Error LifecyclePhaseNotFoundException, Unknown lifecycle phase “mvn”. You must specify a valid lifecycle
- Maven Project Error: “No goals have been specified for this build” [How to Solve]
- Pycharm cannot import the third-party library no module named urllib3
- The problem of JUnit test report class not found in maven
- mvn -V No goals have been specified for this build. You must specify a valid lifecycle phase……
- Can’tlocate cpan.pm in@inc [How to Solve]
- Failed building wheel for Twisted
- Maven Error: Failed to execute goal on project xxx: Could not resolve dependencies for project
- [Solved] Maven Error: Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean
- Idea Maven install is stuck. Check if there is no error report.