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

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

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

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

再次打包就好了
相关推荐
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 -...
2021-02-05
apache的Http请求
天地英雄气,千秋尚凛然。一一刘禹锡 我们的Springboot已经为我们引用了依赖 但我们还需要一个 123456<!-- apache http前置依赖 --><dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-servlet</artifactId> <version>1.19</version></dependency> 首先是一个GET请求 我们接口使用@RequestParam接参,所以请求格式应该是http://127.0.0.1:8080/user/say?word=xxx这样的 代码如下 12345678910// 指定url和参数,可以在queryParam后继续追加参数HttpGet request = new HttpGet(UriBuilder.fromUri("http://127.0.0.1:8080/user/say&q...
2024-03-19
liteflow快速开始
人类永远会选择他们理解的,摒弃不理解的。这个世界唯一剩下的动物,就是他们已经驯服的那些,匍匐在他们的脚边,或者那些非常警觉,一察觉到他们靠近就逃离的动物,没有介于二者之间的。——《西部世界》 今天上手用了下liteflow,感觉非常不错 首先引入 12345<dependency> <groupId>com.yomahub</groupId> <artifactId>liteflow-spring-boot-starter</artifactId> <version>2.11.4.2</version></dependency> 编写A组件 1234567891011121314151617181920212223import com.yomahub.liteflow.annotation.LiteflowComponent;import com.yomahub.liteflow.core.NodeComponent;import com.yomahub.lit...
2022-08-10
规则引擎ice
在人生或者职业的各种事务中,性格的作用比智力大得多,头脑的作用不如心情,天资不如由判断力所节制着的自制,耐心和规律。 —— 海鸣威 《真实的高贵》 分享一个规则引擎ice 官网:http://waitmoon.com/zh/ 快速上手:http://waitmoon.com/zh/guide/getting-started.html
2023-08-19
Delimiter
青春如初春,如朝日,如百卉之萌动,如利刃之新发于硎,人生最宝贵之时期也。青年之于社会,犹新鲜活泼细胞之在身。——陈独秀 分享一下:org.springframework.boot.convert.Delimiter的用法 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950/* * Copyright 2012-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-...
2020-06-21
java8的stream流
在1.8新特性中有一个stream流 可以对集合进行很多操作,在开发里大量用到 先创建两个类,用于我们操作 12345678910111213141516import java.util.ArrayList;/** * @ClassName: StringList * @Date: 2020/6/21 0021 21:08 * @Description: 一个继承了ArrayList<String>的类 * @Author: <achao1441470436@gmail.com> */public class StringList extends ArrayList<String> { public StringList put(String s) { super.add(s); //用于链式编程 return this; }} 1234567891011121314151617181920212223242526272829303132333435...
