|
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + <groupId>org.springframework.issues</groupId> |
| 5 | + <artifactId>SPR-17521</artifactId> |
| 6 | + <version>1.0-SNAPSHOT</version> |
| 7 | + <name>SPR-17521</name> |
| 8 | + <packaging>jar</packaging> |
| 9 | + |
| 10 | + <properties> |
| 11 | + <java.version>1.8</java.version> |
| 12 | + <maven.compiler.source>${java.version}</maven.compiler.source> |
| 13 | + <maven.compiler.target>${java.version}</maven.compiler.target> |
| 14 | + <resource.delimiter>@</resource.delimiter> |
| 15 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 16 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 17 | + |
| 18 | + <spring.boot.version>2.0.6.RELEASE</spring.boot.version> |
| 19 | + <slf4j.version>1.7.22</slf4j.version> |
| 20 | + </properties> |
| 21 | + |
| 22 | + <dependencies> |
| 23 | + <dependency> |
| 24 | + <groupId>org.springframework.boot</groupId> |
| 25 | + <artifactId>spring-boot-starter</artifactId> |
| 26 | + <version>${spring.boot.version}</version> |
| 27 | + </dependency> |
| 28 | + <dependency> |
| 29 | + <groupId>org.springframework.boot</groupId> |
| 30 | + <artifactId>spring-boot-starter-websocket</artifactId> |
| 31 | + <version>${spring.boot.version}</version> |
| 32 | + </dependency> |
| 33 | + <dependency> |
| 34 | + <groupId>org.springframework.boot</groupId> |
| 35 | + <artifactId>spring-boot-starter-web</artifactId> |
| 36 | + <version>${spring.boot.version}</version> |
| 37 | + |
| 38 | + <exclusions> |
| 39 | + <exclusion> |
| 40 | + <groupId>org.springframework.boot</groupId> |
| 41 | + <artifactId>spring-boot-starter-tomcat</artifactId> |
| 42 | + </exclusion> |
| 43 | + </exclusions> |
| 44 | + </dependency> |
| 45 | + <dependency> |
| 46 | + <groupId>org.springframework.boot</groupId> |
| 47 | + <artifactId>spring-boot-starter-jetty</artifactId> |
| 48 | + <version>${spring.boot.version}</version> |
| 49 | + </dependency> |
| 50 | + |
| 51 | + <!-- Logging --> |
| 52 | + <dependency> |
| 53 | + <groupId>org.slf4j</groupId> |
| 54 | + <artifactId>slf4j-api</artifactId> |
| 55 | + <version>${slf4j.version}</version> |
| 56 | + </dependency> |
| 57 | + <dependency> |
| 58 | + <groupId>org.slf4j</groupId> |
| 59 | + <artifactId>jcl-over-slf4j</artifactId> |
| 60 | + <version>${slf4j.version}</version> |
| 61 | + <scope>runtime</scope> |
| 62 | + </dependency> |
| 63 | + <dependency> |
| 64 | + <groupId>org.slf4j</groupId> |
| 65 | + <artifactId>slf4j-log4j12</artifactId> |
| 66 | + <version>${slf4j.version}</version> |
| 67 | + <scope>runtime</scope> |
| 68 | + </dependency> |
| 69 | + <dependency> |
| 70 | + <groupId>log4j</groupId> |
| 71 | + <artifactId>log4j</artifactId> |
| 72 | + <version>1.2.17</version> |
| 73 | + <scope>runtime</scope> |
| 74 | + </dependency> |
| 75 | + </dependencies> |
| 76 | + |
| 77 | + <build> |
| 78 | + <plugins> |
| 79 | + <plugin> |
| 80 | + <groupId>org.apache.maven.plugins</groupId> |
| 81 | + <artifactId>maven-compiler-plugin</artifactId> |
| 82 | + <version>3.6.1</version> |
| 83 | + <configuration> |
| 84 | + <source>${java.version}</source> |
| 85 | + <target>${java.version}</target> |
| 86 | + </configuration> |
| 87 | + </plugin> |
| 88 | + <plugin> |
| 89 | + <groupId>org.apache.maven.plugins</groupId> |
| 90 | + <artifactId>maven-shade-plugin</artifactId> |
| 91 | + <version>3.1.1</version> |
| 92 | + <executions> |
| 93 | + <execution> |
| 94 | + <phase>package</phase> |
| 95 | + <goals> |
| 96 | + <goal>shade</goal> |
| 97 | + </goals> |
| 98 | + <configuration> |
| 99 | + <transformers> |
| 100 | + <transformer |
| 101 | + implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 102 | + <resource>META-INF/spring.handlers</resource> |
| 103 | + </transformer> |
| 104 | + <transformer |
| 105 | + implementation="org.springframework.boot.maven.PropertiesMergingResourceTransformer"> |
| 106 | + <resource>META-INF/spring.factories</resource> |
| 107 | + </transformer> |
| 108 | + <transformer |
| 109 | + implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
| 110 | + <resource>META-INF/spring.schemas</resource> |
| 111 | + </transformer> |
| 112 | + <transformer |
| 113 | + implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| 114 | + <transformer |
| 115 | + implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 116 | + <mainClass>${start-class}</mainClass> |
| 117 | + </transformer> |
| 118 | + </transformers> |
| 119 | + </configuration> |
| 120 | + </execution> |
| 121 | + </executions> |
| 122 | + <dependencies> |
| 123 | + <dependency> |
| 124 | + <groupId>org.springframework.boot</groupId> |
| 125 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 126 | + <version>${spring.boot.version}</version> |
| 127 | + </dependency> |
| 128 | + </dependencies> |
| 129 | + <configuration> |
| 130 | + <keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope> |
| 131 | + <createDependencyReducedPom>true</createDependencyReducedPom> |
| 132 | + <filters> |
| 133 | + <filter> |
| 134 | + <artifact>*:*</artifact> |
| 135 | + <excludes> |
| 136 | + <exclude>META-INF/*.SF</exclude> |
| 137 | + <exclude>META-INF/*.DSA</exclude> |
| 138 | + <exclude>META-INF/*.RSA</exclude> |
| 139 | + </excludes> |
| 140 | + </filter> |
| 141 | + </filters> |
| 142 | + </configuration> |
| 143 | + </plugin> |
| 144 | + <plugin> |
| 145 | + <groupId>org.springframework.boot</groupId> |
| 146 | + <artifactId>spring-boot-maven-plugin</artifactId> |
| 147 | + <version>${spring.boot.version}</version> |
| 148 | + <executions> |
| 149 | + <execution> |
| 150 | + <goals> |
| 151 | + <goal>repackage</goal> |
| 152 | + </goals> |
| 153 | + </execution> |
| 154 | + </executions> |
| 155 | + <configuration> |
| 156 | + <mainClass>${start-class}</mainClass> |
| 157 | + </configuration> |
| 158 | + </plugin> |
| 159 | + <!-- Default JAR plugin configuration. May be overrided by submodules. --> |
| 160 | + <plugin> |
| 161 | + <groupId>org.apache.maven.plugins</groupId> |
| 162 | + <artifactId>maven-jar-plugin</artifactId> |
| 163 | + <version>3.0.2</version> |
| 164 | + <configuration> |
| 165 | + <archive> |
| 166 | + <manifest> |
| 167 | + <mainClass>${start-class}</mainClass> |
| 168 | + <addDefaultImplementationEntries>true</addDefaultImplementationEntries> |
| 169 | + </manifest> |
| 170 | + </archive> |
| 171 | + </configuration> |
| 172 | + </plugin> |
| 173 | + |
| 174 | + </plugins> |
| 175 | + </build> |
| 176 | + |
| 177 | + <repositories> |
| 178 | + <repository> |
| 179 | + <id>spring-maven-snapshot</id> |
| 180 | + <name>Springframework Maven Snapshot Repository</name> |
| 181 | + <url>http://repo.spring.io/snapshot</url> |
| 182 | + <snapshots> |
| 183 | + <enabled>true</enabled> |
| 184 | + </snapshots> |
| 185 | + </repository> |
| 186 | + </repositories> |
| 187 | + |
| 188 | +</project> |
0 commit comments