On Mon, Oct 13, 2008 at 11:39 PM, Alex Coles <[EMAIL PROTECTED]> wrote:
>
> Thanks for your suggestion. I can create a JIRA ticket (or even
> attempt to create a patch for the NPE -- the code looks reasonably
> straightforward).
>
> However, there still is the discrepancy with the documentation.
>
> Which syntax should I be using to exclude various file patterns from
> the resultant WAR?
>
>
> [1]
>
> <plugin>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.0.2</version>
> <configuration>
>
> <dependentWarExcludes>**/jdbc.properties,**/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/**</dependentWarExcludes>
>
> <excludes>
> <exclude>**/.git</exclude>
> <exclude>**/.gitignore</exclude>
> <exclude>**/*.psd</exclude>
> <exclude>assets/src-images/**</exclude>
> </excludes>
> </configuration>
> </plugin>
>
>
> [2]
>
> <plugin>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.0.2</version>
> <configuration>
>
> <dependentWarExcludes>**/jdbc.properties,**/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/**</dependentWarExcludes>
>
> <webResources>
>
> <resource>
> <!--<directory>resource2</directory>-->
> <excludes>
> <exclude>**/.git</exclude>
> <exclude>**/.gitignore</exclude>
> <exclude>**/*.psd</exclude>
> <exclude>assets/src-images/**</exclude>
> </excludes>
> </resource>
> </webResources>
> </configuration>
> </plugin>
>
> Cheers
>
> Alex
>
I worked out that I should be using the following:
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<dependentWarExcludes>**/jdbc.properties,**/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/**</dependentWarExcludes>
<excludes>**/.git/**,**/*.gitignore,assets/src-images/**,**/*.psd,**/*.fla</excludes>
</configuration>
</plugin>
<excludes> should take a pattern, not a series of <exclude> elements.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]