I'd use war overlays... executions will not do what you think it will do

On 17 May 2011 20:59, Greg Akins <[email protected]> wrote:

> I'm a little confused about <executions/>.  But I'm hoping I can use
> it do do something.  Is this possible?  and a good idea?
>
> I've got jar files in my dependencies that are provided in WebSphere
> (activation and mail) but not in Tomcat
>
> Since I develop on a Tomcat instance, but deploy to WebSphere, I'd
> like to do something like this in the maven-war-plugin.
>
> <executions>
>                                        <execution>
>                                                <id>testexecution</id>
>                                                <configuration>
>
>  <phase>verify</phase>
>                                                </configuration>
>
>  <goals><goal>war</goal></goals>
>                                        </execution>
>
>                                        <execution>
>                                                <id>deployexecution</id>
>                                                <phase>package</phase>
>                                                <configuration>
>                                                        <packagingExcludes>
>
>  WEB-INF/classes/**/*.properties,
>
>  WEB-INF/classes/**/*.xsl,
>
>  WEB-INF/classes/**/*.xml,
>
>  WEB-INF/classes/**/*.txt, WEB-INF/classes/**/*.log,
>
>  WEB-INF/classes/**/*.jks,
>
>  WEB-INF/lib/activation*.jar,
>
>  WEB-INF/lib/mail*.jar
>                                                        </packagingExcludes>
>                                                </configuration>
>
>  <goals><goal>war</goal></goals>
>                                        </execution>
>                                </executions>
>
> --
> Greg Akins
> http://twitter.com/akinsgre
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to