maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Verstuyft" <janverstu...@googlemail.com>
Subject Re: [Maven2] - exluding some source files from a war
Date Fri, 11 Jul 2008 07:19:26 GMT
Thanks for the quick response.

I've tried the following:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.0</version>
        <configuration>
			<excludes>
				<exclude>**/com/ideal/**/*.java</exclude>
			</excludes>
			<webResources>...</webResources>
         </configuration>
       </plugin>
    </plugins>

And some other exclude masks like **/com/ideal/**, or **/com/ideal/*
but it seems that they still are compiled.
What is the mask I need to use?

2008/7/10 Geoffrey Wiseman <geoffrey.wiseman@gmail.com>:
> On Thu, Jul 10, 2008 at 10:51 AM, Jörg Schaible <
> Joerg.Schaible@elsag-solutions.com> wrote:
>
>> You can do this in the same POM. Simply execute the jar plugin (also with
>> includes), attach it to the package phase, but configure the resulting
>> artifact with a classifier.
>>
>
> Although it wouldn't hurt to note that this would typically be accomplished
> using a multi-module buld in Maven.
>
>  - Geoffrey
> --
> Geoffrey Wiseman
>

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


Mime
View raw message