国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
maven

maven 各種插件要想用好還真是個(gè)技術(shù)活兒,不像ant那么方面,下面是我的模版

Xml代碼  
  1. <plugin>  
  2.                 <groupId>org.apache.maven.plugins</groupId>  
  3.                 <artifactId>maven-war-plugin</artifactId>  
  4.                 <version>2.1.1</version>  
  5.                 <configuration>  
  6.   
  7.                     <packagingExcludes>**/spy.properties,scripts/ext4/docs/**,scripts/ext4/examples/**,scripts/ext4/pkgs/**,scripts/ext4/src/**,scripts/ext4/welcome/**,  
  8.                     scripts/jquery-ui/development-bundle/**,scripts/jquery-ui/extra/**,  
  9.                     scripts/jqgrid/src/**,scripts/jqgrid/plugins/**,  
  10.                     scripts/colorbox/example*/**,  
  11.                     scripts/jquery-fancybox/example/**,  
  12.                     scripts/masonry/doc/**,  
  13.                     scripts/poshytip/demo/**,  
  14.                     scripts/zTree/demo/**,  
  15.                     logs/**  
  16.                     </packagingExcludes>  
  17.   
  18.                     <warSourceExcludes>  
  19.                         scripts/ext4/docs/**,scripts/ext4/examples/**,scripts/ext4/pkgs/**,scripts/ext4/src/**,scripts/ext4/welcome/**,  
  20.                     scripts/jquery-ui/development-bundle/**,scripts/jquery-ui/extra/**,  
  21.                     scripts/jqgrid/src/**,scripts/jqgrid/plugins/**,  
  22.                     scripts/colorbox/example*/**,  
  23.                     scripts/jquery-fancybox/example/**,  
  24.                     scripts/masonry/doc/**,  
  25.                     scripts/poshytip/demo/**,  
  26.                     scripts/zTree/demo/**,  
  27.                     logs/**  
  28.                     </warSourceExcludes>  
  29.                     <warSourceDirectory>WebContent</warSourceDirectory>  
  30.                     <workDirectory>${project.build.directory}/work</workDirectory>  
  31.                     <useCache>false</useCache>  
  32.                     <archive>  
  33.                         <addMavenDescriptor>true</addMavenDescriptor>  
  34.                     </archive>  
  35.                     <webXml>${basedir}/WebContent/WEB-INF/web.xml</webXml>  
  36.                     <ignoreWebxml>false</ignoreWebxml>  
  37.                     <warName>${project.build.finalName}</warName>  
  38.                     <finalName>${project.build.finalName}</finalName>  
  39.                     <webResources>  
  40.                         <resource>  
  41.                             <directory>WebContent/WEB-INF</directory>  
  42.                             <filtering>true</filtering>  
  43.                             <targetPath>WEB-INF</targetPath>  
  44.   
  45.                         </resource>  
  46.                           
  47.                           
  48.                                             </webResources>  
  49.                 </configuration>  
  50.             </plugin>  

  

    這個(gè)可以正確打包,最后有個(gè)問題,默認(rèn)maven war插件不會打包webapp下的空目錄,google 之,發(fā)現(xiàn)沒有好方法,最后發(fā)現(xiàn),隨便在空目錄里放一個(gè)文件,maven 插件就會打包進(jìn)去了,great idea?。?/p>

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
給jqGrid數(shù)據(jù)行添加修改和刪除操作鏈接(可以執(zhí)行)
maven自動部署war包到tomcat
How to: installers, Jetty, postgresql with maven2
Nexus搭建Maven私服(五) Maven遠(yuǎn)程部署web工程
JQGRID 基本用法及示例、換膚等
!!jqGrid 安裝及使用教程
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服