123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- ~
- ~ Copyright (c) 2018-2025, avenue All rights reserved.
- ~
- ~ Redistribution and use in source and binary forms, with or without
- ~ modification, are permitted provided that the following conditions are met:
- ~
- ~ Redistributions of source code must retain the above copyright notice,
- ~ this list of conditions and the following disclaimer.
- ~ Redistributions in binary form must reproduce the above copyright
- ~ notice, this list of conditions and the following disclaimer in the
- ~ documentation and/or other materials provided with the distribution.
- ~ Neither the name of the pig4cloud.com developer nor the names of its
- ~ contributors may be used to endorse or promote products derived from
- ~ this software without specific prior written permission.
- ~ Author: avenue
- ~
- -->
- <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.emergency</groupId>
- <artifactId>avenue</artifactId>
- <version>4.6.0</version>
- <name>${project.artifactId}</name>
- <packaging>pom</packaging>
- <organization>
- <name>pig4cloud</name>
- <url>https://www.pig4cloud.com</url>
- </organization>
- <properties>
- <spring-boot.version>2.7.0</spring-boot.version>
- <spring-cloud.version>2021.0.5</spring-cloud.version>
- <spring-cloud-alibaba.version>2021.0.1.0</spring-cloud-alibaba.version>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
- <maven.compiler.version>3.8.1</maven.compiler.version>
- <spring.checkstyle.version>0.0.34</spring.checkstyle.version>
- <git.commit.version>2.2.5</git.commit.version>
- <spring-boot-admin.version>2.7.9</spring-boot-admin.version>
- <spring.authorization.version>0.4.0</spring.authorization.version>
- <captcha.version>1.2.7</captcha.version>
- <cas.sdk.version>3.6.4</cas.sdk.version>
- <dingtalk.old.version>2.0.0</dingtalk.old.version>
- <knife4j.version>4.0.0</knife4j.version>
- <springdoc.version>1.6.14</springdoc.version>
- <velocity.version>2.3</velocity.version>
- <velocity.tool.version>3.1</velocity.tool.version>
- <jasypt.version>3.0.4</jasypt.version>
- <ttl.version>2.12.6</ttl.version>
- <aws.version>1.11.543</aws.version>
- <jaxb.version>2.3.5</jaxb.version>
- <docker.registry>10.165.153.100:82</docker.registry>
- <!-- 需要使用ssh隧道连接服务器-->
- <docker.host>http://127.0.0.1:2375</docker.host>
- <docker.namespace>library</docker.namespace>
- <docker.username>admin</docker.username>
- <docker.password>123</docker.password>
- <docker.plugin.version>0.33.0</docker.plugin.version>
- <!-- 默认忽略docker构建 -->
- <docker.skip>false</docker.skip>
- <xxl.job.version>2.3.0</xxl.job.version>
- <image.version>4.6.1</image.version>
- <squirrel.version>0.3.10</squirrel.version>
- <fastjson.version>1.2.83</fastjson.version>
- <redisson.springStarter>3.17.3</redisson.springStarter>
- </properties>
- <dependencies>
- <!--配置文件处理器-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-configuration-processor</artifactId>
- <optional>true</optional>
- </dependency>
- <!--jasypt配置文件加解密-->
- <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>
- <!-- xxl-job -->
- <dependency>
- <groupId>com.xuxueli</groupId>
- <artifactId>xxl-job-core</artifactId>
- <version>2.3.0</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>
- <!--验证码-->
- <dependency>
- <groupId>com.github.axet</groupId>
- <artifactId>kaptcha</artifactId>
- <version>0.0.9</version>
- </dependency>
- </dependencies>
- <modules>
- <module>avenue-auth</module>
- <module>avenue-codegen</module>
- <module>avenue-upms</module>
- <module>avenue-common</module>
- </modules>
- <dependencyManagement>
- <dependencies>
- <!--avenue 公共版本定义-->
- <dependency>
- <groupId>com.emergency</groupId>
- <artifactId>avenue-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>
- <!--web 模块-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- <version>${spring-boot.version}</version>
- <exclusions>
- <!--排除tomcat依赖-->
- <exclusion>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- <groupId>org.springframework.boot</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <build>
- <finalName>${project.name}</finalName>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- <pluginManagement>
- <plugins>
- <!--spring boot 默认插件-->
- <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>
- </plugin>
- <!--maven docker 打包插件 -->
- <plugin>
- <groupId>io.fabric8</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>${docker.plugin.version}</version>
- <configuration>
- <dockerHost>${docker.host}</dockerHost>
- <registry>${docker.registry}</registry>
- <authConfig>
- <push>
- <username>${docker.username}</username>
- <password>${docker.password}</password>
- </push>
- </authConfig>
- <images>
- <image>
- <name>${docker.registry}/${docker.namespace}/${project.name}:${image.version}</name>
- <build>
- <dockerFile>${project.basedir}/Dockerfile</dockerFile>
- </build>
- </image>
- </images>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <!--代码格式插件,默认使用spring 规则-->
- <plugin>
- <groupId>io.spring.javaformat</groupId>
- <artifactId>spring-javaformat-maven-plugin</artifactId>
- <version>${spring.checkstyle.version}</version>
- </plugin>
- <!--代码编译指定版本插件-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>${maven.compiler.version}</version>
- <configuration>
- <target>${maven.compiler.target}</target>
- <source>${maven.compiler.source}</source>
- <encoding>UTF-8</encoding>
- <skip>true</skip>
- </configuration>
- </plugin>
- <!--打包关联最新 git commit 信息插件-->
- <plugin>
- <groupId>pl.project13.maven</groupId>
- <artifactId>git-commit-id-plugin</artifactId>
- <version>${git.commit.version}</version>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>dev</id>
- <properties>
- <!-- 环境标识,需要与配置文件的名称相对应 -->
- <profiles.active>dev</profiles.active>
- </properties>
- <activation>
- <!-- 默认环境 -->
- <activeByDefault>true</activeByDefault>
- </activation>
- </profile>
- </profiles>
- </project>
|