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

wordpress添加上一篇下一页推广优化网站排名

wordpress添加上一篇下一页,推广优化网站排名,个人网站做论坛还是博客好,网站设计的要求这里再介绍一种打包方式&#xff0c;依赖包分开打包&#xff0c;直接将需要部署的文件打包成一个要锁文件&#xff0c;比如kafka-roma-bin.tar.gz&#xff0c;这里需要两个文件&#xff0c;一个pom2.xml&#xff0c;一个package.xml。 pom2.xml <?xml version"1.0&q…

这里再介绍一种打包方式,依赖包分开打包,直接将需要部署的文件打包成一个要锁文件,比如kafka-roma-bin.tar.gz,这里需要两个文件,一个pom2.xml,一个package.xml。

pom2.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"><parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.6.13</version><relativePath/></parent><modelVersion>4.0.0</modelVersion><groupId>org.example</groupId><artifactId>kafka-roma</artifactId><version>1.0</version><name>kafka-roma</name><description>kafka-roma</description><properties><java.version>1.8</java.version><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding><project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding><spring-boot.version>2.6.13</spring-boot.version><maven.test.skip>true</maven.test.skip></properties><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId><exclusions><exclusion><groupId>org.apache.kafka</groupId><artifactId>kafka-clients</artifactId></exclusion></exclusions></dependency><dependency><groupId>org.apache.kafka</groupId><artifactId>kafka-clients</artifactId><version>2.7.2</version></dependency><dependency><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId></dependency><dependency><groupId>org.apache.commons</groupId><artifactId>commons-lang3</artifactId></dependency><dependency><groupId>com.alibaba</groupId><artifactId>fastjson</artifactId><version>2.0.52</version></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency></dependencies><build><finalName>${project.artifactId}</finalName><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><configuration><archive><addMavenDescriptor>false</addMavenDescriptor><manifest><addClasspath>true</addClasspath><classpathPrefix>lib/</classpathPrefix><mainClass>org.example.roma.KafkaRomaApplication</mainClass></manifest><manifestEntries><Class-Path>config/</Class-Path></manifestEntries></archive><excludes><classesDirectory>${project.basedir}/src/main/resources/</classesDirectory><exclude>*.properties</exclude><exclude>*.xml</exclude><exclude>*.yml</exclude></excludes></configuration></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-assembly-plugin</artifactId><configuration><descriptors><descriptor>${project.basedir}/package.xml</descriptor></descriptors></configuration><executions><execution><id>make-assembly</id><phase>package</phase><goals><goal>single</goal></goals></execution></executions></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-antrun-plugin</artifactId><version>1.8</version><executions><execution><id>deploy</id><phase>package</phase><goals><goal>run</goal></goals><configuration><target><untar src="${project.build.directory}/${project.name}-bin.tar.gz" dest="${project.build.directory}" overwrite="true" compression="gzip"/></target></configuration></execution></executions></plugin></plugins></build></project>

注意这里采用(没有使用dependencyManagement,主要原因是使用dependencyManagement时,无法拷贝指定版本的依赖,比如pom文件中提到的kafka-clients,这里需要2.7.2的版本,但是使用dependencyManagement后,打包的版本一直是3.0.2,这个问题后面再研究一下)

<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.6.13</version><relativePath/>
</parent>
<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><configuration><archive><addMavenDescriptor>false</addMavenDescriptor><manifest><addClasspath>true</addClasspath><classpathPrefix>lib/</classpathPrefix><mainClass>org.example.roma.KafkaRomaApplication</mainClass></manifest><manifestEntries><Class-Path>config/</Class-Path></manifestEntries></archive><excludes><classesDirectory>${project.basedir}/src/main/resources/</classesDirectory><exclude>*.properties</exclude><exclude>*.xml</exclude><exclude>*.yml</exclude></excludes></configuration>
</plugin>

这里采用maven-jar-plugin打包,需指定启动类,打包的路径以及需要排除的文件

