随笔分类 -  Maven

maven
摘要:【Maven】解决 Since Maven 3.8.1 http repositories are blocked.问题 在你本地setting.xml文件中 附上这段,然后 mvn clean 后,重新 Reimport就可以了 <!-- 解决 Since Maven 3.8.1 http rep 阅读全文
posted @ 2024-04-24 16:28 Angel挤一挤 阅读(4373) 评论(0) 推荐(0) 编辑
摘要:Maven的porfile与SpringBoot的profile结合使用完成多环境配置文件切换 详解 Maven官网Proflie说明 一.Maven的porfile 首先弄清楚Maven的profile 1.pom.xml增加多环境配置 <!-- 多环境配置 start --> <profiles 阅读全文
posted @ 2021-07-22 17:28 Angel挤一挤 阅读(1981) 评论(0) 推荐(1) 编辑
摘要:如题:maven项目打包jar 打包源码,mvn命令打包源码 需要: 1.pom.xml文件配置如下:核心红色显示 <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <a 阅读全文
posted @ 2020-05-05 15:50 Angel挤一挤 阅读(2261) 评论(0) 推荐(0) 编辑
摘要:参考地址: https://blog.csdn.net/liuxiao723846/article/details/52604377 报错: maven 项目 deploy 报错: [ERROR] Failed to execute goal org.apache.maven.plugins:mav 阅读全文
posted @ 2020-04-06 11:12 Angel挤一挤 阅读(49759) 评论(0) 推荐(0) 编辑
摘要:参考:Maven实用技巧 https://msd.misuland.com/pd/3255817963235707346 报错: maven项目 mvn install 报错: [ERROR] Failed to execute goal on project 项目名XXX: Could not r 阅读全文
posted @ 2020-04-06 10:45 Angel挤一挤 阅读(2152) 评论(0) 推荐(0) 编辑
摘要:maven项目执行编译或构建命令 ,mvn clean install 或 mvn build 报错: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test 报错如下: 解决方法: 添加: 阅读全文
posted @ 2020-04-06 10:10 Angel挤一挤 阅读(4451) 评论(0) 推荐(1) 编辑
摘要:使用idea的maven进行deploy操作失败,报错: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project proengine-db-s 阅读全文
posted @ 2019-11-15 19:09 Angel挤一挤 阅读(18212) 评论(0) 推荐(0) 编辑
摘要:【在包含.git目录所在的项目根目录下,打开git Bash】 参考地址:https://www.cnblogs.com/sxdcgaq8080/p/11655170.html 参考地址:https://www.git-scm.com/book/zh/v2/Git-%E5%9F%BA%E7%A1%8 阅读全文
posted @ 2019-11-09 09:32 Angel挤一挤 阅读(762) 评论(0) 推荐(0) 编辑
摘要:idea中使用maven编译项目,报错java: 错误: 找不到符号 错误状况展示: 如果报这种错,是因为项目中真的找不到报错的方法或者枚举 字段之类的,但实际是 : 点击 File Path 实际 查看项目中 这个domain中的这个类,是有这个方法的 好,再查看maven的本地仓库reposit 阅读全文
posted @ 2019-11-08 13:46 Angel挤一挤 阅读(16212) 评论(1) 推荐(3) 编辑
摘要:在idea中开发web项目,解决maven的jar包冲突的方法 第一步: 先对项目进行 clean ,再进行install 第二步: 出现NoSuchMethodException,ClassNotFoundException,NoClassDefFoundError极大概率是jar冲突。 所以,这 阅读全文
posted @ 2019-11-04 14:30 Angel挤一挤 阅读(11054) 评论(0) 推荐(0) 编辑
摘要:引入问题: idea的pom文件修改,引入新的jar包,无效,本地仓库始终没有下载新jar包的问题解决【idea pom Dependency not found】 如题,引入一个新的jar包,在项目的pom文件中: 或者如下引入任意一个jar包,都提示:Dependency not found 而 阅读全文
posted @ 2019-11-02 13:10 Angel挤一挤 阅读(12083) 评论(1) 推荐(4) 编辑
摘要:本篇适用于jenkins是启动的docker容器,自动安装JDK Maven Git Docker等全局工具 docker启动的Jenkins容器 - 系统管理 - 全局工具配置 - 自动安装JDK、Maven、Git、Docker 1.打开系统管理 全局工具配置 2.配置JDK的自动安装【可以安装 阅读全文
posted @ 2019-03-21 14:57 Angel挤一挤 阅读(4125) 评论(1) 推荐(0) 编辑
摘要:maven项目引用POI的jar: 引入后XSSFWorkbook依旧无法使用的话,需要继续引用这个jar包 阅读全文
posted @ 2019-02-22 11:11 Angel挤一挤 阅读(16294) 评论(1) 推荐(1) 编辑
摘要:引申:maven打包多模块spring cloud服务报错 程序包XXX不存在 : https://www.cnblogs.com/sxdcgaq8080/p/10117852.html spring cloud多模块打包,打包的jar包只有几k,jar包无法运行,运行报错:no main mani 阅读全文
posted @ 2018-12-17 11:46 Angel挤一挤 阅读(32041) 评论(0) 推荐(0) 编辑
摘要:>>>>spring cloud 多模块 >>>>在idea上使用maven插件打包,欲打包成jar包后 进行部署 >>>> 报错:程序包XXX不存在 OK,开始研究这个问题: 1.服务开始打包啦,先使用clean进行清理 一般清理都会成功,就是删除target目录下的编译的class文件以及配置等 阅读全文
posted @ 2018-12-14 10:00 Angel挤一挤 阅读(18733) 评论(1) 推荐(2) 编辑
摘要:一直对于maven中解决jar包依赖问题的解决方法纠结不清: 下面这个例子可以说明一个很简单的解决方法: 项目启动报错: 解决方案: 直接看报错内容,可以看出 是log4j和logback-classic的jar包冲突。 最简单的解决方法:将最新添加的jar包依赖,依次删除,然后启动服务,查看是因为 阅读全文
posted @ 2018-11-23 14:30 Angel挤一挤 阅读(5070) 评论(2) 推荐(1) 编辑
摘要:【本篇方法如果无效,请使用终极解决方法】 【终极解决方法】:https://www.cnblogs.com/sxdcgaq8080/p/10117852.html 如下,在右侧maven工具中进行打包操作: 报错如下: 但是提示的代码位置一个错误都没有 解决方法: 在报错的代码页 如果依旧无法解决或 阅读全文
posted @ 2018-11-14 20:05 Angel挤一挤 阅读(15259) 评论(2) 推荐(1) 编辑
摘要:maven命令 package、install、deploy 的区别 阅读全文
posted @ 2018-10-24 14:58 Angel挤一挤 阅读(329) 评论(0) 推荐(0) 编辑
摘要:报错内容如下: 解决方案: 打开终端,【前提是你的环境装了maven】 命令执行: 即可全部打包完成!!! 如果有别的问题 可以依次解决完成后,再执行这个命令进行打包!! 阅读全文
posted @ 2018-10-24 09:28 Angel挤一挤 阅读(7530) 评论(0) 推荐(1) 编辑
摘要:使用maven打包报错如下: 解决方法: 打开自己的maven的setting配置文件 搜索mirrors关键字,加入mirror镜像节点 <mirror> <id>osc</id> <mirrorOf>*</mirrorOf> <url>http://maven.oschina.net/conte 阅读全文
posted @ 2018-10-24 09:12 Angel挤一挤 阅读(31840) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示