maven - Exclude META-INF directory from war -



maven - Exclude META-INF directory from war -

i know question may seem odd, how can exclude whole meta-inf directory war? tried:

<plugin> <artifactid>maven-war-plugin</artifactid> <version>2.3</version> <configuration> <warsourcedirectory>webcontent</warsourcedirectory> <failonmissingwebxml>false</failonmissingwebxml> <webresources> <resource> <directory>webcontent</directory> <excludes> <exclude>meta-inf/**</exclude> </excludes> </resource> </webresources> </configuration>

i tried:

<plugin> <artifactid>maven-war-plugin</artifactid> <version>2.3</version> <configuration> <warsourcedirectory>webcontent</warsourcedirectory> <failonmissingwebxml>false</failonmissingwebxml> <packagingexcludes>meta-inf/*</packagingexcludes> </configuration> </plugin>

the reason why need because i'm trying generate archive kind of patch deployed application - don't want overwrite unnecessary files.

maven maven-war-plugin

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -