当前位置:网站首页>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=jar
Dfile, 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
边栏推荐
- 3D激光SLAM:LeGO-LOAM论文解读---特征提取部分
- Wuhan Star Sets Sail: Overseas warehouse infrastructure has become a major tool for cross-border e-commerce companies to go overseas
- SocialFi 何以成就 Web3 去中心化社交未来
- PMP每日一练 | 考试不迷路-7.30(包含敏捷+多选)
- How to use Redis for distributed applications in Golang
- (1) Cloud computing technology learning - virtualized vSphere learning
- How to intercept the first few digits of a string in php
- Qt 容器控件Tool Box 使用详解
- 华为云WeLink携手伙伴,共建协同办公生态
- 【Linux操作系统】 虚拟文件系统 | 文件缓存
猜你喜欢
Wuhan Star Sets Sail: Overseas warehouse infrastructure has become a major tool for cross-border e-commerce companies to go overseas
Rounding out the most practical way of several DLL injection
rhce笔记1
路遇又一个流量风口,民宿长期向好的逻辑选对了吗
Visual Studio 集成Qt开发环境的一些注意事项
支付系统架构设计详解,精彩!
【HMS core】【Media】【视频编辑服务】 在线素材无法展示,一直Loading状态或是网络异常
【HMS core】【FAQ】Account、IAP、Location Kit and HarmonyOS典型问题合集1
[flutter] What is MaterialApp and Material design
JVM学习----垃圾回收
随机推荐
Array element inverse
第六章:决胜秋招
go 学习03 基础知识变量类型
如何在 UE4 中用代码去控制角色移动
DTSE Tech Talk丨第2期:1小时深度解读SaaS应用系统设计
应用OPC解决方案实现控制系统数据的安全交换
谷歌工程师『代码补全』工具;『Transformers NLP』随书代码;FastAPI开发模板;PyTorch模型加速工具;前沿论文 | ShowMeAI资讯日报
rscsa笔记八
Leetcode 119. Yang Hui's Triangle II
Visual Studio编辑器 2019:scanf函数返回值被忽略(C4996)报错及解决办法
[HMS core] [FAQ] A collection of typical questions about push kit, analysis services, and video editing services 3
为人处世之道,与君共勉!
js 切换数据源的时候该缓存checkbox选中结果并回显?
近段时间的学习碎片整理(24)
vivo announced to extend the product warranty period, the system launched a variety of functional services
win下搭建php环境的方法
(1) Cloud computing technology learning - virtualized vSphere learning
Moonbeam创始人解读多链新概念Connected Contract
[TypeScript]简介、开发环境搭建、基本类型
【HMS core】【FAQ】A collection of typical questions about Account, IAP, Location Kit and HarmonyOS 1