maven问题与解决方案、部署

问题一、was cached in the local repository, resolution will not be reattempted until the update interval of

idea中 Maven中Lifecycle时,能正常clean 和 install,但在idea的Terminal中mvn install出现:

was cached in the local repository, resolution will not be reattempted until the update interval of local-nexus-mirror has elapsed or updates are forced

此时本地是有的,但远程仓库是没有的,此时,我们可以 尝试在本地进行cmd的安装,即可。

mvn install:install-file -Dfile=C:\Users\xxxxx\.m2\repository\oracle\ojdbc6\1.1-no\ojdbc6-1.1.jar -DgroupId=oracle -DartifactId=ojdbc6 -Dversion=1.1 -Dpackaging=jar

问题二、Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies (default-cli) on project offer-server-tdgw: Execution default-cli of goal org.apache.maven.plugins:maven

-dependency-plugin:2.8:copy-dependencies failed:

可能maven需要重新设置,版本不一样,Setting 找到Maven ,重新设置下即可。

问题三、部署

mvn clean install

java -Dloader.path=/path/to/lib -jar /path/to/springboot-jsp-0.0.1-SNAPSHOT.jar

或者在maven中输入一下命令导出需要用到的jar包

mvn dependency:copy-dependencies -DoutputDirectory=F:ideaWorkPlaceAnalysisEnginelib -DincludeScope=runtime

最终目录文件结构是:

├── lib #lib文件夹

└── springboot-jsp-0.0.1-SNAPSHOT.jar

java.exe -Djupiter.local.address=xx -Xmx4g -classpath ./xxr.jar xxx.BinaryxxxServer C:\xxxx\config\txxxw.setting

相关推荐
程序员清风4 分钟前
Dubbo RPCContext存储一些通用数据,这个用手动清除吗?
java·后端·面试
摇滚侠9 分钟前
Spring Boot 3零基础教程,条件注解,笔记09
java·spring boot·笔记
南瓜小米粥、10 分钟前
从可插拔拦截器出发:自定义、注入 Spring Boot、到生效路径的完整实践(Demo 版)
java·spring boot·后端
Huangmiemei91112 分钟前
Spring Boot项目的常用依赖有哪些?
java·spring boot·后端
天天摸鱼的java工程师20 分钟前
接口联调总卡壳?先问自己:真的搞清楚 HTTP 的 Header 和 Body 了吗?
java·后端
真的想不出名儿26 分钟前
上传头像到腾讯云对象存储-前端基于antdv
java·数据库·腾讯云
Nan_Shu_61435 分钟前
学习SpringBoot
java·spring boot·后端·学习·spring
JAVA学习通1 小时前
SpringBoot Layui ThymeLeaf 一点点学习心得
java·spring
考虑考虑1 小时前
JDK25中的StructuredTaskScope
java·后端·java ee
雨过天晴而后无语1 小时前
Windchill的codebase目录打成jar
java·jar