maven-war-plugin

maven war plugin executions and filtering

Hi all, I would like to filter some files using a different file in every execution, this obviously implies multiple executions. But it doesn't seems to filter anything. It seems to be ignoring the filters entry. Thank you! Here is a fragment from my pom.xml file: <project> <modelVersion>4.0.0</modelVersion> <groupId>net....

maven2: excluding directory from WAR

I tried this to exclude whole directory (${basedir}/src/main/webapp/webscripts) from my WAR file but it failed. What is wrong? this doesn't work: <configuration> <webResources> <resource> <directory>${basedir}/src/main/webapp/webscripts</directory> <excludes> <exclude>**/*.*</exclude> </excludes> ...

maven: add arbitrary file as a servlet context resource

I have a maven war project which produces webapp.war, and a maven 'skin' project which produces skin.zip (a file full of resources and XML files). Now I want to add this zip file as a servlet context resource (e.g WEB-INF/skin.zip). I tried using overlays, but it expands the zip file into WEB-INF instead of placing the un-expanded fi...

Filter inclusion of classes maven-war-plugin

Hello! I wonder if it is possible to filter out files from WEB-INF/classes with maven-war-plugin? I have the following java package structure: src/main/java/ package1.client.* package2.client.* package2.server.* When building the project I do not want any .client.* classes in my WEB-INF/classes folder. (It's a GWT project). Is thi...

Generating WAR files from a multiproject Maven configuration

I have a Maven project, with 4 components Web, Persistence, Common and Other. The relevant stuff off my POM files: Parent POM: <groupId>com.test</groupId> <artifactId>test</artifactId> <packaging>pom</packaging> <version>0.0.1-SNAPSHOT</version> <modules> <module>components/TestWeb</module> <module>components/TestOther</module...

maven war plugin executions and filtering in a multimodule project

Hi all, I'm using maven to build a multimodule project. In one project I execute maven-war-plugin four times in order to filter some properties in every execution. As a stand alone project it works well. But when I build the multimodule, from the "parent" it executes four times, but none of them filter the properties. Thank you all!...