加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pom.xml 13.63 KB
一键复制 编辑 原始数据 按行查看 历史
极乐醉卧沙场 提交于 2023-08-10 18:26 . docker部署版
<?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/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.8.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.sd365</groupId>
<artifactId>cloud-api-gateway</artifactId>
<packaging>pom</packaging>
<version>2.0.0</version>
<name>cloud-api-gateway</name>
<!--发布maven项目文档的位置-->
<url>http://192.168.10.105/gw/</url>
<!--项目创建的年份-->
<inceptionYear>2020</inceptionYear>
<modules>
<module>gateway-authentication-service</module>
<module>gateway-authorization-service</module>
<module>gateway-api-service</module>
</modules>
<properties>
<jackson-core.version>2.11.3</jackson-core.version>
<sd365-common.version>1.3.1-SNAPSHOT</sd365-common.version>
<mysql.version>8.0.30</mysql.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spring.boot.version>2.2.8.RELEASE</spring.boot.version>
<spring.data.redis.version>2.2.1.RELEASE</spring.data.redis.version>
<fastjson.version>1.2.58</fastjson.version>
<!--
<springfox.version>2.9.2</springfox.version>
<swagger-model.version>1.5.21</swagger-model.version>
<swagger-annotations.version>1.5.20</swagger-annotations.version>
-->
<knife4j.version>2.0.5</knife4j.version>
<tkmybatis-starter.version>2.1.5</tkmybatis-starter.version>
<pagehelper.version>1.2.10</pagehelper.version>
<log4j.version>2.17.1</log4j.version>
<slf4j.version>1.7.25</slf4j.version>
<lombok.version>1.18.12</lombok.version>
<guava.version>29.0-jre</guava.version>
<commons-lang3.version>3.10</commons-lang3.version>
<jedis.version>2.9.3</jedis.version>
<hibernate-validator.version>6.1.5.Final</hibernate-validator.version>
<validation-api.version>2.0.1.Final</validation-api.version>
<mail.version>1.4.7</mail.version>
<httpclient.version>3.1</httpclient.version>
<beanutils.version>1.9.3</beanutils.version>
<commons-io.version>2.4</commons-io.version>
<spring-context-support.version>4.1.5.RELEASE</spring-context-support.version>
<spring-cloud.version>Hoxton.SR3</spring-cloud.version>
<spring-cloud-alibaba.version>2.1.0.RELEASE</spring-cloud-alibaba.version>
<druid.version>1.1.10</druid.version>
<locker.version>2.3-RELEASE</locker.version>
<junit.version>4.12</junit.version>
<graylog.version>4.0.2</graylog.version>
<mybatis-generator-core.version>1.3.6</mybatis-generator-core.version>
<mapper-generator.version>1.0.0</mapper-generator.version>
<open-feign-version>2.2.2.RELEASE</open-feign-version>
</properties>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<!--graylog日志插件-->
<dependency>
<groupId>de.siegmar</groupId>
<artifactId>logback-gelf</artifactId>
<version>${graylog.version}</version>
</dependency>
</dependencies>
<!--mananger all jar version-->
<dependencyManagement>
<dependencies>
<!--<dependency>-->
<!--<groupId>org.springframework.data</groupId>-->
<!--<artifactId>spring-data-redis</artifactId>-->
<!--<version>${spring.data.redis.version}</version>-->
<!--</dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<version>${spring.boot.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.5</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
</dependency>
<!-- start common jar-->
<dependency>
<groupId>com.sd365</groupId>
<artifactId>common-util</artifactId>
<version>${sd365-common.version}</version>
</dependency>
<dependency>
<groupId>com.sd365</groupId>
<artifactId>common-log</artifactId>
<version>${sd365-common.version}</version>
</dependency>
<dependency>
<groupId>com.sd365</groupId>
<artifactId>common-core</artifactId>
<version>${sd365-common.version}</version>
</dependency>
<dependency>
<groupId>com.sd365</groupId>
<artifactId>common-cache-redis</artifactId>
<version>${sd365-common.version}</version>
</dependency>
<dependency>
<groupId>com.sd365</groupId>
<artifactId>common-config</artifactId>
<version>${sd365-common.version}</version>
</dependency>
<!-- start third part plugin-->
<dependency>
<groupId>com.github.dreamroute</groupId>
<artifactId>locker</artifactId>
<version>${locker.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
</dependency>
<!-- JSON -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson.version}</version>
</dependency>
<!-- Redis
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>${jedis.version}</version>
</dependency>
-->
<!-- 工具类 -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.4.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
<!-- JSR 303 -->
<!--<dependency>-->
<!--<groupId>org.hibernate</groupId>-->
<!--<artifactId>hibernate-validator</artifactId>-->
<!--<version>${hibernate-validator.version}</version>-->
<!--</dependency>-->
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>${validation-api.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- log4j -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${log4j.version}</version>
</dependency>
<!--JavaMail-->
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>${mail.version}</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>${httpclient.version}</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${beanutils.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons-io.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring-context-support.version}</version>
</dependency>
<!--start generator -->
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>${mybatis-generator-core.version}</version>
</dependency>
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper-spring-boot-starter</artifactId>
<version>${tkmybatis-starter.version}</version>
</dependency>
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper-generator</artifactId>
<version>${mapper-generator.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson-core.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson-core.version}</version>
</dependency>
<!-- for spring boot 从这里到最后都是spring boot 和 spring cloud的引入-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>${spring.boot.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring.boot.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${spring.boot.version}</version>
<scope>test</scope> <!--compile、runtime、test、provided、system和import-->
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
<version>${spring.boot.version}</version>
</dependency>
<!--以下定义spring cloud的版本-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>${spring-cloud-alibaba.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-openfeign-core</artifactId>
<version>${open-feign-version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
<plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.7.1</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.0.0</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<!--指向nexus私仓该配置用来mvn deploy 的发布jar包到相应仓库
改配置id必须和maven setting.config 文件的<server>节点的id一致
登录nexus的账号和密码在server中设置
-->
<distributionManagement>
<repository>
<id>maven-releases</id>
<name> Nexus Release Repository </name>
<url> http://120.25.244.131:8081/repository/maven-releases/ </url>
</repository>
<snapshotRepository>
<id>maven-snapshots</id>
<name> Nexus Snapshot Repository </name>
<url> http://120.25.244.131:8081/repository/maven-snapshots/ </url>
</snapshotRepository >
</distributionManagement >
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化