Maven构建项目忽视掉服务器已存在的jar文件
2015-07-08 20:07
441 查看
在pom.xml中加入以下配置:
位置是<build><plugins>节点下。
packagingExcludes里面列出的jar文件是需要在构建包中保留的文件,其余的全部忽视掉。
位置是<build><plugins>节点下。
<plugin> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> <configuration> <packagingExcludes> %regex[WEB-INF/lib/(?!h2-1.3.170\.jar)(?!activiti-modeler-5.12.1\.jar).*] </packagingExcludes> </configuration> </plugin>
packagingExcludes里面列出的jar文件是需要在构建包中保留的文件,其余的全部忽视掉。
相关文章推荐
- arcgis TextSymbol 换行问题
- [转]LAMP 系统性能调优,第 1 部分: 理解 LAMP 架构
- 打开linux的framebuffer
- 3Sum Closest
- poj 2724 Purifying Machine (最小边覆盖)
- 凸优化:ADMM(Alternating Direction Method of Multipliers)交替方向乘子算法系列之八: Distributed Model Fitting
- pwd命令
- GDB调试详解
- leetcode 013 —— Roman to Integer
- 64位Ubuntu-12.04 系统更新时总报错,软件中心也打不开
- touch命令
- BZOJ 2005 能量采集
- Lucas的数论题解
- 安装伪分布式hbase 0.99.0
- 最大子数组和
- windows 2012我的电脑在桌面显示
- 易經大意原稿(頁單位) 001-025
- Command模式
- [转]LAMP 系统性能调优,第 3 部分: MySQL 服务器调优
- linux 开启支持FrameBuffer--解决打开/dev/fb0失败的问题