springboot maven-site-plugin使用


springboot maven-site-plugin使用

                           

官网:Apache Maven Site Plugin – Introduction

                                

                                      

***********************

maven site plugin

                                 

The Site Plugin is used to generate a site for the project. 
# site插件用来生成项目站点

The generated site also includes the project's reports that 
were configured in the POM
# 项目站点也包含pom中配置的项目报告

                             

site goals

# site:site 
is used generate a site for a single project. Note that links between module sites in a 
multi module build will not work, since local build directory structure doesn't match 
deployed site.
# 生成单个项目报告
# 多模块项目中,由于本地构造目录结构不匹配发布站点,多模块之间的链接不会起作用

# site:deploy 
is used to deploy the generated site using Wagon supported protocol to the site URL 
specified in the <distributionManagement> section of the POM.
# 发布生成的站点

# site:run 
starts the site up, rendering documents as requested for faster editing. It uses Jetty as the web server.

# site:stage 
generates a site in a local staging or mock directory based on the site URL specified in 
the <distributionManagement> section of the POM. It can be used to test that links 
between module sites in a multi module build work. This goal requires the site to already 
have been generated using the site goal, such as by calling mvn site.

# site:stage-deploy 
deploys the generated site to a staging or mock directory to the site URL specified in 
the <distributionManagement> section of the POM.

# site:attach-descriptor 
adds the site descriptor (site.xml) to the list of files to be installed/deployed. For 
more references of the site descriptor, here's a link.

# site:jar 
bundles the site output into a JAR so that it can be deployed to a repository.
# 将站点输出到jar包中

# site:effective-site 
calculates the effective site descriptor, after inheritance and interpolation

                          

                         

***********************

示例

                    

mvn site

                            

                         

生成的site文件:html展示project、dependency等信息

                            

                        

index.html

                            

                    

project-info.html

       

                   

dependency-info.html

       

                              

                       

Guess you like

Origin blog.csdn.net/weixin_43931625/article/details/120594408