123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431 |
- <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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>com.platomix</groupId>
- <artifactId>platomix-pom</artifactId>
- <packaging>pom</packaging>
- <version>1.2.4</version>
- <name>platomix-pom</name>
- <url>http://www.platomix.net/</url>
- <inceptionYear>2022-08-25</inceptionYear>
- <description>platomix 统一版本配置</description>
- <developers>
- <developer>
- <name>aokunsang</name>
- <email>807703605@qq.com</email>
- </developer>
- <developer>
- <name>others</name>
- <email>xxxxxx@qq.com</email>
- </developer>
- </developers>
- <properties>
- <platomix.tool.version>1.0.0</platomix.tool.version>
- <java.version>1.8</java.version>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.plugin.version>3.8.1</maven.plugin.version>
- <spring-boot.version>2.4.4</spring-boot.version>
- <spring-cloud.version>2020.0.5</spring-cloud.version>
- <swagger.version>2.10.5</swagger.version>
- <swagger.models.version>1.6.2</swagger.models.version>
- <knife4j.version>2.0.8</knife4j.version>
- <mybatis.plus.version>3.5.3.1</mybatis.plus.version>
- <mybatis.plus.dynamic.version>4.1.1</mybatis.plus.dynamic.version>
- <mybatis.plus.dynamic.creator.version>4.1.1.1</mybatis.plus.dynamic.creator.version>
- <druid.version>1.2.8</druid.version>
- <mysql.connector.version>8.0.22</mysql.connector.version>
- <oracle.connector.version>12.2.0.1</oracle.connector.version>
- <clickhouse.connector.version>0.3.2</clickhouse.connector.version>
- <sqlserver.connector.version>8.4.1.jre8</sqlserver.connector.version>
- <kingbase.connector.version>8.6.0</kingbase.connector.version>
- <postgresql.connector.version>42.5.0</postgresql.connector.version>
- <dameng.connector.version>8.1.1.87</dameng.connector.version>
- <uxdb.version>42.2.12</uxdb.version>
- <hutool.all.version>5.8.27</hutool.all.version>
- <fastjson2.version>2.0.10</fastjson2.version>
- <easycaptcha.version>1.6.2</easycaptcha.version>
- <easyexcel.version>3.2.0</easyexcel.version>
- <jjwt.version>0.11.2</jjwt.version>
- <guava.version>30.1.1-jre</guava.version>
- <redisson.version>3.11.6</redisson.version>
- <protostuff.version>1.6.0</protostuff.version>
- <httpcomponents.client.version>4.5.13</httpcomponents.client.version>
- <docker.plugin.version>0.40.3</docker.plugin.version>
- <docker.registry>docker.platomix.net:10000</docker.registry>
- <docker.namespace>platomix</docker.namespace>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <dependencyManagement>
- <dependencies>
- <!-- 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>
- <!-- MybatisPlus -->
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-boot-starter</artifactId>
- <version>${mybatis.plus.version}</version>
- </dependency>
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
- <version>${mybatis.plus.dynamic.version}</version>
- <exclusions>
- <exclusion>
- <groupId>com.baomidou</groupId>
- <artifactId>dynamic-datasource-creator</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>dynamic-datasource-creator</artifactId>
- <version>${mybatis.plus.dynamic.creator.version}</version>
- </dependency>
- <dependency>
- <groupId>com.clickhouse</groupId>
- <artifactId>clickhouse-jdbc</artifactId>
- <version>${clickhouse.connector.version}</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>${mysql.connector.version}</version>
- </dependency>
- <dependency>
- <groupId>com.oracle</groupId>
- <artifactId>ojdbc7</artifactId>
- <version>${oracle.connector.version}</version>
- </dependency>
- <dependency>
- <groupId>com.microsoft.sqlserver</groupId>
- <artifactId>mssql-jdbc</artifactId>
- <version>${sqlserver.connector.version}</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid-spring-boot-starter</artifactId>
- <version>${druid.version}</version>
- </dependency>
- <dependency>
- <groupId>com.kingbase8</groupId>
- <artifactId>kingbase8</artifactId>
- <version>${kingbase.connector.version}</version>
- </dependency>
- <dependency>
- <groupId>org.postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>${postgresql.connector.version}</version>
- </dependency>
- <dependency>
- <groupId>com.dameng</groupId>
- <artifactId>DmJdbcDriver18</artifactId>
- <version>${dameng.connector.version}</version>
- </dependency>
- <!-- JWT -->
- <dependency>
- <groupId>io.jsonwebtoken</groupId>
- <artifactId>jjwt-impl</artifactId>
- <version>${jjwt.version}</version>
- </dependency>
- <dependency>
- <groupId>io.jsonwebtoken</groupId>
- <artifactId>jjwt-jackson</artifactId>
- <version>${jjwt.version}</version>
- </dependency>
- <!--Swagger -->
- <dependency>
- <groupId>com.github.xiaoymin</groupId>
- <artifactId>knife4j-spring-boot-starter</artifactId>
- <version>${knife4j.version}</version>
- </dependency>
- <dependency>
- <groupId>cn.hutool</groupId>
- <artifactId>hutool-all</artifactId>
- <version>${hutool.all.version}</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>easyexcel</artifactId>
- <version>${easyexcel.version}</version>
- </dependency>
- <dependency>
- <groupId>com.github.whvcse</groupId>
- <artifactId>easy-captcha</artifactId>
- <version>${easycaptcha.version}</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba.fastjson2</groupId>
- <artifactId>fastjson2</artifactId>
- <version>${fastjson2.version}</version>
- </dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- <version>${guava.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpclient</artifactId>
- <version>${httpcomponents.client.version}</version>
- </dependency>
- <!-- protostuff -->
- <dependency>
- <groupId>io.protostuff</groupId>
- <artifactId>protostuff-core</artifactId>
- <version>${protostuff.version}</version>
- </dependency>
- <dependency>
- <groupId>io.protostuff</groupId>
- <artifactId>protostuff-runtime</artifactId>
- <version>${protostuff.version}</version>
- </dependency>
- <!-- redisson -->
- <dependency>
- <groupId>org.redisson</groupId>
- <artifactId>redisson</artifactId>
- <version>${redisson.version}</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <profiles>
- <profile>
- <id>arm</id>
- <properties>
- <cpu-architecture-classifier>-aarch64</cpu-architecture-classifier>
- </properties>
- </profile>
- <profile>
- <id>amd</id>
- <properties>
- <cpu-architecture-classifier></cpu-architecture-classifier>
- </properties>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- </profile>
- </profiles>
- <build>
- <finalName>${project.name}</finalName>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>false</filtering>
- </resource>
- <resource>
- <directory>src/main/resources</directory>
- <includes>
- <include>**/*.ttf</include>
- <include>**/*.ipdb</include>
- <include>META-INF/**</include>
- </includes>
- <filtering>false</filtering>
- </resource>
- <resource>
- <directory>src/main/java</directory>
- <includes>
- <include>**/*.xml</include>
- </includes>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>${maven.plugin.version}</version>
- <configuration>
- <source>${java.version}</source>
- <target>${java.version}</target>
- <encoding>UTF-8</encoding>
- <compilerArgs>
- <arg>-parameters</arg>
- </compilerArgs>
- </configuration>
- </plugin>
- <!-- sonar的代码质量检测,jenkins发版时候会校验
- <plugin>
- <groupId>org.sonarsource.scanner.maven</groupId>
- <artifactId>sonar-maven-plugin</artifactId>
- <version>${sonar.scanner.plugin.version}</version>
- </plugin>
- -->
- <!-- 添加基于p3c的pmd静态代码质量检测 -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-pmd-plugin</artifactId>
- <version>3.17.0</version>
- <configuration>
- <verbose>true</verbose>
- <!-- 规范的配置 -->
- <rulesets>
- <ruleset>${project.basedir}/ali-pmd.xml</ruleset>
- </rulesets>
- <printFailingErrors>true</printFailingErrors>
- <!-- <excludes>-->
- <!-- <exclude>**/consistency/entity/*.java</exclude>-->
- <!-- </excludes>-->
- </configuration>
- <executions>
- <execution>
- <id>pmd-check-verify</id>
- <phase>package</phase>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>com.alibaba.p3c</groupId>
- <artifactId>p3c-pmd</artifactId>
- <version>2.1.1</version>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- <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>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- 打source包 -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>3.0.1</version>
- <configuration>
- <attach>true</attach>
- </configuration>
- <executions>
- <execution>
- <phase>compile</phase>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- https://dmp.fabric8.io/ 官方文档 https://github.com/fabric8io/docker-maven-plugin
- 插件更新比较活跃 -->
- <plugin>
- <groupId>io.fabric8</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>${docker.plugin.version}</version>
- <configuration>
- <verbose>true</verbose>
- <images>
- <image>
- <name>${docker.registry}/${docker.namespace}/${project.build.finalName}:${project.version}${cpu-architecture-classifier}</name>
- <build>
- <!-- 每次打包2个镜像,一个latest,一个带版本号的 <tags> <tag>latest</tag> <tag>${project.version}${cpu-architecture-classifier}</tag>
- </tags> -->
- <contextDir>${project.basedir}</contextDir>
- <dockerFile>${project.basedir}/Dockerfile${cpu-architecture-classifier}</dockerFile>
- <args>
- <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
- </args>
- </build>
- </image>
- </images>
- <!-- push使用,2种设置方式: 1.使用该配置在maven项目种配置; 2.在maven配置文件setting.xml中添加server节点。
- <authConfig> <username>admin</username> <password>123</password> </authConfig> -->
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
- <repositories>
- <repository>
- <id>alimaven</id>
- <name>aliyun maven</name>
- <url>https://maven.aliyun.com/repository/public/</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>platomix-release</id>
- <name>NexusReleases</name>
- <url>https://windata.platomix.net/nexus/repository/maven-public/</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>alimaven</id>
- <name>aliyun maven</name>
- <url>https://maven.aliyun.com/repository/public/</url>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </pluginRepository>
- </pluginRepositories>
- <distributionManagement>
- <repository>
- <id>platomix-release</id>
- <name>NexusReleases</name>
- <url>https://windata.platomix.net/nexus/repository/maven-releases/</url>
- </repository>
- </distributionManagement>
- </project>
|