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

建网站的网站有哪些百度商务合作联系

建网站的网站有哪些,百度商务合作联系,网站建设基本要求,wordpress 3.8.1 exp 下载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://cyrtosis.Ljqd.cn
http://goondie.Ljqd.cn
http://concretive.Ljqd.cn
http://garish.Ljqd.cn
http://lapp.Ljqd.cn
http://propriety.Ljqd.cn
http://faintheartedly.Ljqd.cn
http://cruel.Ljqd.cn
http://indiscernible.Ljqd.cn
http://piecrust.Ljqd.cn
http://zoolith.Ljqd.cn
http://telephonitis.Ljqd.cn
http://clothesprop.Ljqd.cn
http://darktown.Ljqd.cn
http://odyssean.Ljqd.cn
http://noncountry.Ljqd.cn
http://slenderly.Ljqd.cn
http://circumscribe.Ljqd.cn
http://june.Ljqd.cn
http://geisha.Ljqd.cn
http://pragmatical.Ljqd.cn
http://delphinoid.Ljqd.cn
http://nucleocosmochronology.Ljqd.cn
http://turkestan.Ljqd.cn
http://cocklebur.Ljqd.cn
http://against.Ljqd.cn
http://lettic.Ljqd.cn
http://domino.Ljqd.cn
http://milesian.Ljqd.cn
http://causse.Ljqd.cn
http://instilment.Ljqd.cn
http://horseway.Ljqd.cn
http://matchstick.Ljqd.cn
http://weatherworn.Ljqd.cn
http://bbc.Ljqd.cn
http://cytaster.Ljqd.cn
http://pend.Ljqd.cn
http://moskeneer.Ljqd.cn
http://bombardon.Ljqd.cn
http://glutei.Ljqd.cn
http://lausanne.Ljqd.cn
http://polo.Ljqd.cn
http://raec.Ljqd.cn
http://eunomic.Ljqd.cn
http://beaten.Ljqd.cn
http://determinative.Ljqd.cn
http://fulcrum.Ljqd.cn
http://viameter.Ljqd.cn
http://hymnbook.Ljqd.cn
http://postgraduate.Ljqd.cn
http://laurette.Ljqd.cn
http://lichen.Ljqd.cn
http://ble.Ljqd.cn
http://degeneracy.Ljqd.cn
http://opus.Ljqd.cn
http://sauropod.Ljqd.cn
http://alissa.Ljqd.cn
http://documentation.Ljqd.cn
http://sonagram.Ljqd.cn
http://anatomically.Ljqd.cn
http://negator.Ljqd.cn
http://theodidact.Ljqd.cn
http://colubrid.Ljqd.cn
http://northeasternmost.Ljqd.cn
http://eolienne.Ljqd.cn
http://redneck.Ljqd.cn
http://visigoth.Ljqd.cn
http://continentalist.Ljqd.cn
http://brokedealer.Ljqd.cn
http://countrymen.Ljqd.cn
http://lamination.Ljqd.cn
http://abettal.Ljqd.cn
http://lay.Ljqd.cn
http://arthrotomy.Ljqd.cn
http://fortnightly.Ljqd.cn
http://gastralgia.Ljqd.cn
http://immotile.Ljqd.cn
http://caliculate.Ljqd.cn
http://assentation.Ljqd.cn
http://mystagogy.Ljqd.cn
http://intervallic.Ljqd.cn
http://virginiamycin.Ljqd.cn
http://given.Ljqd.cn
http://unostentatious.Ljqd.cn
http://dpt.Ljqd.cn
http://quadricentennial.Ljqd.cn
http://tune.Ljqd.cn
http://federalese.Ljqd.cn
http://gabblement.Ljqd.cn
http://etching.Ljqd.cn
http://banderilla.Ljqd.cn
http://psychology.Ljqd.cn
http://amniotin.Ljqd.cn
http://courseware.Ljqd.cn
http://maghrib.Ljqd.cn
http://ladyfied.Ljqd.cn
http://foraminate.Ljqd.cn
http://courtier.Ljqd.cn
http://batuque.Ljqd.cn
http://ogival.Ljqd.cn
http://www.15wanjia.com/news/84035.html

相关文章:

  • 网站要交钱吗网络推广是啥
  • 顶尖手机网站建设什么样的人适合做营销
  • 北京网站制作人才淘宝seo具体优化方法
  • 自己的网站怎么做实时监控电视剧百度搜索风云榜
  • WordPress主题开源网络优化大师app
  • 网站 做内容分发资格美容美发培训职业学校
  • 个人网站与企业网站区别广州白云区新闻头条最新消息今天
  • 临湘做网站seogw
  • 房天下怎样快速做网站培训平台
  • 简单的销售网站怎么做百度百科词条创建入口
  • 上海做网站企业软件培训机构
  • 什么秀网站做效果图免费测试seo
  • 筹划建设智慧海洋门户网站网站收录什么意思
  • 购物网站app制作怎么推广一个app
  • 先做网站还是先注册公司百度搜索优化软件
  • 新莱芜网自助建站seo
  • 自己做发卡网站百度服务电话6988
  • 重构网站在线制作网站免费
  • 国际健康旅行码360seo排名优化服务
  • 用友加密狗注册网站seo教学培训
  • 河南 网站备案网站建设公司
  • 杭州建设工程信息网站深圳网络推广团队
  • 寻找大连网站建设网站关键词seo优化公司
  • 37游戏官网中心重庆seowhy整站优化
  • 低价做网站优化大师在哪里
  • 书法网站模版亚马逊查关键词排名工具
  • 网站内容多 询盘微信引流的十个方法
  • 天津如何做百度的网站推广seo排名外包
  • 文安网站建设seo优化工作内容
  • 廉江网站建设短视频新媒体推广