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

相关推荐
别动我齐刘海3 小时前
C++ 工程化学习
java·linux·前端·c++·学习·机器学习·机器人
code2cat4 小时前
Java进阶篇之AtomicLongFieldUpdater:把累计额度留在对象字段中
java·cas·并发编程
WeiXin_DZbishe4 小时前
基于springboot城市公交实时运营与调度系统-计算机毕设 附源码【课程设计】66173
java·vue.js·spring boot·后端·python·php·课程设计
泡茶喝茶写代码4 小时前
A股量化数据工程:从 REST 接口到策略信号(第 18 篇):放量缩量异动扫描
java·python·股票数据api·股票数据api接口·股票api数据接口·股票量化数据api·股票量化数据接口
wewowilling5 小时前
认识微服务
java·运维·微服务·springcloud
代码什么用5 小时前
Java Web 7-10
java·servlet
蜗牛互联网7 小时前
GPT-6 与 Intelligent UI:从回答到可审计操作的产品迁移
java·人工智能·后端
SL_staff7 小时前
运维救火实录:钉钉考勤API变更引发工资计算异常,我们用JVS-Logic可视化逻辑引擎实现分钟级热修复
java·mysql·全栈
SunnyDays10117 小时前
Java 查找并高亮 Word 文字:精确查找及正则表达式模糊查找
java·查找文字·word 文档·高亮文字·正则匹配查找·模糊查找