Hello Iam working on a project where i have to convert the existing ANT based project to a maven project.In this process iam trying to make multiple war files out of a single source base.Iam using the maven build tag to do this and here is a sample code that iam using in my pom.xml
<build> <plugins> <plugin> <groupId>org.apache.maven. plugins</groupId> <artifactId>maven-war-plugin</artifactId> <executions> <execution> <id>tdeinbound</id> <phase>package</phase> <goals> <goal>war</goal> </goals> <configuration> <classifier>tdeinbound</classifier> <includes> <include>**/com/atx/tde/in/*.class</include> <include>**/com/atx/tde/in/util/*.class</include> <include>**/com/atx/tde/common/*.class</include> <include>**/com/atx/tde/common/xml/*.class</include> <include>**/com/atx/tde/common/xml/agreementwaiver/*.class</include> <include>**/com/atx/tde/common/xml/processtelematics/*.class</include> <include>**/com/atx/tde/common/xml/subsrenewal/*.class</include> <include>**/com/atx/tde/common/xml/svctermination/*.class</include> <include>**/com/atx/tde/common/xml/syncparty/*.class</include> <include>**/com/atx/tde/common/exception/*.class</include> <include>**/com/atx/tde/common/dataobjects/*.class</include> <include>**/com/atx/tde/common/constants/*.class</include> <include>**/com/atx/tde/out/mq/TDEMQListenerProperties.class</include> <include>**/com/atx/tde/out/mq/dataobjects/*.class</include> <include>**/com/atx/tde/out/util/*.class</include> <include>**/com/atx/tde/out/TDEOutboundServiceManager.class</include> </includes> <excludes> <exclude>com/atx/tde/in/siebelInterface/*.class</exclude> </excludes> <useDefaultManifestFile>true</useDefaultManifestFile> </configuration> </execution> </executions> </plugin> </plugins> </build> Iam trying to include some of my source files using the include tag and iam trying to exclude some of the java files using the exclude tags.Though iam running my mvn install,the final war that is getting built is containing the entire source and its not including a sub set of classes or its not exlucding some set of classes.I have tried the following options 1.Trying with only include tag in the build sevtion. 2.Trying with only exclude tag in the build section. 3.Trying to include the include tag and the exclude tag under a "<webResources> <resource>" tag but this gives a null pointer exception when running the mvn instal target. Please guide me through this Thanks for all your comments Sudheer