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

朝阳企业网站建设方案免费舆情监测平台

朝阳企业网站建设方案,免费舆情监测平台,网站教人做核能灯,三明做网站1.项目通过maven引入的jar多了之后&#xff0c;用maven打出的jar会非常庞大&#xff0c;我的是因为引入了ffmpeg的相关jar,所以&#xff0c;每次上传服务更新都要传输好久&#xff0c;修改maven打包方式&#xff0c;改为源码和lib分离模式 2.maven的pom.xml配置如下 <build…

1.项目通过maven引入的jar多了之后,用maven打出的jar会非常庞大,我的是因为引入了ffmpeg的相关jar,所以,每次上传服务更新都要传输好久,修改maven打包方式,改为源码和lib分离模式
2.maven的pom.xml配置如下

<build><plugins><!-- Step 1: 只打包源码(不包含依赖) --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><version>3.4.0</version><configuration><archive><manifest><mainClass>com.xxx.springboot.xxxxxApplication</mainClass> <!-- 替换为你自己的主类 --><addClasspath>true</addClasspath><classpathPrefix>lib/</classpathPrefix></manifest><manifestEntries><!-- 不上maven管理的jar引入方式 --><Class-Path>lib/DmJdbcDriver18-1.0.jar lib/encrypt-body-spring-boot-starter-1.2.3.jar</Class-Path></manifestEntries></archive></configuration></plugin><!-- Step 2: 使用 spring-boot-maven-plugin 打包并提取依赖到 lib/ --><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><executions><execution><id>repackage</id><goals><goal>repackage</goal></goals><configuration><skip>true</skip> <!-- 禁用默认 repackage --></configuration></execution><execution><id>build-info</id><goals><goal>build-info</goal></goals></execution></executions></plugin><!-- Step 3: 提取依赖到 target/lib/ --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-dependency-plugin</artifactId><executions><execution><id>copy-dependencies</id><phase>package</phase><goals><goal>copy-dependencies</goal></goals><configuration><outputDirectory>${project.build.directory}/lib</outputDirectory><overWriteReleases>false</overWriteReleases><overWriteSnapshots>false</overWriteSnapshots><overWriteIfNewer>true</overWriteIfNewer></configuration></execution></executions></plugin><!-- Step 4 (可选): 创建最终发布的 dist 文件夹 --><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-antrun-plugin</artifactId><executions><execution><phase>package</phase><goals><goal>run</goal></goals><configuration><target><mkdir dir="${project.build.directory}/dist"/><copy file="${project.build.directory}/${project.build.finalName}.jar"tofile="${project.build.directory}/dist/chenzhou.jar"/><copy todir="${project.build.directory}/dist/lib"><fileset dir="${project.build.directory}/lib"/></copy></target></configuration></execution></executions></plugin></plugins></build>

3.对于非maven仓库中的包处理方式

<!-- 非maven仓库包 -->
<dependency><groupId>com-dm</groupId><artifactId>DmJdbcDriver18</artifactId><version>1.0</version><scope>system</scope><systemPath>${project.basedir}/lib/DmJdbcDriver18.jar</systemPath>
</dependency>
<!-- 指定jar位置,多个以空格分开,对于不上版本结尾的名称,打包放入lib后会自动增加1.0,所以,引入jar写入也要增加 
例如:达梦数据库驱动包,项目实际引入DmJdbcDriver18.jar
在Class-Path中的配置要为:DmJdbcDriver18-1.0.jar
-->
<manifestEntries><Class-Path>lib/DmDialect-for-hibernate6.1-1.0.jar lib/DmJdbcDriver18-1.0.jar</Class-Path>
</manifestEntries>

如有不妥之处,请谅解!

http://www.dtcms.com/wzjs/309863.html

相关文章:

  • 做网站前台内容对应填充站长seo工具
  • 品牌网站如何建设营销策划运营培训机构
  • 通州富阳网站建设谷歌seo外包
  • 个人商城网站建设一个好的产品怎么推广
  • 一级a做爰片就在线看网站列举五种网络营销模式
  • 简单的手机网站模板下载安装中国局势最新消息今天
  • 做网站的流程 优帮云网站外链的优化方法
  • 深圳市做网站有哪些公司google seo是什么意思
  • 中信建设有限责任公司历任董事长南京百度推广优化排名
  • 微擎可以做网站吗天津百度推广公司电话
  • 美国做简历的网站网络营销过程步骤
  • 卖渔具的亲戚做网站seo优化方案报价
  • 网站首页标题设置太原关键词优化报价
  • dede可以做视频网站南宁网站优化公司电话
  • 华资源网站建设ui设计公司
  • 建设银行企业版网站上海高端网站定制
  • 十大网站建设推广app赚佣金接单平台
  • 湛江市seo网站设计联系方式多层次网络营销合法吗
  • 一个网站的建设步骤是优化seo哪家好
  • 网站设计与运营电商培训班一般多少钱一个月
  • 江阴响应式网站建设教育培训加盟
  • 更改域名代理商对网站有影响吗seo关键词优化技术
  • 深圳网站制作公司兴田德润官网多少百度小说app
  • 国内flask做的网站怎么给公司做网站
  • b2b网站怎么做推广国际最新新闻
  • 网站开发专员招聘直播引流推广方法
  • 怎么查看网站访问速度百度的竞价排名是哪种方式
  • 中山哪里做网站郑州网站推广报价
  • 政府网站建设费用明细获客
  • 网站建设要点windows优化大师要会员