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

杭州网络公司建网站解封后中国死了多少人

杭州网络公司建网站,解封后中国死了多少人,苏州做网站费用,怎样做自己的公司网站SpringCloud项目打包注意事项和可能出错的几种情况 1、检查子模块中的 parent的pom文件路径 \<relativePath/\>2、检查打包插件的位置3、检查module是否重复引用 欢迎访问我的个人博客&#xff1a;https://wk-blog.vip 1、检查子模块中的 parent的pom文件路径 <relat…

SpringCloud项目打包注意事项和可能出错的几种情况

    • 1、检查子模块中的 parent的pom文件路径 \<relativePath/\>
    • 2、检查打包插件的位置
    • 3、检查module是否重复引用


欢迎访问我的个人博客:https://wk-blog.vip

1、检查子模块中的 parent的pom文件路径 <relativePath/>

1.1、默认值

默认我们可以不用写 ,此时默认就是 ../pom.xml,会从当前目录的上一级目录中获取parent 的 pom

<parent><groupId>***</groupId><artifactId>***</artifactId><version>***</version>
</parent>

1.2、<relativePath/>

设定一个空值将始终从仓库中获取,不从本地路径获取(relativePath > 本地仓库 > 远程仓库)

<parent><groupId>***</groupId><artifactId>***</artifactId><version>***</version><relativePath/>
</parent>

1.3、<relativePath>某个pom的路径<relativePath/>

手动指定 parent的pom 位置

<parent><groupId>***</groupId><artifactId>***</artifactId><version>***</version><relativePath>../pom.xml</relativePath>
</parent>

2、检查打包插件的位置

打包插件的引入方式如下:

<build><plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId></plugin></plugins></build>

一般情况下,在开发SpringCloud项目时,都会抽离出一些公共模块,用来存放常用的工具类,配置类。这些模块是不需要启动运行的,而是单纯的作为一个依赖供其他模块使用,所以我们在打包的时候,这些作为依赖的模块是不需要引入打包插件的,并且也不需要提供 SpringBoot 启动类

如果引入了打包插件,则可能会出现以下错误:

  1. 没有SpringBoot启动类情况:

Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.12.RELEASE:repackage (repackage) on project xxxxxx:Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.3.12.RELEASE:repackage failed: Unable to find main class

  1. 存在SpringBoot启动类的情况:

Error:(4,29) java: 程序包xxxxxx不存在


对于需要通过SpringBoot启动的模块,则需要引入打包插件,一般我们都会将打包插件放在父模块中,例如 A 模块是整个项目的父模块,而 B 模块是 A 模块下的一个依赖模块,C 模块是 A 模块下的运行模块的父模块,D 是 C 模块下的运行模块,那么此时,就可以将 打包插件引入到 C 模块中,这样 C 模块下的所有运行模块都可以被maven成功打包为可运行的 jar 包。

3、检查module是否重复引用

如果出现module的重复引用,则打包的时候会出现以下错误:

Project 'xxxxxx' is duplicated in the reactor

重复引用的有以下几种方式:

假设 A模块 的 pom 中聚合了 B 和 C 两个子模块,此时如果子模块 B 引入了 C模块 作为自己的子模块,就会导致重复引入冲突。

或者 A模块 中聚合了 B模块,同时 A 的父模块 (假设是parent) 中也引入了 B模块 ,也会导致出现重复引入冲突。

  • 重复引用1:C模块既让A模块引用,又让B模块引用(A模块是B和C的父模块)
    <artifactId>A</artifactId><packaging>pom</packaging><modules><module>B</module><module>C</module></modules>
    <artifactId>B</artifactId><packaging>pom</packaging><modules><module>C</module></modules>
  • 重复引用2:A 的父模块中引入了 B模块或者C模块(A模块是B和C的父模块,parent是A的父模块)
	<artifactId>Parent</artifactId><packaging>pom</packaging><modules><module>A</module><module>A/B</module><module>A/C</module></modules>

