<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
  <parent>
    <artifactId>weld-servlet-parent</artifactId>
    <groupId>org.jboss.weld.servlet</groupId>
    <version>1.1.2.AS7</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.jboss.weld.servlet</groupId>
  <artifactId>weld-servlet</artifactId>
  <name>Weld Servlet (Uber Jar)</name>
  <url>http://www.seamframework.org/Weld</url>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <configuration>
          <finalName>not-really</finalName>
          <attach>false</attach>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <id>jboss5</id>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <createSourcesJar>true</createSourcesJar>
              <shadedArtifactAttached>true</shadedArtifactAttached>
              <shadedClassifierName>jboss5</shadedClassifierName>
              <artifactSet>
                <excludes>
                  <exclude>xml-apis:xml-apis</exclude>
                  <exclude>org.apache.tomcat:catalina</exclude>
                  <exclude>org.apache.tomcat:servlet-api</exclude>
                  <exclude>org.apache.tomcat:juli</exclude>
                  <exclude>org.apache.tomcat:annotations-api</exclude>
                  <exclude>javax.faces:jsf-api</exclude>
                  <exclude>org.mortbay.jetty:jetty</exclude>
                  <exclude>javax.annotation:jsr250-api</exclude>
                  <exclude>org.javassist:javassist</exclude>
                  <exclude>org.slf4j:slf4j-api</exclude>
                  <exclude>org.slf4j:slf4j-jdk14</exclude>
                </excludes>
              </artifactSet>
            </configuration>
          </execution>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <createSourcesJar>true</createSourcesJar>
              <artifactSet>
                <excludes>
                  <exclude>xml-apis:xml-apis</exclude>
                  <exclude>org.apache.tomcat:catalina</exclude>
                  <exclude>org.apache.tomcat:servlet-api</exclude>
                  <exclude>org.apache.tomcat:juli</exclude>
                  <exclude>org.apache.tomcat:annotations-api</exclude>
                  <exclude>javax.faces:jsf-api</exclude>
                  <exclude>org.mortbay.jetty:jetty</exclude>
                </excludes>
              </artifactSet>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>

