You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by sylarStrike <pr...@wipro.com> on 2009/12/17 04:07:24 UTC

How to exclude some files from war file while merging war files

Hi , 

I am trying to merge two war files in one by using maven assembly. It merges
easily. But now I want to use filter in those war files. For example
excluding some jsp files and some other files. 

In my assembly section. I did. 
 <dependencySet> 
      <outputDirectory>HelloWorld</outputDirectory> 
      
                <includes> 
        <include>myproject:HelloWorld-1.0</include> 
      </includes> 
      <excludes> 
        <exclude>*.jsp</exclude> 
      </excludes> 
      <unpack>true</unpack> 
      
      <scope>runtime</scope> 
    </dependencySet> 


It's not excluding any jsp files. Any hint will be appreciated. 

thanks in advance.
-- 
View this message in context: http://old.nabble.com/How-to-exclude-some-files-from-war-file-while-merging-war-files-tp26822434p26822434.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to exclude some files from war file while merging war files

Posted by Anders Hammar <an...@hammar.net>.
On
http://maven.apache.org/plugins/maven-assembly-plugin/advanced-descriptor-topics.html
I read
"When using dependencySet or moduleSet, the <includes/> and
<excludes/>sections actually apply to artifacts, not filenames."
Thus, you can't specify *.jsp.

/Anders

On Thu, Dec 17, 2009 at 04:07, sylarStrike <pr...@wipro.com> wrote:

>
> Hi ,
>
> I am trying to merge two war files in one by using maven assembly. It
> merges
> easily. But now I want to use filter in those war files. For example
> excluding some jsp files and some other files.
>
> In my assembly section. I did.
>  <dependencySet>
>      <outputDirectory>HelloWorld</outputDirectory>
>
>                <includes>
>        <include>myproject:HelloWorld-1.0</include>
>      </includes>
>      <excludes>
>        <exclude>*.jsp</exclude>
>      </excludes>
>      <unpack>true</unpack>
>
>      <scope>runtime</scope>
>    </dependencySet>
>
>
> It's not excluding any jsp files. Any hint will be appreciated.
>
> thanks in advance.
> --
> View this message in context:
> http://old.nabble.com/How-to-exclude-some-files-from-war-file-while-merging-war-files-tp26822434p26822434.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>