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

相关推荐
该用户已不存在42 分钟前
OpenJDK、Temurin、GraalVM...到底该装哪个?
java·后端
TT哇1 小时前
@[TOC](计算机是如何⼯作的) JavaEE==网站开发
java·redis·java-ee
Tina学编程1 小时前
48Days-Day19 | ISBN号,kotori和迷宫,矩阵最长递增路径
java·算法
青川入梦1 小时前
MyBatis极速通关上篇:Spring Boot环境搭建+用户管理实战
java·开发语言·mybatis
执子手 吹散苍茫茫烟波2 小时前
leetcode415. 字符串相加
java·leetcode·字符串
小韩博2 小时前
网络安全(Java语言)脚本 汇总(二)
java·安全·web安全
萤丰信息2 小时前
技术赋能安全:智慧工地构建城市建设新防线
java·大数据·开发语言·人工智能·智慧城市·智慧工地
带刺的坐椅2 小时前
Java MCP 的鉴权?好简单的啦
java·鉴权·mcp·solon-ai
Pocker_Spades_A2 小时前
飞算JavaAI家庭记账系统:从收支记录到财务分析的全流程管理方案
java·开发语言
33255_40857_280593 小时前
掌握分页艺术:MyBatis与MyBatis-Plus实战指南(10年Java亲授)
java·mybatis