blob: 60f5f82c8abc7d3b5aa221b0aa31d2d6e62ce23f [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- $Rev: 576067 $ $Date: 2007-09-16 03:17:08 -0700 (Sun, 16 Sep 2007) $ -->
<assembly>
<id>war</id>
<formats>
<format>war</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>target/maven-shared-archive-resources</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
<fileSet>
<directory>${project.basedir}</directory>
<includes>
<include>README.txt</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.basedir}/src/main/webapp</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
<fileSet>
<directory>${project.basedir}/target/classes</directory>
<outputDirectory>/</outputDirectory>
<excludes>
<exclude>org/**</exclude>
<exclude>META-INF/LICENSE</exclude>
<exclude>META-INF/NOTICE</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${project.basedir}/target/classes</directory>
<outputDirectory>WEB-INF/classes</outputDirectory>
<excludes>
<exclude>META-INF/LICENSE</exclude>
<exclude>META-INF/NOTICE</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${project.build.directory}/${project.artifactId}-${project.version}/</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>WEB-INF/web.xml</include>
<include>WEB-INF/classes/**</include>
<include>**/*.html</include>
<include>**/*.css</include>
<include>**/*.js</include>
<!-- libs are handled with dependencies because exclude don't work too well bellow -->
<!-- if some deps are missing, they should be added as project dependencies -->
<include>lib/*.jar</include>
</includes>
<excludes>
<exclude>%regex[(WEB-INF/)?lib/(tomee-)?myfaces(-api|-impl)?-.*.jar]</exclude>
<exclude>%regex[(WEB-INF/)?lib/openjpa-.*.jar]</exclude>
</excludes>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
<scope>runtime</scope>
<useTransitiveDependencies>true</useTransitiveDependencies>
<useTransitiveFiltering>true</useTransitiveFiltering>
<excludes>
<!-- provided -->
<exclude>org.apache.tomcat:*</exclude>
<exclude>org.apache.myfaces:*</exclude>
<exclude>org.apache.openjpa:*</exclude>
<!-- should be in a pom exclusion but it does perfectly the trick -->
<exclude>org.springframework:*</exclude>
<!-- wars and pom -->
<exclude>*:war</exclude>
<exclude>*:pom</exclude>
<exclude>org.apache.geronimo.specs:geronimo-javamail_1.5_spec</exclude>
<exclude>org.apache.geronimo.javamail:geronimo-javamail_1.5_mail</exclude>
<exclude>org.apache.geronimo.specs:geronimo-javamail_1.4_spec</exclude>
<exclude>org.apache.geronimo.javamail:geronimo-javamail_1.4_mail</exclude>
</excludes>
</dependencySet>
<dependencySet>
<outputDirectory>WEB-INF/lib</outputDirectory>
<scope>runtime</scope>
<includes>
<include>org.apache.tomee:tomee-loader</include>
<include>org.codehaus.swizzle:swizzle-stream</include>
</includes>
</dependencySet>
<dependencySet>
<outputDirectory>WEB-INF/lib</outputDirectory>
<scope>compile</scope>
<includes>
<include>org.apache.tomee:tomee-common</include>
</includes>
</dependencySet>
</dependencySets>
</assembly>