Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle...

Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle

报错:

[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: 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,

 

解决方式:

打开pom.xml 在build节点中 增加

compile


        compile


        CharlieWebDemo
        
            
            
                ${basedir}/src/main/java
                
                    **/*.properties
                    **/*.xml
                
            
            
                ${basedir}/src/main/resources
            
        
        
            
            
                org.mybatis.generator
                mybatis-generator-maven-plugin
                1.3.5
                
                    true
                    true
                
            
        
    

 

转载于:https://www.cnblogs.com/2549372994jing/p/10526185.html

你可能感兴趣的:(Maven报错 解决方案。ERROR: No goals have been specified for this build. You must specify a valid lifecycle...)