刘洪青 | a2e4efb | 2019-12-04 14:01:36 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | <modelVersion>4.0.0</modelVersion> |
| 5 | |
| 6 | <parent> |
| 7 | <groupId>com.supwisdom.buildcommons</groupId> |
| 8 | <artifactId>spring-cloud-parent</artifactId> |
| 9 | <version>Finchley.RELEASE-1.1</version> |
| 10 | </parent> |
| 11 | |
| 12 | <groupId>com.supwisdom.institute</groupId> |
| 13 | <artifactId>sw-backend-zuul</artifactId> |
| 14 | <version>0.0.2-SNAPSHOT</version> |
| 15 | <packaging>jar</packaging> |
| 16 | |
| 17 | <name>Supwisdom Backend Framework Zuul</name> |
| 18 | <description>Supwisdom Backend Framework Zuul project</description> |
| 19 | |
| 20 | <properties> |
| 21 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 22 | <java.version>1.8</java.version> |
| 23 | |
| 24 | <argLine>-Dfile.encoding=UTF-8</argLine> |
| 25 | |
| 26 | <downloadSources>true</downloadSources> |
| 27 | <downloadJavadocs>true</downloadJavadocs> |
| 28 | |
| 29 | <maven.compiler.source>${java.version}</maven.compiler.source> |
| 30 | <maven.compiler.target>${java.version}</maven.compiler.target> |
| 31 | |
| 32 | <dockerfile-maven-plugin.version>1.4.8</dockerfile-maven-plugin.version> |
| 33 | <dockerfile.image.server>harbor.supwisdom.com</dockerfile.image.server> |
| 34 | <dockerfile.image.prefix>sw-admin-framework</dockerfile.image.prefix> |
| 35 | |
| 36 | <infras.version>0.1.2-SNAPSHOT</infras.version> |
| 37 | |
| 38 | <sw-backend-common.version>0.0.2-SNAPSHOT</sw-backend-common.version> |
| 39 | |
| 40 | <io.springfox.version>2.9.2</io.springfox.version> |
| 41 | |
| 42 | <start-class>com.supwisdom.institute.backend.zuul.Application</start-class> |
| 43 | </properties> |
| 44 | |
| 45 | <distributionManagement> |
| 46 | <repository> |
| 47 | <id>supwisdom-releases</id> |
| 48 | <name>internal release</name> |
| 49 | <url>https://app.supwisdom.com/nexus/content/repositories/releases</url> |
| 50 | </repository> |
| 51 | <snapshotRepository> |
| 52 | <id>supwisdom-snapshots</id> |
| 53 | <name>internal snapshots</name> |
| 54 | <url>https://app.supwisdom.com/nexus/content/repositories/snapshots</url> |
| 55 | </snapshotRepository> |
| 56 | </distributionManagement> |
| 57 | |
| 58 | <repositories> |
| 59 | <repository> |
| 60 | <snapshots> |
| 61 | <enabled>true</enabled> |
| 62 | </snapshots> |
| 63 | <id>supwisdom</id> |
| 64 | <url>https://app.supwisdom.com/nexus/content/groups/public/</url> |
| 65 | </repository> |
| 66 | <repository> |
| 67 | <snapshots> |
| 68 | <enabled>false</enabled> |
| 69 | </snapshots> |
| 70 | <id>central</id> |
| 71 | <url>http://repo.maven.apache.org/maven2</url> |
| 72 | </repository> |
| 73 | </repositories> |
| 74 | |
| 75 | |
| 76 | <dependencyManagement> |
| 77 | <dependencies> |
| 78 | |
| 79 | <dependency> |
| 80 | <groupId>com.supwisdom.infras</groupId> |
| 81 | <artifactId>infras-bom</artifactId> |
| 82 | <version>${infras.version}</version> |
| 83 | <type>pom</type> |
| 84 | <scope>import</scope> |
| 85 | </dependency> |
| 86 | |
| 87 | <dependency> |
| 88 | <groupId>com.supwisdom.institute</groupId> |
| 89 | <artifactId>sw-backend-common-core</artifactId> |
| 90 | <version>${sw-backend-common.version}</version> |
| 91 | </dependency> |
| 92 | |
| 93 | <dependency> |
| 94 | <groupId>com.supwisdom.institute</groupId> |
| 95 | <artifactId>sw-backend-common-utils</artifactId> |
| 96 | <version>${sw-backend-common.version}</version> |
| 97 | </dependency> |
| 98 | |
| 99 | <dependency> |
| 100 | <groupId>com.supwisdom.institute</groupId> |
| 101 | <artifactId>sw-backend-common-framework</artifactId> |
| 102 | <version>${sw-backend-common.version}</version> |
| 103 | </dependency> |
| 104 | |
| 105 | <!-- <dependency> |
| 106 | <groupId>org.apache.httpcomponents</groupId> |
| 107 | <artifactId>httpclient</artifactId> |
| 108 | <version>4.5.7</version> |
| 109 | </dependency> --> |
| 110 | |
| 111 | <dependency> |
| 112 | <groupId>com.alibaba</groupId> |
| 113 | <artifactId>fastjson</artifactId> |
| 114 | <version>1.2.56</version> |
| 115 | </dependency> |
| 116 | |
| 117 | |
| 118 | </dependencies> |
| 119 | </dependencyManagement> |
| 120 | |
| 121 | |
| 122 | |
| 123 | <dependencies> |
| 124 | <dependency> |
| 125 | <groupId>org.projectlombok</groupId> |
| 126 | <artifactId>lombok</artifactId> |
| 127 | <scope>provided</scope> |
| 128 | </dependency> |
| 129 | |
| 130 | |
| 131 | <dependency> |
| 132 | <groupId>org.springframework.boot</groupId> |
| 133 | <artifactId>spring-boot-starter</artifactId> |
| 134 | </dependency> |
| 135 | |
| 136 | <dependency> |
| 137 | <groupId>org.springframework.boot</groupId> |
| 138 | <artifactId>spring-boot-starter-web</artifactId> |
| 139 | </dependency> |
| 140 | |
| 141 | <!-- 微服务 健康监控 --> |
| 142 | <dependency> |
| 143 | <groupId>org.springframework.boot</groupId> |
| 144 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 145 | </dependency> |
| 146 | |
| 147 | |
| 148 | <!-- <dependency> |
| 149 | <groupId>com.supwisdom.infras</groupId> |
| 150 | <artifactId>infras-mvc</artifactId> |
| 151 | </dependency> |
| 152 | |
| 153 | <dependency> |
| 154 | <groupId>com.supwisdom.infras</groupId> |
| 155 | <artifactId>infras-object-mapper</artifactId> |
| 156 | </dependency> |
| 157 | |
| 158 | <dependency> |
| 159 | <groupId>com.supwisdom.infras</groupId> |
| 160 | <artifactId>infras-i18n</artifactId> |
| 161 | </dependency> |
| 162 | |
| 163 | <dependency> |
| 164 | <groupId>com.supwisdom.infras</groupId> |
| 165 | <artifactId>infras-lang</artifactId> |
| 166 | </dependency> --> |
| 167 | |
| 168 | <dependency> |
| 169 | <groupId>com.supwisdom.infras</groupId> |
| 170 | <artifactId>infras-security</artifactId> |
| 171 | </dependency> |
| 172 | |
| 173 | <dependency> |
| 174 | <groupId>io.jsonwebtoken</groupId> |
| 175 | <artifactId>jjwt</artifactId> |
| 176 | <version>0.9.1</version> |
| 177 | </dependency> |
| 178 | |
| 179 | <dependency> |
| 180 | <groupId>org.springframework.security</groupId> |
| 181 | <artifactId>spring-security-cas</artifactId> |
| 182 | </dependency> |
| 183 | |
| 184 | |
| 185 | <dependency> |
| 186 | <groupId>org.springframework.cloud</groupId> |
| 187 | <artifactId>spring-cloud-starter-netflix-zuul</artifactId> |
| 188 | </dependency> |
| 189 | |
| 190 | |
| 191 | <!-- <dependency> |
| 192 | <groupId>org.springframework.cloud</groupId> |
| 193 | <artifactId>spring-cloud-starter-openfeign</artifactId> |
| 194 | </dependency> |
| 195 | <dependency> |
| 196 | <groupId>org.apache.httpcomponents</groupId> |
| 197 | <artifactId>httpclient</artifactId> |
| 198 | </dependency> |
| 199 | <dependency> |
| 200 | <groupId>com.netflix.feign</groupId> |
| 201 | <artifactId>feign-httpclient</artifactId> |
| 202 | </dependency> --> |
| 203 | |
| 204 | |
| 205 | <dependency> |
| 206 | <groupId>commons-codec</groupId> |
| 207 | <artifactId>commons-codec</artifactId> |
| 208 | </dependency> |
| 209 | |
| 210 | <dependency> |
| 211 | <groupId>com.alibaba</groupId> |
| 212 | <artifactId>fastjson</artifactId> |
| 213 | </dependency> |
| 214 | |
| 215 | |
| 216 | <!-- 热部署,无需重启项目 --> |
| 217 | <dependency> |
| 218 | <groupId>org.springframework.boot</groupId> |
| 219 | <artifactId>spring-boot-devtools</artifactId> |
| 220 | <scope>runtime</scope> |
| 221 | </dependency> |
| 222 | |
| 223 | <dependency> |
| 224 | <groupId>org.springframework.boot</groupId> |
| 225 | <artifactId>spring-boot-starter-test</artifactId> |
| 226 | <scope>test</scope> |
| 227 | </dependency> |
| 228 | |
| 229 | </dependencies> |
| 230 | |
| 231 | <build> |
| 232 | <finalName>${project.artifactId}</finalName> |
| 233 | |
| 234 | <pluginManagement> |
| 235 | <plugins> |
| 236 | <plugin> |
| 237 | <groupId>com.spotify</groupId> |
| 238 | <artifactId>dockerfile-maven-plugin</artifactId> |
| 239 | <version>${dockerfile-maven-plugin.version}</version> |
| 240 | <configuration> |
| 241 | <repository>${dockerfile.image.server}/${dockerfile.image.prefix}/${project.artifactId}</repository> |
| 242 | <tag>${project.version}</tag> |
| 243 | <useMavenSettingsForAuth>true</useMavenSettingsForAuth> |
| 244 | <buildArgs> |
| 245 | <JAR_FILE>${project.build.finalName}.${project.packaging}</JAR_FILE> |
| 246 | <VERSION>${project.version}</VERSION> |
| 247 | <NAME>${project.artifactId}</NAME> |
| 248 | </buildArgs> |
| 249 | </configuration> |
| 250 | </plugin> |
| 251 | </plugins> |
| 252 | </pluginManagement> |
| 253 | |
| 254 | <plugins> |
| 255 | <plugin> |
| 256 | <groupId>org.apache.maven.plugins</groupId> |
| 257 | <artifactId>maven-compiler-plugin</artifactId> |
| 258 | </plugin> |
| 259 | <plugin> |
| 260 | <groupId>org.apache.maven.plugins</groupId> |
| 261 | <artifactId>maven-failsafe-plugin</artifactId> |
| 262 | </plugin> |
| 263 | <plugin> |
| 264 | <groupId>org.apache.maven.plugins</groupId> |
| 265 | <artifactId>maven-javadoc-plugin</artifactId> |
| 266 | </plugin> |
| 267 | <plugin> |
| 268 | <groupId>org.apache.maven.plugins</groupId> |
| 269 | <artifactId>maven-release-plugin</artifactId> |
| 270 | </plugin> |
| 271 | <plugin> |
| 272 | <groupId>org.jacoco</groupId> |
| 273 | <artifactId>jacoco-maven-plugin</artifactId> |
| 274 | </plugin> |
| 275 | |
| 276 | <plugin> |
| 277 | <groupId>org.springframework.boot</groupId> |
| 278 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 279 | <configuration> |
| 280 | <skip>false</skip> |
| 281 | </configuration> |
| 282 | </plugin> |
| 283 | |
| 284 | <plugin> |
| 285 | <groupId>com.spotify</groupId> |
| 286 | <artifactId>dockerfile-maven-plugin</artifactId> |
| 287 | <configuration> |
| 288 | <skip>false</skip> |
| 289 | </configuration> |
| 290 | </plugin> |
| 291 | |
| 292 | </plugins> |
| 293 | |
| 294 | </build> |
| 295 | |
| 296 | </project> |