835 lines
34 KiB
XML
835 lines
34 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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>
|
|
<groupId>com.mesalab</groupId>
|
|
<artifactId>galaxy-qgw-service</artifactId>
|
|
<version>385</version>
|
|
<packaging>jar</packaging>
|
|
<name>galaxy-qgw-service</name>
|
|
<repositories>
|
|
<repository>
|
|
<id>nexus3</id>
|
|
<name>Team Nexus Repository</name>
|
|
<url>http://192.168.40.153:8081/repository/public/</url>
|
|
</repository>
|
|
</repositories>
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>nexus3</id>
|
|
<name>Team Nexus Repository</name>
|
|
<url>http://192.168.40.153:8081/repository/public/</url>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<version>2.3.12.RELEASE</version>
|
|
<relativePath/>
|
|
</parent>
|
|
|
|
<properties>
|
|
<qgw.main.basedir>${project.basedir}</qgw.main.basedir>
|
|
<project.author.name>darnell</project.author.name>
|
|
<project.author.email>abc@gmail.com</project.author.email>
|
|
<project.package.core>com.mesalab.common</project.package.core>
|
|
<project.package.service>com.mesalab.qgw</project.package.service>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
|
<java.version>11</java.version>
|
|
<maven.compiler.source>11</maven.compiler.source>
|
|
<maven.compiler.target>11</maven.compiler.target>
|
|
<starter.druid.version>1.1.22</starter.druid.version>
|
|
<mysql-connector-java.version>8.0.18</mysql-connector-java.version>
|
|
<commons.lang3.version>3.5</commons.lang3.version>
|
|
<commons.collections.version>3.2.2</commons.collections.version>
|
|
<commons.net.version>3.4</commons.net.version>
|
|
<commons.fileupload.version>1.3.3</commons.fileupload.version>
|
|
<commons.io.version>2.2</commons.io.version>
|
|
<commons.codec.version>1.11</commons.codec.version>
|
|
<commons.configuration.version>1.10</commons.configuration.version>
|
|
<commons.logging.version>1.2</commons.logging.version>
|
|
<nutz.version>1.r.65</nutz.version>
|
|
<log4j2.version>2.17.0</log4j2.version>
|
|
<httpclient.version>4.5.6</httpclient.version>
|
|
<active.record.version>4.9.01</active.record.version>
|
|
<guava.version>33.0.0-jre</guava.version>
|
|
<galaxy.tool.version>2.0.1</galaxy.tool.version>
|
|
<uaAnalyser.version>1.0-RELEASE</uaAnalyser.version>
|
|
<jsqlparser.version>5.0</jsqlparser.version>
|
|
<hutool.version>5.8.22</hutool.version>
|
|
<fastjson2.version>2.0.32</fastjson2.version>
|
|
<json.path.version>2.5.0</json.path.version>
|
|
<docker.build>192.168.40.153</docker.build>
|
|
<docker.build.port>2375</docker.build.port>
|
|
<docker.registry>192.168.40.153</docker.registry>
|
|
<docker.registry.port>8082</docker.registry.port>
|
|
<docker.image.prefix>tsg/olap</docker.image.prefix>
|
|
<nacos.config.version>0.2.7</nacos.config.version>
|
|
<spotless.version>2.30.0</spotless.version>
|
|
<hazelcast-spring.version>5.3.6</hazelcast-spring.version>
|
|
</properties>
|
|
<profiles>
|
|
<profile>
|
|
<id>java11</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
<properties>
|
|
<maven.compiler.source>11</maven.compiler.source>
|
|
<maven.compiler.target>11</maven.compiler.target>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
<groupId>com.mesalab.ua</groupId>
|
|
<artifactId>UaAnalyser</artifactId>
|
|
<version>${uaAnalyser.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-aop</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>spring-boot-starter-logging</artifactId>
|
|
<groupId>org.springframework.boot</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>spring-boot-starter-logging</artifactId>
|
|
<groupId>org.springframework.boot</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
</dependency>
|
|
<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-sleuth -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-sleuth</artifactId>
|
|
<version>2.2.7.RELEASE</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>${mysql-connector-java.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>${guava.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micrometer</groupId>
|
|
<artifactId>micrometer-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.micrometer</groupId>
|
|
<artifactId>micrometer-registry-prometheus</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba</groupId>
|
|
<artifactId>druid-spring-boot-starter</artifactId>
|
|
<version>${starter.druid.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-log4j2</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.logging.log4j</groupId>
|
|
<artifactId>log4j-web</artifactId>
|
|
<version>${log4j2.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>1.18.4</version>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>json-path</artifactId>
|
|
<groupId>com.jayway.jsonpath</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
<version>${commons.lang3.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-collections</groupId>
|
|
<artifactId>commons-collections</artifactId>
|
|
<version>${commons.collections.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-net</groupId>
|
|
<artifactId>commons-net</artifactId>
|
|
<version>${commons.net.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-fileupload</groupId>
|
|
<artifactId>commons-fileupload</artifactId>
|
|
<version>${commons.fileupload.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
<version>${commons.io.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-codec</groupId>
|
|
<artifactId>commons-codec</artifactId>
|
|
<version>${commons.codec.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-configuration</groupId>
|
|
<artifactId>commons-configuration</artifactId>
|
|
<version>${commons.configuration.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>commons-logging</artifactId>
|
|
<groupId>commons-logging</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-logging</groupId>
|
|
<artifactId>commons-logging</artifactId>
|
|
<version>${commons.logging.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.nutz</groupId>
|
|
<artifactId>nutz</artifactId>
|
|
<version>${nutz.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpclient</artifactId>
|
|
<version>${httpclient.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>commons-codec</artifactId>
|
|
<groupId>commons-codec</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.jsqlparser</groupId>
|
|
<artifactId>jsqlparser</artifactId>
|
|
<version>${jsqlparser.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.zdjizhi</groupId>
|
|
<artifactId>shade-calcite</artifactId>
|
|
<version>1.0.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.geedgenetworks</groupId>
|
|
<artifactId>galaxy</artifactId>
|
|
<version>${galaxy.tool.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>log4j</artifactId>
|
|
<groupId>log4j</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>commons-lang3</artifactId>
|
|
<groupId>org.apache.commons</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>commons-io</artifactId>
|
|
<groupId>commons-io</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>commons-codec</artifactId>
|
|
<groupId>commons-codec</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cn.hutool</groupId>
|
|
<artifactId>hutool-all</artifactId>
|
|
<version>${hutool.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.fastjson2</groupId>
|
|
<artifactId>fastjson2</artifactId>
|
|
<version>${fastjson2.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.jayway.jsonpath</groupId>
|
|
<artifactId>json-path</artifactId>
|
|
<version>${json.path.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.jfinal</groupId>
|
|
<artifactId>activerecord</artifactId>
|
|
<version>${active.record.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.alibaba.boot</groupId>
|
|
<artifactId>nacos-config-spring-boot-starter</artifactId>
|
|
<version>${nacos.config.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>simpleclient</artifactId>
|
|
<groupId>io.prometheus</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>commons-lang3</artifactId>
|
|
<groupId>org.apache.commons</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>commons-codec</artifactId>
|
|
<groupId>commons-codec</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.phoenix</groupId>
|
|
<artifactId>phoenix-core</artifactId>
|
|
<version>5.2.0</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>avro</artifactId>
|
|
<groupId>org.apache.avro</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>guava</artifactId>
|
|
<groupId>com.google.guava</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>zookeeper</artifactId>
|
|
<groupId>org.apache.zookeeper</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>netty</artifactId>
|
|
<groupId>io.netty</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>jsr305</artifactId>
|
|
<groupId>com.google.code.findbugs</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>joda-time</artifactId>
|
|
<groupId>joda-time</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>error_prone_annotations</artifactId>
|
|
<groupId>com.google.errorprone</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>commons-io</artifactId>
|
|
<groupId>commons-io</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>commons-configuration</artifactId>
|
|
<groupId>commons-configuration</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>commons-collections4</artifactId>
|
|
<groupId>org.apache.commons</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>commons-codec</artifactId>
|
|
<groupId>commons-codec</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>checker-qual</artifactId>
|
|
<groupId>org.checkerframework</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>commons-logging</artifactId>
|
|
<groupId>commons-logging</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.phoenix</groupId>
|
|
<artifactId>phoenix-hbase-compat-2.4.1</artifactId>
|
|
<version>5.2.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.protobuf</groupId>
|
|
<artifactId>protobuf-java</artifactId>
|
|
<version>2.5.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.ulisesbocchio</groupId>
|
|
<artifactId>jasypt-spring-boot-starter</artifactId>
|
|
<version>2.1.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.flywaydb</groupId>
|
|
<artifactId>flyway-core</artifactId>
|
|
<version>5.2.4</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.hazelcast</groupId>
|
|
<artifactId>hazelcast</artifactId>
|
|
<version>${hazelcast-spring.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.opencsv</groupId>
|
|
<artifactId>opencsv</artifactId>
|
|
<version>5.7.1</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>commons-logging</artifactId>
|
|
<groupId>commons-logging</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>commons-lang3</artifactId>
|
|
<groupId>org.apache.commons</groupId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<artifactId>commons-text</artifactId>
|
|
<groupId>org.apache.commons</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.networknt</groupId>
|
|
<artifactId>json-schema-validator</artifactId>
|
|
<version>1.3.3</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.github.jopenlibs</groupId>
|
|
<artifactId>vault-java-driver</artifactId>
|
|
<version>6.2.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>${project.artifactId}</finalName>
|
|
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<configuration>
|
|
<rules>
|
|
<requireUpperBoundDeps>
|
|
<excludes combine.children="append">
|
|
</excludes>
|
|
</requireUpperBoundDeps>
|
|
</rules>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-release-plugin</artifactId>
|
|
<configuration>
|
|
<preparationGoals>clean verify -DskipTests</preparationGoals>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.commonjava.maven.plugins</groupId>
|
|
<artifactId>directory-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>directories</id>
|
|
<goals>
|
|
<goal>directory-of</goal>
|
|
</goals>
|
|
<phase>initialize</phase>
|
|
<configuration>
|
|
<property>rootDir</property>
|
|
<project>
|
|
<groupId>com.mesalab</groupId>
|
|
<artifactId>galaxy-qgw-service</artifactId>
|
|
</project>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
|
|
<plugin>
|
|
<groupId>org.gaul</groupId>
|
|
<artifactId>modernizer-maven-plugin</artifactId>
|
|
<version>2.1.0</version>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
<failOnViolations>true</failOnViolations>
|
|
<javaVersion>${java.version}</javaVersion>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>modernizer</id>
|
|
<goals>
|
|
<goal>modernizer</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>com.github.spotbugs</groupId>
|
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
|
<version>4.4.2.2</version>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
<threshold>Low</threshold>
|
|
<effort>default</effort>
|
|
<failOnError>true</failOnError>
|
|
<xmlOutput>true</xmlOutput>
|
|
<excludeFilterFile>${qgw.main.basedir}/develop/spotbugs-exclude.xml</excludeFilterFile>
|
|
<spotbugsXmlOutputDirectory>${project.build.directory}/spotbugs</spotbugsXmlOutputDirectory>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-pmd-plugin</artifactId>
|
|
<version>3.12.0</version>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
<failOnViolation>true</failOnViolation>
|
|
<printFailingErrors>true</printFailingErrors>
|
|
<targetJdk>${java.version}</targetJdk>
|
|
<sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
|
|
<minimumTokens>100</minimumTokens>
|
|
<excludes>
|
|
<exclude>**/*Bean.java</exclude>
|
|
<exclude>**/generated/*.java</exclude>
|
|
<exclude>**/FixClassTypeResolver.java</exclude>
|
|
</excludes>
|
|
<excludeRoots>
|
|
<excludeRoot>target/generated-sources</excludeRoot>
|
|
</excludeRoots>
|
|
<rulesets>
|
|
<ruleset>rulesets/java/ali-comment.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-concurrent.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-constant.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-exception.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-flowcontrol.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-naming.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-oop.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-orm.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-other.xml</ruleset>
|
|
<ruleset>rulesets/java/ali-set.xml</ruleset>
|
|
</rulesets>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>install</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.alibaba.p3c</groupId>
|
|
<artifactId>p3c-pmd</artifactId>
|
|
<version>2.0.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.jacoco</groupId>
|
|
<artifactId>jacoco-maven-plugin</artifactId>
|
|
<version>0.8.7</version>
|
|
<executions>
|
|
<execution>
|
|
<id>default-agent</id>
|
|
<goals>
|
|
<goal>prepare-agent</goal>
|
|
</goals>
|
|
<phase>initialize</phase>
|
|
</execution>
|
|
<execution>
|
|
<id>default-report</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>report</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
<version>3.1.2</version>
|
|
<configuration>
|
|
<configLocation>google_checks.xml</configLocation>
|
|
<encoding>UTF-8</encoding>
|
|
<skip>true</skip>
|
|
<consoleOutput>true</consoleOutput>
|
|
<failOnViolation>true</failOnViolation>
|
|
<failsOnError>true</failsOnError>
|
|
<linkXRef>false</linkXRef>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.puppycrawl.tools</groupId>
|
|
<artifactId>checkstyle</artifactId>
|
|
<version>8.40</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<executions>
|
|
<execution>
|
|
<id>validate</id>
|
|
<phase>validate</phase>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.sonarsource.scanner.maven</groupId>
|
|
<artifactId>sonar-maven-plugin</artifactId>
|
|
<version>3.9.0.2155</version>
|
|
</plugin>
|
|
|
|
|
|
</plugins>
|
|
</pluginManagement>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<version>2.3.12.RELEASE</version>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>io.github.zlika</groupId>
|
|
<artifactId>reproducible-build-maven-plugin</artifactId>
|
|
<version>0.2</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>strip-jar</goal>
|
|
</goals>
|
|
<phase>install</phase>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<!-- 代码加密-->
|
|
<plugin>
|
|
<groupId>com.mesalab.xjar-maven-plugin</groupId>
|
|
<artifactId>mesalab-xjar-maven-plugin</artifactId>
|
|
<version>1.0.0</version>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>build</goal>
|
|
</goals>
|
|
<phase>package</phase>
|
|
<!--<phase>install</phase>-->
|
|
<configuration>
|
|
<password>Geedge2020!</password>
|
|
<excludes>
|
|
<exclude>
|
|
META-INF/resources/**
|
|
</exclude>
|
|
<exclude>
|
|
resources/**
|
|
</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>java-style-check</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceDirectories>src/main/java</sourceDirectories>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>java-test-style-check</id>
|
|
<phase>test-compile</phase>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
<configuration>
|
|
<testSourceDirectories>src/test/java</testSourceDirectories>
|
|
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-pmd-plugin</artifactId>
|
|
<version>3.12.0</version>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>com.github.spotbugs</groupId>
|
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>findbugs-main</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>findbugs-test</id>
|
|
<phase>test-compile</phase>
|
|
<goals>
|
|
<goal>check</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includeTests>true</includeTests>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.gaul</groupId>
|
|
<artifactId>modernizer-maven-plugin</artifactId>
|
|
<configuration>
|
|
<violationsFiles>
|
|
<violationsFile>${qgw.main.basedir}/src/modernizer/violations.xml</violationsFile>
|
|
</violationsFiles>
|
|
<exclusionPatterns>
|
|
<exclusionPattern>org/joda/time/.*</exclusionPattern>
|
|
<exclusionPattern>com.google/.*</exclusionPattern>
|
|
</exclusionPatterns>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<version>0.45.0</version>
|
|
<configuration>
|
|
<dockerHost>http://${docker.build}:${docker.build.port}</dockerHost>
|
|
<registry>${docker.registry}:${docker.registry.port}</registry>
|
|
<images>
|
|
<image>
|
|
<name>
|
|
${docker.registry}:${docker.registry.port}/${docker.image.prefix}/${project.artifactId}
|
|
</name>
|
|
<build>
|
|
<tags>
|
|
<tag>latest</tag>
|
|
<tag>${v}</tag>
|
|
</tags>
|
|
<assembly>
|
|
<name>/</name>
|
|
<descriptor>${project.basedir}/docker/assembly.xml</descriptor>
|
|
</assembly>
|
|
<args>
|
|
<JDK_IMAGE>
|
|
${docker.registry}:${docker.registry.port}/common/amazon-corretto:11.0.21.9.1-alpine3.18-multi
|
|
</JDK_IMAGE>
|
|
<GO_IMAGE>${docker.registry}:${docker.registry.port}/common/golang:1.15.6-multi
|
|
</GO_IMAGE>
|
|
<JAR_FILE>${project.build.finalName}.xjar</JAR_FILE>
|
|
</args>
|
|
<dockerFile>${project.basedir}/docker/Dockerfile</dockerFile>
|
|
<buildx>
|
|
<builderName>olap_builder</builderName>
|
|
<platforms>
|
|
<platform>linux/amd64,linux/arm64</platform>
|
|
</platforms>
|
|
<attestations>
|
|
<provenance>false</provenance>
|
|
</attestations>
|
|
</buildx>
|
|
</build>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
<configuration>
|
|
<encoding>utf-8</encoding>
|
|
<useDefaultDelimiters>true</useDefaultDelimiters>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>2.19.1</version>
|
|
<configuration>
|
|
<skipTests>true</skipTests> <!-- 默认关掉单元测试-->
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<source>${maven.compiler.source}</source>
|
|
<target>${maven.compiler.target}</target>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project> |