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

相关推荐
编程彩机9 分钟前
互联网大厂Java面试:从分布式事务到微服务优化的技术场景解读
java·spring boot·redis·微服务·面试·kafka·分布式事务
bbq粉刷匠10 分钟前
Java-排序2
java·数据结构·排序算法
编程彩机12 分钟前
互联网大厂Java面试:从Spring WebFlux到分布式事务的技术场景解析
java·微服务·面试·分布式事务·spring webflux
Jm_洋洋18 分钟前
【C++进阶】虚函数、虚表与虚指针:多态底层机制剖析
java·开发语言·c++
小马爱打代码20 分钟前
MyBatis:缓存体系设计与避坑大全
java·缓存·mybatis
时艰.25 分钟前
Java 并发编程:Callable、Future 与 CompletableFuture
java·网络
码云数智-园园27 分钟前
深入理解与正确实现 .NET 中的 BackgroundService
java·开发语言
好好研究29 分钟前
SpringBoot整合SpringMVC
xml·java·spring boot·后端·mvc
千寻技术帮30 分钟前
10386_基于SpringBoot的外卖点餐管理系统
java·spring boot·vue·外卖点餐
曹轲恒33 分钟前
SpringBoot整合SpringMVC(末)
java·spring boot·后端