当前位置:网站首页>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
边栏推荐
- 如何在分面中添加数学表达式标签?
- Discuz杂志/新闻报道模板(jeavi_line)UTF8-GBK模板
- 【Linux Operating System】 Virtual File System | File Cache
- 数组和指针(2)
- The service already exists! Solution
- rhce笔记3
- 华为ADS获取转化跟踪参数报错:getInstallReferrer IOException: getInstallReferrer not found installreferrer
- 绕开驱动层检测的无痕注入
- Leetcode 118. 杨辉三角
- Moonbeam创始人解读多链新概念Connected Contract
猜你喜欢

新人学习小熊派网络应用开发

Leetcode 119. Yang Hui's Triangle II

Leetcode 119. 杨辉三角 II

路遇又一个流量风口,民宿长期向好的逻辑选对了吗

【开发者必看】【push kit】推送服务典型问题合集2

【HMS core】【FAQ】push kit、WisePlay DRM、Location Kit、Health Kit、3D Modeling Kit、SignPal Kit典型问题合集4

云风:不加班、不炫技,把复杂的问题简单化

23. 请你谈谈关于IO同步、异步、阻塞、非阻塞的区别

【SOC】经典输出hello world

Google engineer "code completion" tool; "Transformers NLP" accompanying book code; FastAPI development template; PyTorch model acceleration tool; cutting-edge papers | ShowMeAI News Daily
随机推荐
Redis 复习计划 - Redis 数据结构和持久化机制
【SOC FPGA】外设KEY点LED
DTSE Tech Talk丨第2期:1小时深度解读SaaS应用系统设计
JVM学习----垃圾回收
04、Activity的基本使用
[TypeScript]简介、开发环境搭建、基本类型
基于STM32F407使用ADC采集电压实验
涨姿势了!原来这才是多线程正确实现方式
C#西门子S7 协议通过偏移量的方式读写PLC DB块
Goland opens file saving and automatically formats
你是一流的输家,你因此成为一流的赢家
DTSE Tech Talk丨第2期:1小时深度解读SaaS应用系统设计
MySql 和 PostgreSQL 数据库 根据一张表update另一张表数据
The service already exists!解决办法
How to connect redis in node.js?
Scheduling_Channel_Access_Based_on_Target_Wake_Time_Mechanism_in_802.11ax_WLANs
游戏多开检测的几种实现方法及破解方法参考
第一次用debug查询,发现这个为空,是不是代表还没获得数据库的意思?求帮助。
Moonbeam创始人解读多链新概念Connected Contract
[flutter] What is MaterialApp and Material design