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

       

                              

                       

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值