| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://maven.apache.org/POM/4.0.0"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>com.dk.iboss</groupId>
- <artifactId>dkic-server-gateway</artifactId>
- <version>3.0.0</version>
- <name>dkic-server-gateway</name>
- <description>dk iboss gateway server</description>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.2.6.RELEASE</version>
- <relativePath/>
- </parent>
- <properties>
- <maven.compiler.source>8</maven.compiler.source>
- <maven.compiler.target>8</maven.compiler.target>
- <springframework-cloud.version>Hoxton.RELEASE</springframework-cloud.version>
- <alibaba-cloud.version>2.2.0.RELEASE</alibaba-cloud.version>
- </properties>
- <profiles>
- <profile>
- <id>st</id>
- <properties>
- <environment>st</environment>
- </properties>
- </profile>
- <profile>
- <id>uat</id>
- <properties>
- <environment>uat</environment>
- </properties>
- </profile>
- <profile>
- <id>prod</id>
- <properties>
- <environment>prod</environment>
- </properties>
- </profile>
- <profile>
- <id>test</id>
- <properties>
- <environment>test</environment>
- </properties>
- </profile>
- <profile>
- <id>dev</id>
- <properties>
- <environment>dev</environment>
- </properties>
- <activation>
- <activeByDefault>true</activeByDefault><!-- 默认激活该profile节点-->
- </activation>
- </profile>
- </profiles>
- <dependencyManagement>
- <dependencies>
- <!--整合spring cloud-->
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-dependencies</artifactId>
- <version>${springframework-cloud.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <!--整合spring cloud alibaba-->
- <dependency>
- <groupId>com.alibaba.cloud</groupId>
- <artifactId>spring-cloud-alibaba-dependencies</artifactId>
- <version>${alibaba-cloud.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>com.alibaba.cloud</groupId>
- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
- </dependency>
- <!--项目整合Nacos实现配置管理-->
- <dependency>
- <groupId>com.alibaba.cloud</groupId>
- <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
- </dependency>
- <!--必须加,不加不注册-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-actuator</artifactId>
- </dependency>
- <!--lombok-->
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <optional>true</optional>
- </dependency>
- <!--sentinel-->
- <dependency>
- <groupId>com.alibaba.cloud</groupId>
- <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
- </dependency>
- <!--redis-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-redis</artifactId>
- <version>2.3.1.RELEASE</version>
- </dependency>
- <!--webflux与webmvc不兼容,需要排除掉,否则会项目启动不起来-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.springframework</groupId>
- <artifactId>spring-webmvc</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.tomcat.embed</groupId>
- <artifactId>tomcat-embed-core</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <!--webflux-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-webflux</artifactId>
- </dependency>
- <!--服务发现-->
- <dependency>
- <groupId>com.alibaba.cloud</groupId>
- <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
- </dependency>
- <!--gateway网关-->
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-gateway</artifactId>
- </dependency>
- <!--feign-->
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-openfeign</artifactId>
- </dependency>
- <!--loadbalancer-->
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-loadbalancer</artifactId>
- </dependency>
- <!-- JWT -->
- <dependency>
- <groupId>com.auth0</groupId>
- <artifactId>java-jwt</artifactId>
- <version>3.4.1</version>
- </dependency>
- </dependencies>
- <build>
- <resources>
- <resource> <!--此处配置到java是因为mapper.xml文件在java目录-->
- <directory>src/main/java</directory>
- <includes>
- <include>**/*.xml</include>
- </includes>
- <filtering>false</filtering>
- </resource>
- <resource> <!--项目配置文件-->
- <directory>src/main/resources/${environment}</directory>
- <includes>
- <include>**/*</include>
- </includes>
- </resource>
- <resource> <!--日志配置文件-->
- <directory>src/main/resources</directory>
- <includes>
- <include>**/*</include>
- </includes>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <mainClass>com.dk.gateway.GatewayServer</mainClass>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.2.2</version>
- <configuration>
- <serverId>aliyun-acr</serverId>
- <registryUrl>registry.cn-shenzhen.aliyuncs.com</registryUrl>
- <!--依赖的基础镜像-->
- <baseImage>java</baseImage>
- <!--imageName必须跟仓库路径一致-->
- <imageName>registry.cn-shenzhen.aliyuncs.com/hgscrm-${environment}/${project.artifactId}:${project.version}</imageName>
- <!-- 指定Dockerfile所在的路径 -->
- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.build.directory}</directory>
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- <pushImage>true</pushImage>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <repositories>
- <repository>
- <!--恒洁maven私服 haip仓库-->
- <id>private</id>
- <name>private</name>
- <url>http://172.17.216.67:8081/repository/haip</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- <!--maven私服 setting.xml 配置
- <server>
- <id>haip</id>
- <username>haip</username>
- <password>haip2020</password>
- </server>-->
- <!--阿里云仓库-->
- <repository>
- <id>aliyun</id>
- <name>aliyun</name>
- <url>https://maven.aliyun.com/repository/public</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- <!--中央仓库-->
- <repository>
- <id>central</id>
- <name>central</name>
- <url>https://repo1.maven.org/maven2</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
- </project>
|