<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.overlord.sramp</groupId>
    <artifactId>s-ramp-ui</artifactId>
    <version>0.4.0.Final</version>
  </parent>
  <artifactId>s-ramp-ui-war-eap61</artifactId>
  <packaging>war</packaging>
  <name>S-RAMP UI: Web App (EAP 6.1)</name>
  <dependencies>
    <!-- The base WAR being extended -->
    <dependency>
      <groupId>org.overlord.sramp</groupId>
      <artifactId>s-ramp-ui-war</artifactId>
      <version>${project.version}</version>
      <type>war</type>
    </dependency>
    
    <!-- Other JBoss-only dependencies -->
    <dependency>
      <groupId>org.jboss.errai</groupId>
      <artifactId>errai-jboss-as-support</artifactId>
      <exclusions>
        <exclusion>
          <artifactId>xml-apis</artifactId>
          <groupId>xml-apis</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <warName>s-ramp-ui-eap61</warName>
          <overlays>
            <overlay>
              <groupId>${project.groupId}</groupId>
              <artifactId>s-ramp-ui-war</artifactId>
              <excludes>
                <exclude>WEB-INF/jetty-env.xml</exclude>
                <exclude>WEB-INF/lib/activation-*.jar</exclude>
                <exclude>WEB-INF/lib/apache-mime4j-*.jar</exclude>
                <exclude>WEB-INF/lib/cal10n-api*.jar</exclude>
                <exclude>WEB-INF/lib/commons-codec-*.jar</exclude>
                <exclude>WEB-INF/lib/commons-collections-*.jar</exclude>
                <exclude>WEB-INF/lib/commons-configuration-*.jar</exclude>
                <exclude>WEB-INF/lib/commons-io-*.jar</exclude>
                <exclude>WEB-INF/lib/commons-lang-*.jar</exclude>
                <exclude>WEB-INF/lib/dom4j-*.jar</exclude>
                <exclude>WEB-INF/lib/el-api*.jar</exclude>
                <exclude>WEB-INF/lib/errai-cdi-jetty*.jar</exclude>
                <exclude>WEB-INF/lib/errai-codegen-gwt-*.jar</exclude>
                <exclude>WEB-INF/lib/errai-data-binding-*.jar</exclude>
                <exclude>WEB-INF/lib/errai-ioc-*.jar</exclude>
                <exclude>WEB-INF/lib/errai-navigation-*.jar</exclude>
                <exclude>WEB-INF/lib/errai-tools*.jar</exclude>
                <exclude>WEB-INF/lib/geronimo-spec-jta*.jar</exclude>
                <exclude>WEB-INF/lib/guava-*.jar</exclude>
                <exclude>WEB-INF/lib/hsqldb*.jar</exclude>
                <exclude>WEB-INF/lib/httpclient-*.jar</exclude>
                <exclude>WEB-INF/lib/httpcore-*.jar</exclude>
                <exclude>WEB-INF/lib/jackson-core-asl-*.jar</exclude>
                <exclude>WEB-INF/lib/jackson-mapper-asl-*.jar</exclude>
                <exclude>WEB-INF/lib/javassist-*.jar</exclude>
                <exclude>WEB-INF/lib/javax.inject-1.jar</exclude>
                <exclude>WEB-INF/lib/jaxb-*.jar</exclude>
                <exclude>WEB-INF/lib/jaxrs-api-*.jar</exclude>
                <exclude>WEB-INF/lib/jboss-interceptors-api*.jar</exclude>
                <exclude>WEB-INF/lib/jboss-logging-*.jar</exclude>
                <exclude>WEB-INF/lib/jcip-annotations-*.jar</exclude>
                <exclude>WEB-INF/lib/jetty*.jar</exclude>
                <exclude>WEB-INF/lib/jgroups-*.jar</exclude>
                <exclude>WEB-INF/lib/log4j-*.jar</exclude>
                <exclude>WEB-INF/lib/mail*.jar</exclude>
                <exclude>WEB-INF/lib/netty*.jar</exclude>
                <exclude>WEB-INF/lib/org.osgi.core-*.jar</exclude>
                <exclude>WEB-INF/lib/resteasy*.jar</exclude>
                <exclude>WEB-INF/lib/scannotation-*.jar</exclude>
                <exclude>WEB-INF/lib/servlet-api*.jar</exclude>
                <exclude>WEB-INF/lib/slf4j-api-*.jar</exclude>
                <exclude>WEB-INF/lib/slf4j-ext-*.jar</exclude>
                <exclude>WEB-INF/lib/weld*.jar</exclude>
                <exclude>WEB-INF/lib/xercesImpl*.jar</exclude>
                <exclude>WEB-INF/lib/xml-apis*.jar</exclude>
              </excludes>
            </overlay>
          </overlays>
          <archive>
            <manifestEntries>
              <Dependencies>org.jboss.as.naming,org.jboss.as.server,org.jboss.msc</Dependencies>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>