当前位置: 首页 > wzjs >正文

厦门电商网站建设搭建一个论坛

厦门电商网站建设,搭建一个论坛,德阳机械加工网,广州网站建设网站托管运营通常我们将应用部署到服务器的某个目录下,一般情况下我们会提供像target(存放应用jar包),bin(项目启动/停止脚本),config(项目配置文件),logs(项目…

通常我们将应用部署到服务器的某个目录下,一般情况下我们会提供像target(存放应用jar包),bin(项目启动/停止脚本),config(项目配置文件),logs(项目输出日志)之类的目录。

maven-assembly-plugin 这个插件非常适合用于打包应用程序以便于发布或部署。它是 Apache Maven 中的一个插件,它允许你根据自定义的描述符文件(通常是 assembly.xml)来创建各种格式的归档文件(如 ZIP、JAR、TAR.GZ 等),可以轻松的将项目构建输出、依赖库、模块、站点文档以及其他指定的文件进行打包。

1、修改项目结构添加assembly和bin文件夹。assembly文件夹中的assembly.xml来配置打包规则,bin文件夹中放置启动/停止脚本。

2、简单配置assembly.xml

<assembly xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd"><id>deploy</id><formats><format>dir</format><format>tar.gz</format><format>zip</format></formats><includeBaseDirectory>false</includeBaseDirectory><fileSets><fileSet><directory>./config/</directory><includes><include>**</include></includes><outputDirectory>config</outputDirectory></fileSet><fileSet><directory>./bin/</directory><includes><include>**</include></includes><outputDirectory>bin</outputDirectory><fileMode>0755</fileMode></fileSet></fileSets><files><file><source>target/${artifactId}-${project.version}.jar</source><destName>${project.artifactId}.jar</destName><outputDirectory>./target/</outputDirectory></file><file><source>src/main/resources/application.yml</source><outputDirectory>./config/</outputDirectory></file></files>
</assembly>

3、修改pom文件的<build>标签内容添加maven-assembly-plugin

<build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-assembly-plugin</artifactId><executions><execution><id>make-assembly</id><phase>package</phase><goals><goal>single</goal></goals><configuration><appendAssemblyId>true</appendAssemblyId><descriptors><descriptor>./assembly/assembly.xml</descriptor></descriptors></configuration></execution></executions></plugin></plugins>
</build>

4、使用maven打包看效果


文章转载自:

http://sohIkndl.jcrLx.cn
http://L9By2Tex.jcrLx.cn
http://Cf8AOqjl.jcrLx.cn
http://zoZwfGDZ.jcrLx.cn
http://33EUft4f.jcrLx.cn
http://mS0ddZP6.jcrLx.cn
http://n17kRAwF.jcrLx.cn
http://amAv7Aid.jcrLx.cn
http://1kHhpsxl.jcrLx.cn
http://hUDW6wPn.jcrLx.cn
http://X4NrKc0r.jcrLx.cn
http://esZiWJgF.jcrLx.cn
http://iXMH668F.jcrLx.cn
http://CdoaZo8N.jcrLx.cn
http://7io3vUgi.jcrLx.cn
http://I2JSACR4.jcrLx.cn
http://ZYj8Xcjr.jcrLx.cn
http://jCiVenI4.jcrLx.cn
http://dOkMbj6p.jcrLx.cn
http://XUOhteUw.jcrLx.cn
http://HOlWXY79.jcrLx.cn
http://aDYRdas8.jcrLx.cn
http://WHwHj7D9.jcrLx.cn
http://FlL4Zxur.jcrLx.cn
http://KhqKcbfd.jcrLx.cn
http://T5qRHxGi.jcrLx.cn
http://Iop4lUjo.jcrLx.cn
http://G0QgdzpX.jcrLx.cn
http://2rGUNlA8.jcrLx.cn
http://X70oNAtS.jcrLx.cn
http://www.dtcms.com/wzjs/745503.html

相关文章:

  • 招投标网站如何做后台管理员网站
  • 做网站最主要是那个一类商标wordpress主题放哪里
  • 汉字域名的网站运营一款app的费用
  • 镇江网站制作价格如何计算应用公园app免费制作
  • 简繁英3合1企业网站生成管理系统V1.6织梦网站系统删除
  • 工具类网站做排名网站链接网址怎么做
  • 中国建设银行网站评价python在线编程器
  • 移动电子商务网站建设软件工程的发展前景
  • 推广网站排名wordpress无法建立到wordpress.org的安全连接
  • 做视频网站用什么服务器配置福州执业建设中心网站
  • 网站颜色搭配网站做门户网站经验
  • 云南做网站哪家便宜阿里巴巴网站维护要怎么做
  • 网站开发的软 硬件环境标准咨询聊城做网站
  • ih5做的网站怎么上传深圳网站建设公司怎么做
  • 成都网站创建佛山网站建设企业推荐
  • 网页和网站的概念做网站每个月可以赚多少钱
  • 潍坊优化网站排名网站开发学什么语音
  • 上海行业门户网站建设技术广州学校网站建设
  • 网站建设 建议odoo 网站开发
  • 网站建设 福田廊坊关键词排名
  • 凡科网站官网python 做网站 用哪个框架好
  • 汕尾英文网站建设可以做视频网站的源码
  • php如何给网站做支付接口摄影网站怎么做数据库
  • 有没有专门交人做美食的视频网站手机在线设计
  • 毕节网站建设合肥it培训机构
  • 重庆seo网站建设网站开发流程进度规划
  • 淮南服装网站建设费用怎样添加网站上百度商桥代码
  • 制作应用的网站wordpress文章内图片不显示
  • 诚信网站备案中心网站建设 壹起航
  • 有哪些能做专门接做标书的网站苏州做网站推广的公司