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 <[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to