1138 lines
47 KiB
XML
1138 lines
47 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
~ Copyright 1999-2021 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>
|
|
<inceptionYear>2018</inceptionYear>
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
<artifactId>nacos-all</artifactId>
|
|
<version>${revision}</version>
|
|
<packaging>pom</packaging>
|
|
|
|
<name>Alibaba NACOS ${project.version}</name>
|
|
<description>Top Nacos project pom.xml file</description>
|
|
<url>https://nacos.io</url>
|
|
<prerequisites>
|
|
<maven>3.2.5</maven>
|
|
</prerequisites>
|
|
|
|
<scm>
|
|
<url>git@github.com:alibaba/nacos.git</url>
|
|
<connection>scm:git@github.com:alibaba/nacos.git</connection>
|
|
<developerConnection>scm:git@github.com:alibaba/nacos.git</developerConnection>
|
|
<tag>nacos-all-${revision}</tag>
|
|
</scm>
|
|
|
|
<mailingLists>
|
|
<mailingList>
|
|
<name>Development List</name>
|
|
<subscribe>dev-nacos+subscribe@googlegroups.com</subscribe>
|
|
<unsubscribe>dev-nacos+unsubscribe@googlegroups.com</unsubscribe>
|
|
<post>dev-nacos@googlegroups.com</post>
|
|
</mailingList>
|
|
<mailingList>
|
|
<name>User List</name>
|
|
<subscribe>users-nacos+subscribe@googlegroups.com</subscribe>
|
|
<unsubscribe>users-nacos+unsubscribe@googlegroups.com</unsubscribe>
|
|
<post>users-nacos@googlegroups.com</post>
|
|
</mailingList>
|
|
<mailingList>
|
|
<name>Commits List</name>
|
|
<subscribe>commits-nacos+subscribe@googlegroups.com</subscribe>
|
|
<unsubscribe>commits-nacos+unsubscribe@googlegroups.com</unsubscribe>
|
|
<post>commits-nacos@googlegroups.com</post>
|
|
</mailingList>
|
|
</mailingLists>
|
|
|
|
<developers>
|
|
<developer>
|
|
<id>Alibaba Nacos</id>
|
|
<name>Nacos</name>
|
|
<url>https://nacos.io</url>
|
|
<email>nacos_dev@linux.alibaba.com</email>
|
|
</developer>
|
|
</developers>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>Apache License, Version 2.0</name>
|
|
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
|
|
<distribution>repo</distribution>
|
|
</license>
|
|
</licenses>
|
|
|
|
<organization>
|
|
<name>Alibaba Group</name>
|
|
<url>https://github.com/alibaba</url>
|
|
</organization>
|
|
|
|
<issueManagement>
|
|
<system>github</system>
|
|
<url>https://github.com/alibaba/nacos/issues</url>
|
|
</issueManagement>
|
|
|
|
<properties>
|
|
<revision>3.3.0-SNAPSHOT</revision>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
<!-- Compiler settings properties -->
|
|
<client.java.version>1.8</client.java.version>
|
|
<java.version>17</java.version>
|
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
|
<!-- Maven properties -->
|
|
<maven.test.skip>false</maven.test.skip>
|
|
<maven.javadoc.skip>true</maven.javadoc.skip>
|
|
<!-- Exclude all generated code -->
|
|
<sonar.exclusions>file:**/generated-sources/**,**/test/**</sonar.exclusions>
|
|
|
|
<!-- plugin version -->
|
|
<versions-maven-plugin.version>2.2</versions-maven-plugin.version>
|
|
<dependency-mediator-maven-plugin.version>1.0.2</dependency-mediator-maven-plugin.version>
|
|
<clirr-maven-plugin.version>2.7</clirr-maven-plugin.version>
|
|
<maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version>
|
|
<maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version>
|
|
<maven-javadoc-plugin.version>2.10.4</maven-javadoc-plugin.version>
|
|
<maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
|
|
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
|
|
|
|
<apache-rat-plugin.version>0.12</apache-rat-plugin.version>
|
|
<maven-resources-plugin.version>3.0.2</maven-resources-plugin.version>
|
|
<jacoco-maven-plugin.version>0.8.13</jacoco-maven-plugin.version>
|
|
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
|
|
<spotbugs-maven-plugin.version>4.8.6.2</spotbugs-maven-plugin.version>
|
|
<sonar-maven-plugin.version>3.0.2</sonar-maven-plugin.version>
|
|
<maven-gpg-plugin.version>3.1.0</maven-gpg-plugin.version>
|
|
<maven-failsafe-plugin.version>3.5.4</maven-failsafe-plugin.version>
|
|
<maven-assembly-plugin.version>3.0.0</maven-assembly-plugin.version>
|
|
<maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version>
|
|
<maven-easyj-version>1.1.5</maven-easyj-version>
|
|
<!-- dependency version related to plugin -->
|
|
<extra-enforcer-rules.version>1.9.0</extra-enforcer-rules.version>
|
|
|
|
<!-- dependency version -->
|
|
<nacos.logback.adapter.version>1.1.5</nacos.logback.adapter.version>
|
|
<spring-boot-dependencies.version>4.0.6</spring-boot-dependencies.version>
|
|
|
|
<commons-io.version>2.14.0</commons-io.version>
|
|
<commons-collections.version>3.2.2</commons-collections.version>
|
|
<slf4j-api.version>2.0.13</slf4j-api.version>
|
|
<logback.version>1.5.32</logback.version>
|
|
<log4j.version>2.25.4</log4j.version>
|
|
|
|
<mysql-connector-java.version>8.2.0</mysql-connector-java.version>
|
|
<postgresql.version>42.7.11</postgresql.version>
|
|
<derby.version>10.14.2.0</derby.version>
|
|
<jjwt.version>0.11.2</jjwt.version>
|
|
<grpc-java.version>1.78.0</grpc-java.version>
|
|
<proto-google-common-protos.version>2.17.0</proto-google-common-protos.version>
|
|
<protobuf-java.version>3.25.5</protobuf-java.version>
|
|
<protoc-gen-grpc-java.version>${grpc-java.version}</protoc-gen-grpc-java.version>
|
|
<hessian.version>4.0.63</hessian.version>
|
|
<mockito.version>4.11.0</mockito.version>
|
|
<byte-buddy-agent.version>1.17.8</byte-buddy-agent.version>
|
|
<HikariCP.version>3.4.2</HikariCP.version>
|
|
<jraft-core.version>1.4.0</jraft-core.version>
|
|
<rpc-grpc-impl.version>${jraft-core.version}</rpc-grpc-impl.version>
|
|
<!-- gson version should follow grcp-core dependency -->
|
|
<!-- TODO try to remove direct dependency on gson -->
|
|
<gson.version>2.11.0</gson.version>
|
|
<SnakeYaml.version>2.0</SnakeYaml.version>
|
|
<kubernetes.client.version>22.0.0</kubernetes.client.version>
|
|
<junit6.version>6.0.3</junit6.version>
|
|
<mcp.version>0.18.2</mcp.version>
|
|
<ojdbc.version>19.7.0.0</ojdbc.version>
|
|
|
|
<!-- Maven Central Portal -->
|
|
<central.publishing.maven.version>0.7.0</central.publishing.maven.version>
|
|
|
|
<!-- Override micrometer version for Spring Boot 3.5.x compatibility,
|
|
see https://github.com/alibaba/nacos/issues/15033 -->
|
|
<micrometer.version>1.15.11</micrometer.version>
|
|
|
|
<!-- native -->
|
|
<native-maven-plugin.version>0.10.2</native-maven-plugin.version>
|
|
</properties>
|
|
<!-- == -->
|
|
<!-- =========================================================Build plugins================================================ -->
|
|
<!-- == -->
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
<version>${maven-jar-plugin.version}</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<version>${spring-boot-dependencies.version}</version>
|
|
<configuration>
|
|
<attach>false</attach>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.sonatype.central</groupId>
|
|
<artifactId>central-publishing-maven-plugin</artifactId>
|
|
<version>${central.publishing.maven.version}</version>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>versions-maven-plugin</artifactId>
|
|
<version>${versions-maven-plugin.version}</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.github.vongosling</groupId>
|
|
<artifactId>dependency-mediator-maven-plugin</artifactId>
|
|
<version>${dependency-mediator-maven-plugin.version}</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>clirr-maven-plugin</artifactId>
|
|
<version>${clirr-maven-plugin.version}</version>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<version>${maven-enforcer-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce-ban-circular-dependencies</id>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<rules>
|
|
<banCircularDependencies/>
|
|
</rules>
|
|
<fail>true</fail>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>extra-enforcer-rules</artifactId>
|
|
<version>${extra-enforcer-rules.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>${maven-compiler-plugin.version}</version>
|
|
<configuration>
|
|
<source>${maven.compiler.source}</source>
|
|
<target>${maven.compiler.target}</target>
|
|
<compilerVersion>${maven.compiler.source}</compilerVersion>
|
|
<showDeprecation>true</showDeprecation>
|
|
<showWarnings>true</showWarnings>
|
|
<compilerArgs>
|
|
<arg>-parameters</arg>
|
|
</compilerArgs>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>${maven-javadoc-plugin.version}</version>
|
|
<configuration>
|
|
<charset>UTF-8</charset>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-javadocs</id>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<version>${maven-source-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-sources</id>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
<version>${maven-checkstyle-plugin.version}</version>
|
|
<configuration>
|
|
<configLocation>style/NacosCheckStyle.xml</configLocation>
|
|
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
|
<inputEncoding>UTF-8</inputEncoding>
|
|
<consoleOutput>true</consoleOutput>
|
|
<failsOnError>true</failsOnError>
|
|
<excludes>**/consistency/entity/**,**/nacos/test/**,**/api/grpc/auto/**,**/istio/**,**/protobuf/**
|
|
</excludes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>validate</id>
|
|
<phase>validate</phase>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.puppycrawl.tools</groupId>
|
|
<artifactId>checkstyle</artifactId>
|
|
<version>11.0.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.diffplug.spotless</groupId>
|
|
<artifactId>spotless-maven-plugin</artifactId>
|
|
<version>2.44.4</version>
|
|
<configuration>
|
|
<java>
|
|
<excludes>
|
|
<exclude>**/api/grpc/auto/**</exclude>
|
|
<exclude>**/consistency/entity/**</exclude>
|
|
<exclude>**/istio/model/**</exclude>
|
|
<exclude>**/common/packagescan/**</exclude>
|
|
<exclude>**/nacos/test/**</exclude>
|
|
<exclude>**/protobuf/**</exclude>
|
|
</excludes>
|
|
<toggleOffOn/>
|
|
<eclipse>
|
|
<file>${maven.multiModuleProjectDirectory}/style/nacos-eclipse-formatter.xml</file>
|
|
</eclipse>
|
|
<removeUnusedImports/>
|
|
</java>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.rat</groupId>
|
|
<artifactId>apache-rat-plugin</artifactId>
|
|
<version>${apache-rat-plugin.version}</version>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>.editorconfig</exclude>
|
|
<exclude>.travis.yml</exclude>
|
|
<exclude>codecov.yml</exclude>
|
|
<exclude>CONTRIBUTING.md</exclude>
|
|
<exclude>AGENTS.md</exclude>
|
|
<exclude>CLAUDE.md</exclude>
|
|
<exclude>CODE_OF_CONDUCT.md</exclude>
|
|
<exclude>CHANGELOG.md</exclude>
|
|
<exclude>style/codeStyle.md</exclude>
|
|
<exclude>REPORTING-BUGS.md</exclude>
|
|
<exclude>README.md</exclude>
|
|
<exclude>.github/**/*</exclude>
|
|
<exclude>doc/*</exclude>
|
|
<exclude>derby.log</exclude>
|
|
<exclude>logs/*</exclude>
|
|
<exclude>**/target/**</exclude>
|
|
<exclude>src/main/resources/static/**</exclude>
|
|
<exclude>**/istio/model/**</exclude>
|
|
<exclude>**/consistency/entity/**</exclude>
|
|
<exclude>**/*.txt</exclude>
|
|
<exclude>**/*.factories</exclude>
|
|
<exclude>/console-ui/**</exclude>
|
|
<exclude>/console-ui-next/**</exclude>
|
|
<exclude>**/gogo.proto</exclude>
|
|
<exclude>**/any.proto</exclude>
|
|
<exclude>src/main/java/com/alibaba/nacos/common/packagescan/classreading/**</exclude>
|
|
<exclude>.flattened-pom.xml</exclude>
|
|
<exclude>**/announcement*.conf</exclude>
|
|
<exclude>**/console-guide.conf</exclude>
|
|
<exclude>**/reflect-config.json</exclude>
|
|
<exclude>**/resource-config.json</exclude>
|
|
<exclude>**/proxy-config.json</exclude>
|
|
<exclude>**/jni-config.json</exclude>
|
|
<exclude>**/predefined-classes-config.json</exclude>
|
|
<exclude>**/serialization-config.json</exclude>
|
|
<exclude>**/filter-config.json</exclude>
|
|
<exclude>**/disk_cache_test/**</exclude>
|
|
<exclude>**/failover_test/**</exclude>
|
|
<exclude>lefthook.yml</exclude>
|
|
<exclude>.vscode/**</exclude>
|
|
<exclude>.claude/**</exclude>
|
|
<exclude>.cursor/**</exclude>
|
|
<exclude>.agents/**</exclude>
|
|
<exclude>.qoder/**</exclude>
|
|
<exclude>.tools/**</exclude>
|
|
<exclude>skills/**</exclude>
|
|
<exclude>.codegraph/**</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>${maven-resources-plugin.version}</version>
|
|
<configuration>
|
|
<!-- We are not suppose to setup the customer resources here -->
|
|
<encoding>${project.build.sourceEncoding}</encoding>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.jacoco</groupId>
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
<version>${jacoco-maven-plugin.version}</version>
|
|
<configuration>
|
|
<skip>${maven.test.skip}</skip>
|
|
<destFile>${project.build.directory}/coverage-reports/jacoco-unit.exec</destFile>
|
|
<dataFile>${project.build.directory}/coverage-reports/jacoco-unit.exec</dataFile>
|
|
<output>file</output>
|
|
<append>true</append>
|
|
<excludes>
|
|
<exclude>**/grpc/auto/**</exclude>
|
|
<exclude>**/packagescan/classreading/**</exclude>
|
|
<exclude>**/packagescan/resource/**</exclude>
|
|
<exclude>**/packagescan/util/**</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>default-prepare-agent</id>
|
|
<goals>
|
|
<goal>prepare-agent</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>default-report</id>
|
|
<phase>test</phase>
|
|
<goals>
|
|
<goal>report</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${maven-surefire-plugin.version}</version>
|
|
<configuration>
|
|
<argLine>
|
|
${argLine}
|
|
-javaagent:${settings.localRepository}/net/bytebuddy/byte-buddy-agent/${byte-buddy-agent.version}/byte-buddy-agent-${byte-buddy-agent.version}.jar
|
|
--add-opens java.base/java.lang=ALL-UNNAMED
|
|
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
|
|
--add-opens java.base/java.util=ALL-UNNAMED
|
|
--add-opens java.base/java.nio=ALL-UNNAMED
|
|
--add-opens java.base/sun.nio.ch=ALL-UNNAMED
|
|
</argLine>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>com.github.spotbugs</groupId>
|
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
|
<version>${spotbugs-maven-plugin.version}</version>
|
|
<configuration>
|
|
<excludeFilterFile>style/spotbugs-exclude.xml</excludeFilterFile>
|
|
<effort>Max</effort>
|
|
<threshold>High</threshold>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.sonarsource.scanner.maven</groupId>
|
|
<artifactId>sonar-maven-plugin</artifactId>
|
|
<version>${sonar-maven-plugin.version}</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>${maven-assembly-plugin.version}</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>icu.easyj.maven.plugins</groupId>
|
|
<artifactId>easyj-maven-plugin</artifactId>
|
|
<version>${maven-easyj-version}</version>
|
|
<configuration>
|
|
<simplifiedPomFileName>.flattened-pom.xml</simplifiedPomFileName>
|
|
<useTabIndent>true</useTabIndent>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>flatten-pom</id>
|
|
<goals>
|
|
<goal>simplify-pom</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>clean-flattened-pom</id>
|
|
<goals>
|
|
<goal>clean-simplify-pom</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>add-source</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>target/generated-sources/protobuf/java</source>
|
|
</sources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.sonatype.central</groupId>
|
|
<artifactId>central-publishing-maven-plugin</artifactId>
|
|
<extensions>true</extensions>
|
|
<configuration>
|
|
<publishingServerId>central</publishingServerId>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>jdk17</id>
|
|
<activation>
|
|
<jdk>[17,)</jdk>
|
|
</activation>
|
|
<!-- Disable doclint under JDK 8 -->
|
|
<reporting>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>${maven-javadoc-plugin.version}</version>
|
|
<configuration>
|
|
<additionalparam>-Xdoclint:none</additionalparam>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</reporting>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>${maven-javadoc-plugin.version}</version>
|
|
<configuration>
|
|
<additionalparam>-Xdoclint:none</additionalparam>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>release-sign-artifacts</id>
|
|
<activation>
|
|
<property>
|
|
<name>performRelease</name>
|
|
<value>true</value>
|
|
</property>
|
|
</activation>
|
|
|
|
<properties>
|
|
<maven.javadoc.skip>false</maven.javadoc.skip>
|
|
</properties>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-gpg-plugin</artifactId>
|
|
<version>${maven-gpg-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>sign-artifacts</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>sign</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>sonar-apache</id>
|
|
<properties>
|
|
<!-- URL of the ASF SonarQube server -->
|
|
<sonar.host.url>https://builds.apache.org/analysis</sonar.host.url>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
<reporting>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.github.spotbugs</groupId>
|
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
|
<version>${spotbugs-maven-plugin.version}</version>
|
|
</plugin>
|
|
</plugins>
|
|
</reporting>
|
|
|
|
<!-- Submodule management -->
|
|
<modules>
|
|
<module>config</module>
|
|
<module>core</module>
|
|
<module>naming</module>
|
|
<module>address</module>
|
|
<module>test</module>
|
|
<module>api</module>
|
|
<module>client</module>
|
|
<module>example</module>
|
|
<module>common</module>
|
|
<module>distribution</module>
|
|
<module>console</module>
|
|
<module>cmdb</module>
|
|
<module>istio</module>
|
|
<module>consistency</module>
|
|
<module>auth</module>
|
|
<module>sys</module>
|
|
<module>plugin</module>
|
|
<module>plugin-default-impl</module>
|
|
<module>prometheus</module>
|
|
<module>persistence</module>
|
|
<module>logger-adapter-impl</module>
|
|
<module>k8s-sync</module>
|
|
<module>bootstrap</module>
|
|
<module>server</module>
|
|
<module>lock</module>
|
|
<module>maintainer-client</module>
|
|
<module>client-basic</module>
|
|
<module>ai</module>
|
|
<module>copilot</module>
|
|
<module>ai-registry-adaptor</module>
|
|
</modules>
|
|
|
|
<!-- Default dependencies in all subprojects -->
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-inline</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-junit-jupiter</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<!-- Manage the version numbers of dependencies,
|
|
sub-modules will not introduce these dependencies by default -->
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.junit</groupId>
|
|
<artifactId>junit-bom</artifactId>
|
|
<version>${junit6.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-bom</artifactId>
|
|
<version>${mockito.version}</version>
|
|
<scope>import</scope>
|
|
<type>pom</type>
|
|
</dependency>
|
|
<dependency>
|
|
<!-- Import dependency management from Spring Boot -->
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
<version>${spring-boot-dependencies.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<!-- Internal libs -->
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-config</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-core</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-lock</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
<artifactId>nacos-persistence</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-naming</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
<artifactId>nacos-ai</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-api</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-client</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
<artifactId>nacos-maintainer-client</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
<artifactId>nacos-logback-adapter-12</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
<artifactId>logback-adapter</artifactId>
|
|
<version>${nacos.logback.adapter.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
<artifactId>nacos-log4j2-adapter</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-test</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-common</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-cmdb</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-console</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>default-auth-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-server</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-bootstrap</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-distribution</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-example</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-address</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-istio</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-k8s-sync</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-prometheus</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-consistency</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-auth-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-encryption-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
<artifactId>nacos-config-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-control-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
<artifactId>nacos-trace-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
<artifactId>nacos-datasource-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-custom-environment-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-ai-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-visibility-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-auth</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>nacos-sys</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
<artifactId>nacos-client-basic</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.nacos</groupId>
|
|
<artifactId>nacos-ai-registry-adaptor</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
<!-- HikariCP -->
|
|
<dependency>
|
|
<groupId>com.zaxxer</groupId>
|
|
<artifactId>HikariCP</artifactId>
|
|
<version>${HikariCP.version}</version>
|
|
</dependency>
|
|
|
|
<!-- MCP -->
|
|
<dependency>
|
|
<groupId>io.modelcontextprotocol.sdk</groupId>
|
|
<artifactId>mcp</artifactId>
|
|
<version>${mcp.version}</version>
|
|
</dependency>
|
|
|
|
<!-- hessian -->
|
|
<dependency>
|
|
<groupId>com.caucho</groupId>
|
|
<artifactId>hessian</artifactId>
|
|
<version>${hessian.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Apache commons -->
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
<version>${commons-io.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>commons-collections</groupId>
|
|
<artifactId>commons-collections</artifactId>
|
|
<version>${commons-collections.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Logging libs -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
<version>${slf4j-api.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
<version>${logback.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-core</artifactId>
|
|
<version>${logback.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-core</artifactId>
|
|
<version>${log4j.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-api</artifactId>
|
|
<version>${log4j.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-slf4j-impl</artifactId>
|
|
<version>${log4j.version}</version>
|
|
</dependency>
|
|
|
|
<!-- JDBC libs -->
|
|
<dependency>
|
|
<groupId>com.mysql</groupId>
|
|
<artifactId>mysql-connector-j</artifactId>
|
|
<version>${mysql-connector-java.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.postgresql</groupId>
|
|
<artifactId>postgresql</artifactId>
|
|
<version>${postgresql.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.derby</groupId>
|
|
<artifactId>derby</artifactId>
|
|
<version>${derby.version}</version>
|
|
</dependency>
|
|
|
|
<!-- JRaft -->
|
|
<dependency>
|
|
<groupId>com.alipay.sofa</groupId>
|
|
<artifactId>jraft-core</artifactId>
|
|
<version>${jraft-core.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>com.alipay.sofa</groupId>
|
|
<artifactId>bolt</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-api</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-core</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-slf4j-impl</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-jcl</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.alipay.sofa</groupId>
|
|
<artifactId>rpc-grpc-impl</artifactId>
|
|
<version>${rpc-grpc-impl.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>com.google.protobuf</groupId>
|
|
<artifactId>protobuf-java</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>io.grpc</groupId>
|
|
<artifactId>*</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!-- Third-party libs -->
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-api</artifactId>
|
|
<version>${jjwt.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-impl</artifactId>
|
|
<version>${jjwt.version}</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.jsonwebtoken</groupId>
|
|
<artifactId>jjwt-jackson</artifactId>
|
|
<version>${jjwt.version}</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>javax.annotation</groupId>
|
|
<artifactId>javax.annotation-api</artifactId>
|
|
<version>1.3.2</version>
|
|
</dependency>
|
|
|
|
<!-- gRPC dependency start -->
|
|
<dependency>
|
|
<groupId>io.grpc</groupId>
|
|
<artifactId>grpc-netty-shaded</artifactId>
|
|
<version>${grpc-java.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.grpc</groupId>
|
|
<artifactId>grpc-protobuf</artifactId>
|
|
<version>${grpc-java.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.grpc</groupId>
|
|
<artifactId>grpc-stub</artifactId>
|
|
<version>${grpc-java.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.grpc</groupId>
|
|
<artifactId>grpc-util</artifactId>
|
|
<version>${grpc-java.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.grpc</groupId>
|
|
<artifactId>grpc-testing</artifactId>
|
|
<version>${grpc-java.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.grpc</groupId>
|
|
<artifactId>grpc-inprocess</artifactId>
|
|
<version>${grpc-java.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.api.grpc</groupId>
|
|
<artifactId>proto-google-common-protos</artifactId>
|
|
<version>${proto-google-common-protos.version}</version>
|
|
</dependency>
|
|
<!-- gRPC dependency end -->
|
|
|
|
<dependency>
|
|
<groupId>com.google.protobuf</groupId>
|
|
<artifactId>protobuf-java</artifactId>
|
|
<version>${protobuf-java.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Micrometer -->
|
|
|
|
<dependency>
|
|
<groupId>io.micrometer</groupId>
|
|
<artifactId>micrometer-bom</artifactId>
|
|
<version>${micrometer.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.google.code.gson</groupId>
|
|
<artifactId>gson</artifactId>
|
|
<version>${gson.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.yaml</groupId>
|
|
<artifactId>snakeyaml</artifactId>
|
|
<version>${SnakeYaml.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.kubernetes</groupId>
|
|
<artifactId>client-java-api</artifactId>
|
|
<version>${kubernetes.client.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.kubernetes</groupId>
|
|
<artifactId>client-java</artifactId>
|
|
<version>${kubernetes.client.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.oracle.database.jdbc</groupId>
|
|
<artifactId>ojdbc8</artifactId>
|
|
<version>${ojdbc.version}</version>
|
|
<scope>provided</scope>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
</project>
|