<?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>oss-parent</artifactId>
    <groupId>org.sonatype.oss</groupId>
    <version>7</version>
    <relativePath>../pom.xml/pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.github.yihtserns</groupId>
  <artifactId>spring-web-without-remoting</artifactId>
  <name>Spring Web without Spring Remoting package</name>
  <version>5.3.31.1</version>
  <description>Spring Web 5.x with `org.springframework.remoting` package removed, to fix CVE-2016-1000027 -  see https://github.com/spring-projects/spring-framework/issues/24434</description>
  <url>http://github.com/yihtserns/spring-web-without-remoting</url>
  <issueManagement>
    <url>http://github.com/yihtserns/spring-web-without-remoting/issues</url>
  </issueManagement>
  <developers>
    <developer>
      <id>yihtserns</id>
      <name>Sim Yih Tsern</name>
      <email>sim_yihtsern@yahoo.com</email>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:https://github.com/yihtserns/spring-web-without-remoting.git</connection>
    <developerConnection>scm:git:https://github.com/yihtserns/spring-web-without-remoting.git</developerConnection>
    <url>https://github.com/yihtserns/spring-web-without-remoting.git</url>
  </scm>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.5.1</version>
        <executions>
          <execution>
            <id>repackage-spring-web-without-remoting-package</id>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <includes>
                  <include>org.springframework:spring-web</include>
                </includes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>org.springframework:spring-web:jar:</artifact>
                  <excludes>
                    <exclude>org/springframework/remoting/**</exclude>
                  </excludes>
                </filter>
                <filter>
                  <artifact>org.springframework:spring-web:javadoc</artifact>
                  <excludes>
                    <exclude>**</exclude>
                  </excludes>
                </filter>
                <filter>
                  <artifact>org.springframework:spring-web:sources</artifact>
                  <excludes>
                    <exclude>**</exclude>
                  </excludes>
                </filter>
              </filters>
              <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
            </configuration>
          </execution>
          <execution>
            <id>repackage-javadoc</id>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <includes>
                  <include>org.springframework:spring-web:javadoc</include>
                </includes>
                <excludes>
                  <exclude>${project.groupId}:${project.artifactId}</exclude>
                </excludes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>org.springframework:spring-web:javadoc</artifact>
                  <excludes>
                    <exclude>org/springframework/remoting/**</exclude>
                  </excludes>
                </filter>
              </filters>
              <shadedArtifactAttached>true</shadedArtifactAttached>
              <shadedClassifierName>javadoc</shadedClassifierName>
              <createDependencyReducedPom>false</createDependencyReducedPom>
            </configuration>
          </execution>
          <execution>
            <id>repackage-sources</id>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <includes>
                  <include>org.springframework:spring-web:sources</include>
                </includes>
                <excludes>
                  <exclude>${project.groupId}:${project.artifactId}</exclude>
                </excludes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>org.springframework:spring-web:sources</artifact>
                  <excludes>
                    <exclude>org/springframework/remoting/**</exclude>
                  </excludes>
                </filter>
              </filters>
              <shadedArtifactAttached>true</shadedArtifactAttached>
              <shadedClassifierName>sources</shadedClassifierName>
              <createDependencyReducedPom>false</createDependencyReducedPom>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
      <version>5.3.31</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-core</artifactId>
      <version>5.3.31</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-jcl</artifactId>
      <version>5.3.31</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
</project>
