栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

springboot maven-site-plugin使用

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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  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  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  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

       

                              

                       

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/293163.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号