123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- ~ Copyright (c) 2020 lttcai4cloud Authors. All Rights Reserved.
- ~
- ~ 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: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>cn.lttc.modules</groupId>
- <artifactId>lttcai</artifactId>
- <name>${project.artifactId}</name>
- <version>${revision}</version>
- <packaging>pom</packaging>
- <url>https://www.lttcai4cloud.com</url>
- <properties>
- <!-- 项目版本号 -->
- <revision>3.8.0</revision>
- <spring-boot.version>3.3.1</spring-boot.version>
- <spring-cloud.version>2023.0.3</spring-cloud.version>
- <spring-cloud-alibaba.version>2023.0.1.0</spring-cloud-alibaba.version>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.compiler.source>17</maven.compiler.source>
- <maven.compiler.target>17</maven.compiler.target>
- <spring-boot-admin.version>3.3.2</spring-boot-admin.version>
- <spring.authorization.version>1.3.1</spring.authorization.version>
- <screw.version>0.0.3</screw.version>
- <captcha.version>2.2.3</captcha.version>
- <aws.version>1.12.675</aws.version>
- <velocity.version>2.3</velocity.version>
- <velocity.tool.version>3.1</velocity.tool.version>
- <configuration.version>1.10</configuration.version>
- <jasypt.version>3.0.5</jasypt.version>
- <jaxb.version>4.0.5</jaxb.version>
- <knife4j.version>3.0.5</knife4j.version>
- <swagger.fox.version>3.0.0</swagger.fox.version>
- <xxl-job.version>2.4.0</xxl-job.version>
- <docker.plugin.version>0.44.0</docker.plugin.version>
- <docker.host>http://192.168.0.100:2375</docker.host>
- <docker.registry>registry.cn-shanghai.aliyuncs.com</docker.registry>
- <docker.namespace>lttcai4cloud</docker.namespace>
- <docker.username>username</docker.username>
- <docker.password>password</docker.password>
- <git.commit.plugin>9.0.1</git.commit.plugin>
- <spring.checkstyle.plugin>0.0.41</spring.checkstyle.plugin>
- <flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version>
- <maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
- </properties>
- <!-- 以下依赖 全局所有的模块都会引入 -->
- <dependencies>
- <!--配置文件处理器-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-configuration-processor</artifactId>
- <optional>true</optional>
- </dependency>
- <!--配置文件加解密-->
- <dependency>
- <groupId>com.github.ulisesbocchio</groupId>
- <artifactId>jasypt-spring-boot-starter</artifactId>
- <version>${jasypt.version}</version>
- </dependency>
- <!--监控-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-actuator</artifactId>
- </dependency>
- <!--监控客户端-->
- <dependency>
- <groupId>de.codecentric</groupId>
- <artifactId>spring-boot-admin-starter-client</artifactId>
- <version>${spring-boot-admin.version}</version>
- </dependency>
- <!--Lombok-->
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <scope>provided</scope>
- </dependency>
- <!-- JAVA 17 -->
- <dependency>
- <groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
- <version>${jaxb.version}</version>
- </dependency>
- <!--测试依赖-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <modules>
- <module>lttcai-register</module>
- <module>lttcai-gateway</module>
- <module>lttcai-auth</module>
- <module>lttcai-upms</module>
- <module>lttcai-common</module>
- <module>lttcai-visual</module>
- <module>aichat</module>
- </modules>
- <dependencyManagement>
- <dependencies>
- <!--lttcai 公共版本定义-->
- <dependency>
- <groupId>cn.lttc.modules</groupId>
- <artifactId>lttcai-common-bom</artifactId>
- <version>${project.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <!-- spring boot 依赖 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-dependencies</artifactId>
- <version>${spring-boot.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </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>
- <!-- spring cloud alibaba 依赖 -->
- <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>
- </dependencies>
- </dependencyManagement>
- <build>
- <finalName>${project.name}</finalName>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${spring-boot.version}</version>
- <configuration>
- <finalName>${project.build.finalName}</finalName>
- <layers>
- <enabled>true</enabled>
- </layers>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>io.fabric8</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>${docker.plugin.version}</version>
- <configuration>
- <!-- Docker Remote Api-->
- <dockerHost>${docker.host}</dockerHost>
- <!-- Docker 镜像私服-->
- <registry>${docker.registry}</registry>
- <!-- 认证信息-->
- <authConfig>
- <push>
- <username>${docker.username}</username>
- <password>${docker.password}</password>
- </push>
- </authConfig>
- <images>
- <image>
- <!-- 镜像名称: 172.17.0.111/library/lttcai-gateway:2.6.3-->
- <name>${docker.registry}/${docker.namespace}/${project.name}:${project.version}</name>
- <build>
- <dockerFile>${project.basedir}/Dockerfile</dockerFile>
- </build>
- </image>
- </images>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <!-- 统一 revision 版本 -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>flatten-maven-plugin</artifactId>
- <version>${flatten-maven-plugin.version}</version>
- <configuration>
- <flattenMode>resolveCiFriendliesOnly</flattenMode>
- <updatePomFile>true</updatePomFile>
- </configuration>
- <executions>
- <execution>
- <id>flatten</id>
- <phase>process-resources</phase>
- <goals>
- <goal>flatten</goal>
- </goals>
- </execution>
- <execution>
- <id>flatten.clean</id>
- <phase>clean</phase>
- <goals>
- <goal>clean</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>${maven-compiler-plugin.version}</version>
- <configuration>
- <target>${maven.compiler.target}</target>
- <source>${maven.compiler.source}</source>
- <encoding>UTF-8</encoding>
- <parameters>true</parameters>
- </configuration>
- </plugin>
- <!--打包jar 与git commit 关联插件-->
- <plugin>
- <groupId>io.github.git-commit-id</groupId>
- <artifactId>git-commit-id-maven-plugin</artifactId>
- <version>${git.commit.plugin}</version>
- <executions>
- <execution>
- <id>get-the-git-infos</id>
- <phase>initialize</phase>
- </execution>
- </executions>
- <configuration>
- <failOnNoGitDirectory>false</failOnNoGitDirectory>
- <generateGitPropertiesFile>true</generateGitPropertiesFile>
- <!--因为项目定制了jackson的日期时间序列化/反序列化格式,因此这里要进行配置,不然通过management.info.git.mode=full进行完整git信息监控时会存在问题-->
- <dateFormat>yyyy-MM-dd HH:mm:ss</dateFormat>
- <includeOnlyProperties>
- <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
- <includeOnlyProperty>^git.commit.(id|message|time).*$</includeOnlyProperty>
- </includeOnlyProperties>
- </configuration>
- </plugin>
- <!--
- 代码格式插件,默认使用spring 规则,可运行命令进行项目格式化:./mvnw spring-javaformat:apply 或 mvn spring-javaformat:apply,可在IDEA中安装插件以下插件进行自动格式化:
- https://repo1.maven.org/maven2/io/spring/javaformat/spring-javaformat-intellij-idea-plugin
- -->
- <plugin>
- <groupId>io.spring.javaformat</groupId>
- <artifactId>spring-javaformat-maven-plugin</artifactId>
- <version>${spring.checkstyle.plugin}</version>
- <executions>
- <execution>
- <phase>validate</phase>
- <inherited>true</inherited>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>cloud</id>
- <properties>
- <!-- 环境标识,需要与配置文件的名称相对应 -->
- <profiles.active>dev</profiles.active>
- <nacos.username>nacos</nacos.username>
- <nacos.password>nacos</nacos.password>
- </properties>
- <activation>
- <!-- 默认环境 -->
- <activeByDefault>true</activeByDefault>
- </activation>
- </profile>
- <profile>
- <id>boot</id>
- <modules>
- <module>lttcai-boot</module>
- </modules>
- </profile>
- </profiles>
- </project>
|