<?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>xwork-parent</artifactId>
    <groupId>com.opensymphony</groupId>
    <version>2.1.6</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.opensymphony</groupId>
  <artifactId>xwork-core</artifactId>
  <name>XWork: Core</name>
  <version>2.1.6</version>
  <licenses>
    <license>
      <name>The OpenSymphony Software License 1.1</name>
      <url>../src/resources/LICENSE.txt</url>
      <comments>This license is derived and fully compatible with the Apache Software
                License - see http://www.apache.org/LICENSE.txt</comments>
    </license>
  </licenses>
  <scm>
    <connection>scm:svn:http://svn.opensymphony.com/svn/xwork/trunk/core</connection>
    <developerConnection>scm:svn:https://svn.opensymphony.com/svn/xwork/trunk/core</developerConnection>
    <url>https://svn.opensymphony.com/svn/xwork/trunk/core</url>
  </scm>
  <build>
    <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
    <testSourceDirectory>${basedir}/src/test/java</testSourceDirectory>
    <defaultGoal>install</defaultGoal>
    <resources>
      <resource>
        <directory>${basedir}/src/main/resources</directory>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>${basedir}/src/test/resources</directory>
      </testResource>
    </testResources>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.4.2</version>
        <configuration>
          <useSystemClassLoader>false</useSystemClassLoader>
          <additionalClasspathElements>
            <element>${project.build.testOutputDirectory}/xwork-jar.jar</element>
            <element>${project.build.testOutputDirectory}/xwork-zip.zip</element>
            <element>${project.build.testOutputDirectory}/xwork - jar.jar</element>
            <element>${project.build.testOutputDirectory}/xwork - zip.zip</element>
          </additionalClasspathElements>
          <includes>
            <include>**/*Test.java</include>
          </includes>
          <excludes>
            <exclude>**/XWorkTestCase.java</exclude>
            <exclude>**/TestBean.java</exclude>
            <exclude>**/TestBean2.java</exclude>
            <exclude>**/TestInterceptor.java</exclude>
            <exclude>**/AnnotatedTestBean.java</exclude>
            <exclude>**/ContainerImplTest.java</exclude>
            <exclude>**/URLUtilTest.java</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>1.2</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <shadedArtifactId>xwork-core</shadedArtifactId>
              <artifactSet>
                <excludes>
                  <exclude>junit:junit</exclude>
                  <exclude>commons-logging:commons-logging</exclude>
                  <exclude>opensymphony:ognl</exclude>
                  <exclude>org.springframework:spring-core</exclude>
                  <exclude>org.springframework:spring-aop</exclude>
                  <exclude>org.springframework:spring-aspects</exclude>
                  <exclude>org.springframework:spring-beans</exclude>
                  <exclude>org.springframework:spring-context</exclude>
                  <exclude>org.springframework:spring-context-support</exclude>
                  <exclude>org.springframework:spring-web</exclude>
                  <exclude>org.springframework:spring-test</exclude>
                  <exclude>mockobjects:mockobjects-core</exclude>
                  <exclude>org.easymock:easymock</exclude>
                  <exclude>aopalliance:aopalliance</exclude>
                  <exclude>aspectwerkz:aspectwerkz-core</exclude>
                  <exclude>org.aspectj:aspectjrt</exclude>
                  <exclude>org.aspectj:aspectjweaver</exclude>
                  <exclude>cglib:cglib</exclude>
                  <exclude>cglib:cglib-nodep</exclude>
                  <exclude>asm:asm-util</exclude>
                  <exclude>org.testng:testng:jdk15</exclude>
                </excludes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>commons-lang:commons-lang</artifact>
                  <includes>
                    <include>org/apache/commons/lang/StringUtils.class</include>
                    <include>org/apache/commons/lang/ObjectUtils*.class</include>
                    <include>org/apache/commons/lang/StringEscapeUtils.class</include>
                    <include>org/apache/commons/lang/exception/NestableRuntimeException.class</include>
                    <include>org/apache/commons/lang/exception/Nestable.class</include>
                    <include>org/apache/commons/lang/Entities*class</include>
                    <include>org/apache/commons/lang/UnhandledException.class</include>
                    <include>org/apache/commons/lang/IntHashMap*class</include>
                  </includes>
                </filter>
              </filters>
              <relocations>
                <relocation>
                  <pattern>org.objectweb.asm</pattern>
                  <shadedPattern>org.objectweb.asm.xwork</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.commons.lang</pattern>
                  <shadedPattern>org.apache.commons.lang.xwork</shadedPattern>
                </relocation>
              </relocations>
              <transformers>
                <transformer />
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <executions>
          <execution>
            <id>bundle-manifest</id>
            <phase>process-classes</phase>
            <goals>
              <goal>manifest</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <instructions>
            <Export-Package>org.apache.commons.lang.xwork.*,com.opensymphony.xwork2.*</Export-Package>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>j4</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>retrotranslator-maven-plugin</artifactId>
            <version>1.0-alpha-4</version>
            <executions>
              <execution>
                <phase>package</phase>
                <goals>
                  <goal>translate-project</goal>
                </goals>
                <configuration>
                  <verify>false</verify>
                  <failonwarning>true</failonwarning>
                  <lazy>true</lazy>
                  <advanced>true</advanced>
                  <verbose>false</verbose>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1.1</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
      <version>2.5.6</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-aop</artifactId>
      <version>2.5.6</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-aspects</artifactId>
      <version>2.5.6</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
      <version>2.5.6</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
      <version>2.5.6</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context-support</artifactId>
      <version>2.5.6</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-web</artifactId>
      <version>2.5.6</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-test</artifactId>
      <version>2.5.6</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>cglib</groupId>
      <artifactId>cglib-nodep</artifactId>
      <version>2.1_3</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.5</version>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
      <version>5.1</version>
      <classifier>jdk15</classifier>
      <scope>compile</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>mockobjects</groupId>
      <artifactId>mockobjects-core</artifactId>
      <version>0.09</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.easymock</groupId>
      <artifactId>easymock</artifactId>
      <version>2.4</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>

