maven 将依赖jar包打包
来源:互联网 发布:数据库用来做什么 编辑:程序博客网 时间:2024/05/01 05:53
down vote
meet the same problem, I solved it by build the jar with dependencies.
add the code below to pom.xml
<build> <sourceDirectory>src/main/java</sourceDirectory> <testSourceDirectory>src/test/java</testSourceDirectory> <plugins> <!-- Bind the maven-assembly-plugin to the package phase this will create a jar file without the storm dependencies suitable for deployment to a cluster. --> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <archive> <manifest> <mainClass></mainClass> </manifest> </archive> </configuration> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> </plugins></build>
mvn package submit the "example-jar-with-dependencies.jar"
0 0
- maven 将依赖jar包打包
- maven打包时候将依赖jar包打入
- 使用maven的maven-assembly-plugin将jar包依赖打包到一个jar文件中
- 使用maven的maven-assembly-plugin将jar包依赖打包到一个jar文件
- Maven自动生成可运行jar包并将依赖的jar包一起打包
- maven项目打包依赖的jar包
- Maven-----依赖Jar包打包插件
- maven 依赖的jar包打包问题
- Maven将有依赖其它jar包的项目打包成jar包(路径依赖),一步到位。
- maven打包的时候 ,将依赖包 打进同一个jar包命令 mvn assembly:assembly -DskipTests
- maven将依赖打入jar包
- maven将依赖打成jar包
- Maven将依赖打入jar包
- 将maven依赖一并打入jar包
- maven 将依赖打入jar包
- maven将依赖包一起打包
- maven打包一个包含依赖jar包的可执行jar
- Maven打包可执行jar,包含依赖jar包
- PHP - Curl的302是什么鬼
- python--函数
- CAMERA学习(一)-------跟踪应用层到HAL
- 执行后台耗时操作的封装-----改进版
- You must use a newer version of the Android Gradle plugin. The minimum supported version is 0.12.0 a
- maven 将依赖jar包打包
- cstring和string的区别
- 多线程-9、dispatch源
- grpc+protobuf 的C++ service 实例解析
- 极光推送 使用实例 (一)服务端
- 解决Ubuntu nat模式下网络无法连接的问题
- EasyUI输入框输入纯数字
- 获取wifi和基站定位的基础信息
- html表单