maven把依赖打进jar包
2024-08-31 16:10:32
1.把依赖打进sigma-api的jar包
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>sigma</artifactId>
<groupId>sigma.resource</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>sigma-api</artifactId>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>sigma.resource</groupId>
<artifactId>sigma-enums</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
2.生成的jar包选择
original开头的jar包是不包含依赖的jar包
非original,直接模块名字开头的sigma-api-1.0-SNAPSHOT.jar才是包含依赖的jar包
最新文章
- Oracle之分页查询
- tamtam-nuget-imageserver
- 源码编译安装 MySQL 5.5.x 实践
- 自动获取MyEcilipse注册名和注册码的方法
- ios开发之CoreData使用
- QTextCodec::makeDecoder函数,plugins需要是动态链接库
- python之7-3对象的信息/方法获取
- JavaScript DOM省市自适配select菜单
- [ABP开源项目]--vue+vuex+vue-router+EF的权限管理系统
- NGINX 配置404错误页面转向
- c#代码启动任务管理器的几种方法
- rm: cannot remove ‘overlay/’: Device or resource busy
- final link failed: Nonrepresentable section on output
- MySQL远程连接问题解决方法
- S5PV210 LCD显示
- Oracle数据库入门——体系结构
- python数据结构之哈希表
- linux用户和组
- ROS知识(11)----同步两台机器时钟
- mysql免安装版初始化