
java-maven
文章平均质量分 59
cy谭
求索计算惆怅断肠
展开
-
nexus本地拉取项目报错503 Repository offline
nexus本地拉取项目报错Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.3.0.RELEASE from/to hean (http://office.heancn.com:9081/repository/maven-public/): Transfer failed for http://office.heancn.com:9081/repository/maven-publ原创 2021-02-05 09:51:47 · 2206 阅读 · 2 评论 -
nexus仓库 执行mvn mvn deploy 报错400 Repository version policy
nexus仓库执行mvnmvn deploy 报错Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project xxx: Failed to retrieve remote metadata com.a.b.c.xxx:4.2.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata c.原创 2021-02-04 20:22:42 · 4886 阅读 · 0 评论 -
idea spring boot java maven 依赖重复报错解决
依赖重复报错Description:An attempt was made to call a method that does not exist. The attempt was made from the following location: org.apache.catalina.authenticator.AuthenticatorBase.startInternal(AuthenticatorBase.java:1220)The following method did..原创 2020-12-31 14:27:41 · 1412 阅读 · 0 评论 -
maven项目打包去掉不需要的module
场景:my-project 工程依赖my-core和my-commonmy-project在总工程AAA里面然后总工程pom里面还包含其他的工程之前每次install 都是执行总工程的pom,这样其他工程也跟着打包,浪费时间和资源。希望只打包my-project 以及他所依赖的工程即可两种方案一、用pom区分重新编写pom文件,然后加上需要重新编译的工程到 modules里面即可pom-my.xml............<modules>...原创 2020-11-13 16:27:22 · 6238 阅读 · 0 评论 -
maven资源文件的相关配置
maven资源文件的相关配置(转载)构建Maven项目的时候,如果没有进行特殊的配置,Maven会按照标准的目录结构查找和处理各种类型文件。src/main/java和src/test/java这两个目录中的所有*.java文件会分别在comile和test-comiple阶段被编译,编译结果分别放到了target/classes和targe/test-classes目录中,但是这两个目录中的其他文件都会被忽略掉。src/main/resouces和src/test/resources..转载 2020-09-20 01:37:43 · 317 阅读 · 0 评论 -
MAVEN打包包含其他模块配置文件
构建Maven项目的时候,如果没有进行特殊的配置,Maven会按照标准的目录结构查找和处理各种类型文件。第一步:src/main/java和src/test/java(代码)这两个目录中的所有*.java文件会分别在comiple和test-comiple阶段被编译,编译结果分别放到了target/classes和targe/test-classes目录中src/main/resouces和src/test/resources(配置)这两个目录中的文件也会分别被复制到target/class.原创 2020-09-20 01:23:55 · 3393 阅读 · 1 评论 -
将下载到本地的JAR包手动添加到Maven仓库
将下载到本地的JAR包手动添加到Maven仓库 常用Maven仓库网址:http://mvnrepository.com/http://search.maven.org/http://repository.sonatype.org/content/groups/public/http://people.apache.org/repo/m2-snapshot-reposito...转载 2020-03-16 20:22:39 · 262 阅读 · 0 评论 -
maven 版本依赖、版本更新、版本查询网站 mvnrepository.com
maven 版本依赖、版本更新、版本查询网站:https://mvnrepository.com/https://mvnrepository.com/原创 2019-09-23 09:10:23 · 3168 阅读 · 0 评论 -
Maven打包程序运行中文乱码
原因:中文操作系统编码为GBK,MAVEN安装后默认使用系统编码GBK,导致在编译UTF-8格式的源代码文件时出现编码不匹配的问题。设置前:解决办法:新增MAVEN环境变量Key: MAVEN_OPTSValue:-Xms256m -Xmx512m -Dfile.encoding=UTF-8设置后:...转载 2019-09-06 10:47:21 · 2423 阅读 · 0 评论 -
Springboot 项目 maven 打包不包含第三方jar包
参考文章:https://blog.csdn.net/gaozhiqiang111/article/details/88026057Maven 打包的时候包含第三方jar包,所以打出来的jar文件会很大,有时候我们希望在打包的过程中不包含第三方的jar文件。只需在pom文件中加入下面的代码即可<plugin> <groupId>org.apache.ma...转载 2019-07-30 11:57:59 · 3571 阅读 · 1 评论