The following is a detailed error message:
[Error] unknown lifecycle phase "complile ". you must specify a valid lifecycle p hase or a goal in the format: Or: [:]:. available lifecycle phases are: validat E, initialize, generate-sources, process-sources, generate-resources, process-re sources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-Clas SES, test, prepare-package, package, pre-integration-test, integration-test, pos t-integration-test, verify, install, deploy, pre-clean, clean, post-clean, Pre-s ite, site, post-site, site-deploy. -> [help 1]
Solution: https://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException
This error is generated if you try to invoke a build command that Maven does not understand. In general, you have the following options to perform build steps:
- Invoke a lifecycle phase, e.g.MVN installThis runs the lifecycle phaseInstallAnd all its predecessor phases likeCompileAndTest. Please see Introduction to the build lifecycle for more information about available lifecycle phases.
- Invoke a plugin goal via the plugin prefix, e.g.
MVN compiler: CompileEventually, the plugin prefix translates to a group ID and artifact ID of a plugin. maven resolves plugin prefixes by first looking at the Plugins of the current project's POM and next by checking the metadata of user-defined plugin groups.
Invoke a plugin goal via the versionless plugin coordinates, e.g.
MVN org. Apache. Maven. plugins: Maven-compiler-plugin: Compile
To resolve the plugin version, MAVEN will first check the project's POM and fallback to the latest release version of the plugin that was deployed to the configured plugin repositories.
Invoke a plugin goal via the fully qualified plugin coordinates, e.g.
MVN org. Apache. Maven. plugins: Maven-compiler-plugin: 2.0.2: Compile
You can freely mix all of these styles within a single command line.
The error described here is usually caused by typo in the command so be sure to check you specified a valid lifecycle phase.