jar中没有主清单属性
发表于|更新于
|浏览量:
新闻要适合直接感兴趣的人口味。——马克思
我今天遇到了一个报错…

我仔细一看发现jar包才893KB大小

检查了一下打包配置,发现:

这块少了个repackage配置…
1 | <executions> |
加上就可以了

再次打包就好了
相关推荐
2021-03-02
引入本地jar包
不管努力的目标是什么,不管他干什么,他单枪匹马总是没有力量的。合群永远是一切善良的人的最高需要。——歌德 对于本地jar包,如何让它加入我们的项目并使用maven的GAV管理起来呢 其实很简单 需要在当前项目根路径(在pom.xml的那层)使用 1mvn install:install-file -Dfile=[本地jar包路径] -DgroupId=[自定义groupId] -DartifactId=[自定义artifactId] -Dversion=[自定义version] -Dpackaging=jar 例如 1mvn install:install-file -Dfile=D:\file\files\Onest-S3-java-SDK.jar -DgroupId=com.move -DartifactId=moveOss -Dversion=1.0 -Dpackaging=jar 再使用我们定义的GAV引入,这样就可以使用我们本地jar了 123456<!-- 移动云对象存储 --><dependency> <gr...
2021-10-23
ThreadLocal子线程共享
世人缺乏的是毅力,而非气力。——雨果 昨天聊了ThreadLocal可以用作单个线程中变量共享 其底层实现其实就是个Map,用线程作为key,不信可以看这部分源码: 123456789101112131415161718192021/** * Returns the value in the current thread's copy of this * thread-local variable. If the variable has no value for the * current thread, it is first initialized to the value returned * by an invocation of the {@link #initialValue} method. * * @return the current thread's value of this thread-local */public T get() { Thread t = Thread.currentThr...
2023-02-07
mp查询出来时间自动去掉秒
陷入经济困境的人,是最容易被利用的——加藤谛三 由于需求变动,原先存入为LocalDateTime的,现在需要精确到分,但保留数据库原有的数据 所以查询时,只精确到分,将秒去掉 我们使用typeHandler,将秒设置为00 首先添加@TableName(autoResultMap = true)然后添加@TableField(typeHandler = DeSecondHandler.class) 12345678910111213141516171819202122232425package com.ruben.simplestreamquery.pojo.po;import com.baomidou.mybatisplus.annotation.TableField;import com.baomidou.mybatisplus.annotation.TableName;import com.ruben.simplestreamquery.handler.DeSecondsHandler;import lombok.Data;import java.time.Local...
2024-08-06
本地运行Apache Baremaps
借了别人的钱,就是进了别人的网。——约翰·雷 clone代码 1git clone https://github.com/apache/incubator-baremaps.git 运行: 123GithubIireAchao:openstreetmap achao$ sdk use java 17.0.12-amznUsing java version 17.0.12-amzn in this shell. 这里注意用的sdkmansdkman | 阿超 然后构建一下 123GithubIireAchao:openstreetmap achao$ pwd/Users/achao/IdeaProjects/incubator-baremapsGithubIireAchao:openstreetmap achao$ ./mvnw clean install 然后是docker运行一下,拉不下来镜像用这个: docker-desktop配置腾讯云镜像 | 阿超 1GithubIireAchao:incubator-baremaps achao$ docker run -...
2022-07-20
反射获取声明泛型工具类
和上帝一样聪明,和天才一样幼稚。——巴尔扎克《奥诺丽纳》 工具类: 1234567891011121314151617public static Type[] getGenericTypes(Type paramType) { Type type; for (type = paramType; type instanceof Class; type = ((Class<?>) type).getGenericSuperclass()) { if (Object.class.equals(type)) { Type[] genericInterfaces = ((Class<?>) type).getGenericInterfaces(); if (genericInterfaces.length > 0 && Objects.nonNull(genericInterfaces[0])) { ...
2023-12-07
声网rtm加密传输
忍耐能抚慰所有的不幸。——维吉尔 加密方式,文档: https://doc.shengwang.cn/api-ref/rtm2/android/toc-configuration/configuration#RtmEncryptionConfig 1234567891011121314 @Beanpublic RtmClient rtmClient() throws Exception { RtmEncryptionConfig rtmEncryptionConfig = new RtmEncryptionConfig(); rtmEncryptionConfig.setEncryptionMode(RtmConstants.RtmEncryptionMode.AES_256_GCM); rtmEncryptionConfig.setEncryptionKey(agoraProperties.getEncryptionKey()); rtmEncryptionConfig.setEncryptionSalt(agoraPropertie...
