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

相关推荐
shushangyun_1 小时前
2026智能采购商城系统选型指南:如何引领企业数字化采购升级
java·大数据·数据库·人工智能·机器学习
她说..1 小时前
Java 默认值设置方式
java·开发语言·后端·springboot
学渣超2 小时前
记一次分布式事务数据不一致的排查之旅:从超时到索引,层层剥茧
java·后端·架构
掉鱼的猫2 小时前
Agent Harness 实战指南:构建生产级 AI Agent 的"马具"框架
java·llm·aigc
带刺的坐椅2 小时前
Agent Harness 实战指南:构建生产级 AI Agent 的"马具"框架
java·ai·llm·agent·solon-ai
c238562 小时前
互斥锁高频面试题全解:从基础概念到底层实现,一文通关
java·c++·面试·职场和发展
error:(3 小时前
【系统与实战双精通】VS Code 调试 ROS2 Python 节点与 Launch 系统指南
android·java·python
Tian_Hang3 小时前
Eclipse Ditto 的权限策略
java·服务器·前端·网络·ide·ubuntu·eclipse
小蓝波4 小时前
docker 的命令
java·docker·容器
AI人工智能+电脑小能手4 小时前
【大白话说Java面试题 第155题】【06_Spring篇】第15题:Spring 如何解决循环依赖问题?
java·spring·循环依赖·三级缓存·aop代理