通过maven-shade-plugin插件打可以独立运行的jar包
2016-04-28 16:35
483 查看
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>1.5</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>META-INF/spring.handlers</resource> </transformer> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <mainClass>MainClassPath</mainClass> </transformer> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>META-INF/spring.schemas</resource> </transformer> </transformers> </configuration> </execution> </executions> </plugin>
相关文章推荐
- Qt Quick Material开源组件ApplicationWindow
- spring mvc 数据绑定问题 提交表单提示HTTP status 400, The request sent by the client was syntactically incorrect
- HTML5 调用手机相册和摄像头的方法并上传微信下测试通过
- 软件架构的认识
- 【Sass初级】开始使用Sass和Compass
- Android的相对布局属性的解释
- Python 迭代器与生成器
- vim goLang
- eclipse插件jd-eclipse的使用
- php-pdo的lastInsertId返回0的问题
- Maven大概认识
- linux命令之ps源码,支持linux和android
- Java基础知识IO流(异常的日志信息&系统信息)
- 系统高并发问题处理
- 技术入股创业一年,家庭收入变成负5万
- Python MySQL 数据库连接
- 将十进制数23转化为二进制数
- 图像/视觉显著性检测技术发展情况梳理
- 将一个正整数用二进制表示
- 将多个图片转换成pdf文件的方法