当前位置:网站首页>Invalid or corrupt jarfile xxx.jar
Invalid or corrupt jarfile xxx.jar
2022-07-30 16:35:00 【Out of the language】
I. Problems encountered
The feature of Artifacts packaging is that a large number of jar packages will be generated in the directory, and each dependent package exists independently, and only the development package can be replaced when updating.
The package that I have been using Artifacts to type before will generate the MANIFEST.MF file. Later, "Invalid or corrupt jarfile xxx.jar" always appears, and it can be successful once or twice, which is very distressing.
Second, the solution
Use mav install instead to package, which can solve the above problems.The feature is that all dependent packages will be packaged into a jar package, so the jar will be relatively large, ranging from tens of megabytes to 100 or 200 megabytes.
I have a new problem.The jar can be generated, but it prompts that a jar does not exist during execution.
I know this jar package, it is a private package, it is not in the maven repository, it is accessed in the form of systemPath.
Three, import maven local library
The web is a good thing, and a solution has been found.Import the private jar package into the maven local repository.The command is as follows:
mvn install:install-file -Dfile=xxx\xxx.jar -DgroupId=xxx -DartifactId=xxx -Dversion=x.x.x -Dpackage=jarDfile, refers to the original location of the jar
DgroupId, give the package a group name, that is, the package path
DartifactId, refers to the product name, that is, the name of the jar
Dversion, version number, ordinary strings can also be used
Dpackage, package type, fixed jar
边栏推荐
猜你喜欢

rscsa笔记八

武汉星起航跨境电商有前景吗?亚马逊的未来趋势如何发展?
![[TypeScript] Introduction, Development Environment Construction, Basic Types](/img/d7/b3175ab538906ac1b658a9f361ba44.png)
[TypeScript] Introduction, Development Environment Construction, Basic Types

Public Key Retrieval is not allowed报错解决方案

完美绕开CRC32检测的无痕hook

Placement Rules usage documentation

FME's scheme and operation process for reading and writing cass data

hcip--ospf综合实验

3D激光SLAM:LeGO-LOAM论文解读---实验对比

PCIE下载的驱动安装
随机推荐
新零售saas小程序如何探索数字化门店的破局之路?
【HMS core】【FAQ】A collection of typical questions about Account, IAP, Location Kit and HarmonyOS 1
【SOC FPGA】Peripheral KEY LED
新人学习小熊派网络应用开发
大型综合办公管理系统源码(OA+HR+CRM)源码免费分享
Invalid or corrupt jarfile xxx.jar
华为云数据治理生产线DataArts,让“数据‘慧’说话”
AI遮天传 DL-CNN
C语言学习之旅 【函数(二)】
Recent learning defragmentation (24)
23. 请你谈谈关于IO同步、异步、阻塞、非阻塞的区别
rhce笔记1
win下搭建php环境的方法
Leetcode 119. Yang Hui's Triangle II
静态网页和动态网页的不同之处;该如何选择服务器呢
华为云WeLink携手伙伴,共建协同办公生态
如何在 UE4 中用代码去控制角色移动
打印1-100之间的奇数
rhce笔记2
[NCTF2019]Fake XML cookbook-1|XXE漏洞|XXE信息介绍