maven:mvn site 报错Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default

报错:

Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on project Hello: Execution default-site of goal org.apache.maven.plugins:maven-site-plugin:3.3:site failed: A required class was missing while executing org.apache.maven.plugins:maven-site-plugin:3.3:site: org/apache/maven/doxia/siterenderer/DocumentContent

解决:在pox.xml中加入插件(代码如下)


  

  
   
 
    
  org.apache.maven.plugins
      
maven-project-info-reports-plugin
    
  2.7
   
 

   
 
      
org.apache.maven.plugins
   
   maven-site-plugin
      
3.3
     
 
       
 zh_CN
   
   
    

 
 



结果:

maven:mvn site 报错Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default_第1张图片

项目中多了site文件夹

maven:mvn site 报错Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default_第2张图片

你可能感兴趣的:(maven:mvn site 报错Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default)