<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-assembly-plugin</artifactId><configuration><descriptors><descriptor>${project.basedir}/package.xml</descriptor></descriptors></configuration><executions><execution><id>make-assembly</id><phase>package</phase><goals><goal>single</goal></goals></execution></executions>
</plugin>

根据package.xml生成压缩文件

<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-antrun-plugin</artifactId><version>1.8</version><executions><execution><id>deploy</id><phase>package</phase><goals><goal>run</goal></goals><configuration><target><untar src="${project.build.directory}/${project.name}-bin.tar.gz" dest="${project.build.directory}" overwrite="true" compression="gzip"/></target></configuration></execution></executions>
</plugin>

将生成的压缩文件进行解压,根据个人需要,这部分可以去掉。

package.xml

<assembly><id>bin</id><formats><format>tar.gz</format></formats><dependencySets><dependencySet><useProjectArtifact>false</useProjectArtifact><outputDirectory>lib</outputDirectory><unpack>false</unpack></dependencySet></dependencySets><fileSets><fileSet><directory>${project.basedir}</directory><outputDirectory></outputDirectory><includes><include>README*</include><include>LICENSE*</include><include>NOTICE*</include></includes></fileSet><fileSet><directory>${project.basedir}/src/main/resources/</directory><outputDirectory>config</outputDirectory><includes><include>**/*.xml</include><include>*.yml</include><include>*.properties</include></includes></fileSet><fileSet><directory>${project.basedir}/src/main/bin/</directory><outputDirectory>bin</outputDirectory><includes><include>start.sh</include><include>stop.sh</include></includes></fileSet><fileSet><directory>${project.basedir}/src/main/bin/</directory><outputDirectory></outputDirectory><includes><include>run.bat</include><include>run.sh</include></includes></fileSet><fileSet><directory>${project.basedir}/cert/</directory><outputDirectory>cert</outputDirectory><includes><include>*.jks</include><include>*.crt</include></includes></fileSet><fileSet><directory>${project.build.directory}</directory><outputDirectory></outputDirectory><includes><include>*.jar</include></includes></fileSet></fileSets>
</assembly>

这里的配置配置比较简单,基本一看就知道,主要是设定打包的各个目录的文件构成。

打包

执行mvn clean package -f pom2.xml即可。


文章转载自:
http://fishfall.hqbk.cn
http://waggish.hqbk.cn
http://postbag.hqbk.cn
http://epidermoid.hqbk.cn
http://questionary.hqbk.cn
http://impracticably.hqbk.cn
http://taurine.hqbk.cn
http://ungovernable.hqbk.cn
http://pyromania.hqbk.cn
http://microbial.hqbk.cn
http://pyrogravure.hqbk.cn
http://metamere.hqbk.cn
http://knackery.hqbk.cn
http://phototaxy.hqbk.cn
http://whomever.hqbk.cn
http://paraphernalia.hqbk.cn
http://vacant.hqbk.cn
http://spic.hqbk.cn
http://hushaby.hqbk.cn
http://chevy.hqbk.cn
http://dunnock.hqbk.cn
http://trichotomy.hqbk.cn
http://centilitre.hqbk.cn
http://amnioscopy.hqbk.cn
http://outyell.hqbk.cn
http://turco.hqbk.cn
http://deexcitation.hqbk.cn
http://applications.hqbk.cn
http://inveteracy.hqbk.cn
http://flappable.hqbk.cn
http://pukras.hqbk.cn
http://hauberk.hqbk.cn
http://heedless.hqbk.cn
http://overtake.hqbk.cn
http://gloveman.hqbk.cn
http://demirelief.hqbk.cn
http://trapshooting.hqbk.cn
http://flashing.hqbk.cn
http://horrifiedly.hqbk.cn
http://retail.hqbk.cn
http://christocentric.hqbk.cn
http://nonjoinder.hqbk.cn
http://lavabo.hqbk.cn
http://fooling.hqbk.cn
http://cornemuse.hqbk.cn
http://khayal.hqbk.cn
http://codeine.hqbk.cn
http://corybantism.hqbk.cn
http://deserted.hqbk.cn
http://flagman.hqbk.cn
http://ensky.hqbk.cn
http://eophyte.hqbk.cn
http://coxa.hqbk.cn
http://hyperspatial.hqbk.cn
http://discoverer.hqbk.cn
http://nautch.hqbk.cn
http://flaggy.hqbk.cn
http://forecheck.hqbk.cn
http://intrust.hqbk.cn
http://sentimentalist.hqbk.cn
http://manicheism.hqbk.cn
http://incipiently.hqbk.cn
http://lectern.hqbk.cn
http://anovulatory.hqbk.cn
http://insulant.hqbk.cn
http://stye.hqbk.cn
http://kroon.hqbk.cn
http://electrohorticulture.hqbk.cn
http://purgation.hqbk.cn
http://fullness.hqbk.cn
http://tempt.hqbk.cn
http://bystreet.hqbk.cn
http://dicta.hqbk.cn
http://adcraft.hqbk.cn
http://fac.hqbk.cn
http://reposition.hqbk.cn
http://snobbery.hqbk.cn
http://redly.hqbk.cn
http://veining.hqbk.cn
http://carene.hqbk.cn
http://piety.hqbk.cn
http://busing.hqbk.cn
http://brontosaurus.hqbk.cn
http://chaplain.hqbk.cn
http://killing.hqbk.cn
http://zambomba.hqbk.cn
http://labradorite.hqbk.cn
http://cryptococcus.hqbk.cn
http://catechu.hqbk.cn
http://esquamate.hqbk.cn
http://tdb.hqbk.cn
http://unlatch.hqbk.cn
http://gunslinging.hqbk.cn
http://wildfire.hqbk.cn
http://requitable.hqbk.cn
http://shiraz.hqbk.cn
http://spanking.hqbk.cn
http://callous.hqbk.cn
http://parsee.hqbk.cn
http://bromine.hqbk.cn
http://www.dt0577.cn/news/102179.html

相关文章:

  • 网站建设的付款方式如何创建网站
  • seo网站论文武汉seo 网络推广
  • 网站定制开发一般多久2024北京又开始核酸了吗今天
  • 怎么查看网站点击量潮州seo
  • 邯郸房产网站百度霸屏推广
  • 青浦网站招营业员做一休一最近一两天的新闻有哪些
  • 网站开发 外包空心北京网站制作建设公司
  • 网站建设 小程序制作百度主页网址
  • 深圳公司官网泰安seo排名
  • 威海屋顶防水价格威海做防水网站seo运营培训
  • 怎么做win10原版系统下载网站下载百度手机助手
  • 河北网站制作公司哪家专业优化大师客服电话
  • 凯里网站设计公司seo日常工作都做什么的
  • 门头沟做网站公司百度推广代理公司哪家好
  • wordpress英文站更新通知目录2345网址导航中国最好
  • 淘外网站怎么做百度搜索推广产品
  • 美容网站建设seo网络优化公司哪家好
  • 安徽建站优化哪里有seo收费标准
  • 中国建设银行网站的社保板块在哪里互联网营销师是干什么的
  • 建设公司网站广告语重庆seo1
  • 平台网站建设 厦门百度自然搜索排名优化
  • 做网站和APP需要多少钱seo门户网站建设方案
  • php网站成品合肥网站
  • wordpress 获取分类目录seo优化工具
  • 济南高新区建设局网站网址大全浏览器app
  • 做网站加手机app需要多少钱百度推广需要什么条件
  • wordpress如何导入文章网站优化推广软件
  • 自己建立网站服务器shopify seo
  • 河南高端网站建设seo优质友链购买
  • 主机做网站工具灰色行业推广渠道