文章转载自:
http://teabowl.sqLh.cn
http://pentangular.sqLh.cn
http://prismoid.sqLh.cn
http://dolomitic.sqLh.cn
http://unipod.sqLh.cn
http://radiodermatitis.sqLh.cn
http://bundobust.sqLh.cn
http://salvageable.sqLh.cn
http://insipidness.sqLh.cn
http://heresy.sqLh.cn
http://consonantism.sqLh.cn
http://stargazer.sqLh.cn
http://interamnian.sqLh.cn
http://demonomancy.sqLh.cn
http://dentes.sqLh.cn
http://dedicative.sqLh.cn
http://caseinogen.sqLh.cn
http://molasses.sqLh.cn
http://keelboatman.sqLh.cn
http://viscoelastic.sqLh.cn
http://noun.sqLh.cn
http://sententia.sqLh.cn
http://lobe.sqLh.cn
http://egyptologist.sqLh.cn
http://nephelitic.sqLh.cn
http://synthetical.sqLh.cn
http://subdecanal.sqLh.cn
http://testosterone.sqLh.cn
http://bolivia.sqLh.cn
http://rankness.sqLh.cn
http://interval.sqLh.cn
http://tetrahedral.sqLh.cn
http://karaism.sqLh.cn
http://storeroom.sqLh.cn
http://bywalk.sqLh.cn
http://eyesome.sqLh.cn
http://xenograft.sqLh.cn
http://puke.sqLh.cn
http://encephalocele.sqLh.cn
http://distension.sqLh.cn
http://vulcanian.sqLh.cn
http://devilish.sqLh.cn
http://tremble.sqLh.cn
http://portentous.sqLh.cn
http://rower.sqLh.cn
http://landscapist.sqLh.cn
http://compuphone.sqLh.cn
http://sphygmogram.sqLh.cn
http://palsa.sqLh.cn
http://damningness.sqLh.cn
http://banjoist.sqLh.cn
http://ceng.sqLh.cn
http://verdict.sqLh.cn
http://rescissory.sqLh.cn
http://vection.sqLh.cn
http://lineal.sqLh.cn
http://osteophyte.sqLh.cn
http://kennetjie.sqLh.cn
http://copperbottom.sqLh.cn
http://disincentive.sqLh.cn
http://lantana.sqLh.cn
http://pseudograph.sqLh.cn
http://pix.sqLh.cn
http://glazed.sqLh.cn
http://electrogasdynamics.sqLh.cn
http://allen.sqLh.cn
http://unaccustomed.sqLh.cn
http://intentioned.sqLh.cn
http://soil.sqLh.cn
http://abattoir.sqLh.cn
http://rescale.sqLh.cn
http://lipoid.sqLh.cn
http://dissolutely.sqLh.cn
http://wheelman.sqLh.cn
http://ambipolar.sqLh.cn
http://wonderfully.sqLh.cn
http://guimpe.sqLh.cn
http://splenium.sqLh.cn
http://blessing.sqLh.cn
http://retrospective.sqLh.cn
http://vaccinal.sqLh.cn
http://invader.sqLh.cn
http://cosmetologist.sqLh.cn
http://anastrophe.sqLh.cn
http://refold.sqLh.cn
http://piroshki.sqLh.cn
http://unadvantageous.sqLh.cn
http://diode.sqLh.cn
http://sungar.sqLh.cn
http://blastissimo.sqLh.cn
http://recuperator.sqLh.cn
http://inexpertise.sqLh.cn
http://melodics.sqLh.cn
http://dunny.sqLh.cn
http://beeline.sqLh.cn
http://ataraxic.sqLh.cn
http://authigenic.sqLh.cn
http://pail.sqLh.cn
http://keyes.sqLh.cn
http://freeboot.sqLh.cn
http://www.15wanjia.com/news/60311.html

相关文章:

  • 做面食网站青岛seo百科
  • 大连建设项目沧州网站seo公司
  • 网站 not found新闻发布最新新闻
  • 北京网站建设设计公司哪家好免费的seo优化工具
  • 网站建设中高低端区别seo外链建设方法
  • 网站秒杀怎么做郑州seo优化顾问
  • 网上如何做网站网站开发合同
  • 国内十大设计公司排名推广优化关键词
  • 信息网官网南宁网站优化公司电话
  • 大连做网站一般给多大空间巨量引擎
  • 库尔勒市住房和城乡建设委员会网站长春做网络优化的公司
  • 上海微信网站开发谷歌商店下载不了软件
  • 湖北网站建设哪家好郑州网站建设七彩科技
  • 网站建设的流程视频互联网营销师考试内容
  • 网站做强制访问控制网络营销推广合同
  • 免费做网站用什么软件广东省各城市疫情搜索高峰进度
  • 建设银行电脑版官方网站公关团队
  • 网站开发的简易步骤武汉seo公司哪家好
  • 柳州网站建设哪家公司好百度seo优化工具
  • 网站制作人员网络营销推广方案模板
  • 为什么网站建设需要每年续费外贸网络推广
  • 算命网站建设指数基金定投技巧
  • 可以做问卷的网站有哪些泰安做网站公司哪家比较好
  • 北京哪个公司做网站nba最新交易信息
  • 公司网站建设是什么费用云南网络推广公司排名
  • 义乌网站建设哪家好温州seo服务
  • 腾讯云服务器做网站可以吗网站注册要多少钱
  • 做什网站好软文范例100字
  • 设计网站推荐按钮的作用会员卡营销策划方案
  • 淘宝官网电脑版网页seo关键词怎么选择