packagingExcludes and profiles?

347 views
Skip to first unread message

Boris Granveaud

unread,
Apr 27, 2009, 8:39:18 AM4/27/09
to gwt-maven
Hello,

I'm trying to exclude the .gwt-tmp folder with maven-war-plugin:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<packagingExcludes>.gwt-tmp/**</packagingExcludes>
</configuration>
</plugin>

It works fine. However, if I put this in a profile, it doesn't work
anymore:

<profiles>
<profile>
<id>myprofile</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<packagingExcludes>.gwt-tmp/**</packagingExcludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

Am I missing something??

I'm using maven-googlewebtoolkit2-plugin 2.0-RC1 but I think it
doesn't change anything.

Thanks.

Brian Cribbs

unread,
Apr 27, 2009, 9:06:38 AM4/27/09
to gwt-...@googlegroups.com
If you're using automatic configuration, the one that sets the GWT version is activated by the OS causing your active by default to be pointless.  Try invoking -Pmyprofile.

Boris Granveaud

unread,
Apr 27, 2009, 9:18:23 AM4/27/09
to gwt-...@googlegroups.com
thanks!

Boris.

Brian Cribbs

unread,
Apr 27, 2009, 9:21:20 AM4/27/09
to gwt-...@googlegroups.com
That fixed it?

Boris Granveaud

unread,
Apr 27, 2009, 9:25:46 AM4/27/09
to gwt-...@googlegroups.com
yes, it's ok now.

I'm new to maven but isn't it possible to have several profiles activated by default?

Boris.

Brian Cribbs

unread,
Apr 27, 2009, 9:28:48 AM4/27/09
to gwt-...@googlegroups.com
Unless another profile is activated through a property, yes :)
Reply all
Reply to author
Forward
0 new messages