|
报错信息如:
[ERROR] Unknown lifecycle phase "compile". 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]
解决办法:
http://www.javaxxz.com/href.php? ... seNotFoundException
运行四个命令:
第一步:mvn install
第二步:mvn compiler:compile
第三步:mvn org.apache.maven.plugins:maven-compiler-plugin:compile
第四步:mvn org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
|
|