No goals have been specified for this build. You must specify a valid li fecycle phase or a goal in

    [ERROR] No goals have been specified for this build. You must specify a valid li 
    fecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id 
    >:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are 
    : validate, initialize, generate-sources, process-sources, generate-resources, p 
    rocess-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-site, site, post-site, 
    site-deploy, pre-clean, clean, post-clean. -> [Help 1] 
    org.apache.maven.lifecycle.NoGoalSpecifiedException: No goals have been specifie 
    d for this build. You must specify a valid lifecycle phase or a goal in the form 
    at <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-ver 
    sion>]:<goal>. Available lifecycle phases are: validate, initialize, generate-so 
    urces, process-sources, generate-resources, process-resources, compile, process- 
    classes, generate-test-sources, process-test-sources, generate-test-resources, p 
    rocess-test-resources, test-compile, process-test-classes, test, prepare-package 
    , package, pre-integration-test, integration-test, post-integration-test, verify 
    , install, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, pos t-clean. 


原先通过 mvn -Dmaven.test.skip=true -Dcheckstyle.skip=true -Dpmd.skip=true  可以正常编译,现在突然无法编译了。

后来改为:
mvn-Dmaven.test.skip=true -Dcheckstyle.skip=true -Dpmd.skip=true  clean package
就可以正常编译了。


你可能感兴趣的:(No goals have been specified for this build. You must specify a valid li fecycle phase or a goal in)