Hi,
       
    We have the war plugin configured in the POM to exclude a few select
files from the output war. We have a number of different profiles
defined, in this case only one profile should include the specified
files. I am trying to set the warSourceExcludes in the POM to the common
value (exclude certain files), and then override the value just in that
particular profile (don't exclude any files). I can't find a way to
reset that value to 'no excludes', the exclusion always applies.

Any suggestions on how to reset the filter in this case?

Thanks!


<POM>
....   
         <profile>
            ......   
           <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-war-plugin</artifactId>
                        <configuration>
                            <classifier>test</classifier>
                            <warSourceExcludes></warSourceExcludes>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>

    <build>
        ....
        <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.1-beta-1</version>
                <configuration>
                    .....
                    <warSourceExcludes>js/xyz/*.js</warSourceExcludes>
                     ....

                </configuration>
            </plugin>

    </build>
</POM>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to