<?xml version="1.0" encoding="UTF-8"?>
|
<!--
|
~ Copyright 1999-2018 Alibaba Group Holding Ltd.
|
~
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
~ you may not use this file except in compliance with the License.
|
~ You may obtain a copy of the License at
|
~
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
~
|
~ Unless required by applicable law or agreed to in writing, software
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
~ See the License for the specific language governing permissions and
|
~ limitations under the License.
|
-->
|
<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">
|
<modelVersion>4.0.0</modelVersion>
|
<parent>
|
<groupId>com.iailab</groupId>
|
<artifactId>iailab-cloud</artifactId>
|
<version>0.0.1</version>
|
</parent>
|
<artifactId>iailab-nacos</artifactId>
|
<packaging>jar</packaging>
|
|
<properties>
|
<nacos.version>2.3.2</nacos.version>
|
<!-- 需要与 Nacos 内置 Boot 版本保持一致 -->
|
<nacos.lib.path>${project.basedir}/src/main/resources/lib</nacos.lib.path>
|
</properties>
|
|
<dependencyManagement>
|
<dependencies>
|
<!-- SpringBoot 依赖配置 -->
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-dependencies</artifactId>
|
<version>${spring.boot.version}</version>
|
<type>pom</type>
|
<scope>import</scope>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-all</artifactId>
|
<version>${nacos.version}</version>
|
<type>pom</type>
|
<scope>import</scope>
|
</dependency>
|
</dependencies>
|
</dependencyManagement>
|
|
<dependencies>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-auth</artifactId>
|
<version>${nacos.version}</version>
|
<scope>system</scope>
|
<systemPath>${nacos.lib.path}/nacos-auth-${nacos.version}.jar</systemPath>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-cmdb</artifactId>
|
<version>${nacos.version}</version>
|
<scope>system</scope>
|
<systemPath>${nacos.lib.path}/nacos-cmdb-${nacos.version}.jar</systemPath>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-config</artifactId>
|
<version>${nacos.version}</version>
|
<scope>system</scope>
|
<systemPath>${nacos.lib.path}/nacos-config-${nacos.version}.jar</systemPath>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-persistence</artifactId>
|
<version>${nacos.version}</version>
|
<scope>system</scope>
|
<systemPath>${nacos.lib.path}/nacos-persistence-${nacos.version}.jar</systemPath>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-consistency</artifactId>
|
<version>${nacos.version}</version>
|
<scope>system</scope>
|
<systemPath>${nacos.lib.path}/nacos-consistency-${nacos.version}.jar</systemPath>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-control-plugin</artifactId>
|
<version>${nacos.version}</version>
|
<scope>system</scope>
|
<systemPath>${nacos.lib.path}/nacos-control-plugin-${nacos.version}.jar</systemPath>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-config-plugin</artifactId>
|
<version>${nacos.version}</version>
|
<scope>system</scope>
|
<systemPath>${nacos.lib.path}/nacos-config-plugin-${nacos.version}.jar</systemPath>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-core</artifactId>
|
<version>${nacos.version}</version>
|
<scope>system</scope>
|
<systemPath>${nacos.lib.path}/nacos-core-${nacos.version}.jar</systemPath>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-istio</artifactId>
|
<version>${nacos.version}</version>
|
<scope>system</scope>
|
<systemPath>${nacos.lib.path}/nacos-istio-${nacos.version}.jar</systemPath>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-naming</artifactId>
|
<version>${nacos.version}</version>
|
<scope>system</scope>
|
<systemPath>${nacos.lib.path}/nacos-naming-${nacos.version}.jar</systemPath>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>default-auth-plugin</artifactId>
|
<version>${nacos.version}</version>
|
<scope>system</scope>
|
<systemPath>${nacos.lib.path}/default-auth-plugin-${nacos.version}.jar</systemPath>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>default-control-plugin</artifactId>
|
<version>${nacos.version}</version>
|
<scope>system</scope>
|
<systemPath>${nacos.lib.path}/default-control-plugin-${nacos.version}.jar</systemPath>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-prometheus</artifactId>
|
<version>${nacos.version}</version>
|
<scope>system</scope>
|
<systemPath>${nacos.lib.path}/nacos-prometheus-${nacos.version}.jar</systemPath>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-sys</artifactId>
|
<version>${nacos.version}</version>
|
<scope>system</scope>
|
<systemPath>${nacos.lib.path}/nacos-sys-${nacos.version}.jar</systemPath>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-custom-environment-plugin</artifactId>
|
<version>${nacos.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-datasource-plugin</artifactId>
|
<version>${nacos.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-encryption-plugin</artifactId>
|
<version>${nacos.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-trace-plugin</artifactId>
|
<version>${nacos.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-common</artifactId>
|
<version>${nacos.version}</version>
|
</dependency>
|
<dependency>
|
<groupId>com.alibaba.nacos</groupId>
|
<artifactId>nacos-client</artifactId>
|
</dependency>
|
|
<!-- SpringBoot Web容器 -->
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
<exclusions>
|
<exclusion>
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
<groupId>org.springframework.boot</groupId>
|
</exclusion>
|
<exclusion>
|
<artifactId>log4j-to-slf4j</artifactId>
|
<groupId>org.apache.logging.log4j</groupId>
|
</exclusion>
|
</exclusions>
|
</dependency>
|
<!-- web 容器使用 undertow 性能更强 -->
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-undertow</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-aop</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.ldap</groupId>
|
<artifactId>spring-ldap-core</artifactId>
|
</dependency>
|
|
<dependency>
|
<groupId>com.caucho</groupId>
|
<artifactId>hessian</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>commons-collections</groupId>
|
<artifactId>commons-collections</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>ch.qos.logback</groupId>
|
<artifactId>logback-classic</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>ch.qos.logback</groupId>
|
<artifactId>logback-core</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.mysql</groupId>
|
<artifactId>mysql-connector-j</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.apache.derby</groupId>
|
<artifactId>derby</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.alipay.sofa</groupId>
|
<artifactId>jraft-core</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.alipay.sofa</groupId>
|
<artifactId>rpc-grpc-impl</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>io.jsonwebtoken</groupId>
|
<artifactId>jjwt-api</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>io.jsonwebtoken</groupId>
|
<artifactId>jjwt-impl</artifactId>
|
<scope>runtime</scope>
|
</dependency>
|
<dependency>
|
<groupId>io.jsonwebtoken</groupId>
|
<artifactId>jjwt-jackson</artifactId>
|
<scope>runtime</scope>
|
</dependency>
|
<dependency>
|
<groupId>org.javatuples</groupId>
|
<artifactId>javatuples</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>com.google.code.gson</groupId>
|
<artifactId>gson</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>io.micrometer</groupId>
|
<artifactId>micrometer-registry-prometheus</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>io.micrometer</groupId>
|
<artifactId>micrometer-registry-influx</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>io.micrometer</groupId>
|
<artifactId>micrometer-registry-elastic</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
</dependency>
|
|
<dependency>
|
<groupId>io.envoyproxy.controlplane</groupId>
|
<artifactId>api</artifactId>
|
<version>0.1.27</version>
|
</dependency>
|
|
<!-- log -->
|
<!-- apache commons logging通过slf4j来代理 -->
|
<dependency>
|
<groupId>org.slf4j</groupId>
|
<artifactId>jcl-over-slf4j</artifactId>
|
</dependency>
|
<!-- java.util.logging 通过slf4j来代理 -->
|
<dependency>
|
<groupId>org.slf4j</groupId>
|
<artifactId>jul-to-slf4j</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-security</artifactId>
|
</dependency>
|
<dependency>
|
<groupId>de.codecentric</groupId>
|
<artifactId>spring-boot-admin-client</artifactId>
|
<version>${spring-boot-admin.version}</version>
|
</dependency>
|
</dependencies>
|
|
<build>
|
<finalName>${project.artifactId}</finalName>
|
<plugins>
|
<plugin>
|
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
<version>${spring.boot.version}</version>
|
<executions>
|
<execution>
|
<goals>
|
<goal>repackage</goal>
|
</goals>
|
</execution>
|
</executions>
|
<configuration>
|
<!-- 作用:项目打成jar的同时将本地jar包也引入进去 -->
|
<includeSystemScope>true</includeSystemScope>
|
</configuration>
|
</plugin>
|
</plugins>
|
</build>
|
|
</project>
|