123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534 |
- <?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.persagy</groupId>
- <artifactId>dmp-parent</artifactId>
- <version>1.1.0</version>
- <packaging>pom</packaging>
- <repositories>
- <repository>
- <id>public</id>
- <name>public Repository</name>
- <url>http://47.93.132.139:8081/nexus/content/groups/public/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>true</enabled>
- </releases>
- </repository>
- <repository>
- <id>integrated</id>
- <name>integrated Repository</name>
- <url>http://47.93.132.139:8081/nexus/content/repositories/integrated/</url>
- </repository>
- <repository>
- <id>osgeo</id>
- <name>Open Source Geospatial Foundation Repository</name>
- <url>https://repo.osgeo.org/repository/release/</url>
- </repository>
- </repositories>
- <distributionManagement>
- <repository>
- <id>persagy</id>
- <name>releases Repository</name>
- <url>http://47.93.132.139:8081/nexus/content/repositories/persagy/</url>
- <layout>default</layout>
- </repository>
- </distributionManagement>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.1.14.RELEASE</version>
- <relativePath/>
- </parent>
- <!-- 版本管理 -->
- <properties>
- <dmp.version>1.1.0</dmp.version>
- <platform.version>1.0.0</platform.version>
- <mybatis-plus.version>3.4.2</mybatis-plus.version>
- <dynamic-datasource.version>3.4.1</dynamic-datasource.version>
- <tomcat-jdbc.version>9.0.31</tomcat-jdbc.version>
- <HikariCP.version>3.2.0</HikariCP.version>
- <mysql.version>8.0.15</mysql.version>
- <guava.version>30.0-jre</guava.version>
- <spring.version>5.1.15.RELEASE</spring.version>
- <spring-cloud-dependencies.version>Greenwich.SR6</spring-cloud-dependencies.version>
- <spring-data.version>2.1.17.RELEASE</spring-data.version>
- <spring-data-jpa.version>2.0.11.RELEASE</spring-data-jpa.version>
- <mapstruct.version>1.2.0.Final</mapstruct.version>
- <lang.version>2.5</lang.version>
- <gson.version>2.8.6</gson.version>
- <fastjson.version>1.2.75</fastjson.version>
- <druid.version>1.1.22</druid.version>
- <easyexcel.version>2.2.8</easyexcel.version>
- <hutool.version>5.5.8</hutool.version>
- <geotools.version>25.2</geotools.version>
- <jsr.version>1.1.1</jsr.version>
- <!-- Minio -->
- <minio.version>8.3.0</minio.version>
- <okhttp.version>4.8.1</okhttp.version>
- <kotlin.version>1.3.70</kotlin.version>
- <!-- Plugins -->
- <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
- <spring-boot-maven-plugin.version>2.4.3</spring-boot-maven-plugin.version>
- <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
- <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
- <maven-resources-plugin.version>3.0.2</maven-resources-plugin.version>
- <xstream.version>1.4.18</xstream.version>
- <log4j-api.version>2.15.0</log4j-api.version>
- <hadoop.version>2.5.1</hadoop.version>
- <log4j-over-slf4j>1.7.32</log4j-over-slf4j>
- </properties>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>dmp-common</artifactId>
- <version>${dmp.version}</version>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>dmp-server</artifactId>
- <version>${dmp.version}</version>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>dmp-mybatis</artifactId>
- <version>${dmp.version}</version>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>dmp-file-starter</artifactId>
- <version>${dmp.version}</version>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>dmp-amqp-starter</artifactId>
- <version>${dmp.version}</version>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>dmp-digital-starter</artifactId>
- <version>${dmp.version}</version>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>dmp-auth-starter</artifactId>
- <version>${dmp.version}</version>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>integrated-common-core</artifactId>
- <version>${platform.version}</version>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>integrated-common-security</artifactId>
- <version>${platform.version}</version>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>integrated-log-spring-boot-starter</artifactId>
- <version>${platform.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-api</artifactId>
- <version>${log4j-api.version}</version>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>integrated-ribbon-spring-boot-starter</artifactId>
- <version>${platform.version}</version>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>integrated-swagger2-spring-boot-starter</artifactId>
- <version>${platform.version}</version>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>integrated-redis-spring-boot-starter</artifactId>
- <version>${platform.version}</version>
- </dependency>
- <dependency>
- <groupId>com.persagy</groupId>
- <artifactId>integrated-config-client</artifactId>
- <version>${platform.version}</version>
- </dependency>
- <!-- mybatis plus -->
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-boot-starter</artifactId>
- <version>${mybatis-plus.version}</version>
- </dependency>
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-annotation</artifactId>
- <version>${mybatis-plus.version}</version>
- </dependency>
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-extension</artifactId>
- <version>${mybatis-plus.version}</version>
- </dependency>
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
- <version>${dynamic-datasource.version}</version>
- </dependency>
- <!-- mapstruct 优雅的进行bean与dto的转换 -->
- <dependency>
- <groupId>org.mapstruct</groupId>
- <artifactId>mapstruct-jdk8</artifactId>
- <version>${mapstruct.version}</version>
- </dependency>
- <dependency>
- <groupId>org.mapstruct</groupId>
- <artifactId>mapstruct-processor</artifactId>
- <version>${mapstruct.version}</version>
- </dependency>
- <!-- alibaba druid -->
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid-spring-boot-starter</artifactId>
- <version>${druid.version}</version>
- </dependency>
- <!-- 以下是数据库连接池版本管理,建议使用provided方式引入-->
- <dependency>
- <groupId>org.apache.tomcat</groupId>
- <artifactId>tomcat-jdbc</artifactId>
- <version>${tomcat-jdbc.version}</version>
- </dependency>
- <dependency>
- <groupId>com.zaxxer</groupId>
- <artifactId>HikariCP</artifactId>
- <version>${HikariCP.version}</version>
- </dependency>
- <!-- 以下是数据库driver版本管理,建议使用provided方式引入 -->
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>${mysql.version}</version>
- </dependency>
- <!-- 以下是commons工具版本管理 -->
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- <version>${guava.version}</version>
- </dependency>
- <!-- 以下是springCloud版本管理 -->
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-dependencies</artifactId>
- <version>${spring-cloud-dependencies.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <!-- 以下是spring版本管理 -->
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-context</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-web</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-tx</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-aop</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-test</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-beans</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-webmvc</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-context-support</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-core</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-expression</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-jcl</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-jdbc</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-messaging</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-oxm</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-webflux</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <!-- 以下是spring data版本管理 -->
- <dependency>
- <groupId>org.springframework.data</groupId>
- <artifactId>spring-data-commons</artifactId>
- <version>${spring-data.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.data</groupId>
- <artifactId>spring-data-redis</artifactId>
- <version>${spring-data.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.data</groupId>
- <artifactId>spring-data-jpa</artifactId>
- <version>${spring-data-jpa.version}</version>
- </dependency>
- <!-- hutool -->
- <dependency>
- <groupId>cn.hutool</groupId>
- <artifactId>hutool-all</artifactId>
- <version>${hutool.version}</version>
- </dependency>
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>${lang.version}</version>
- </dependency>
- <!-- gson json,java对象互转 -->
- <dependency>
- <groupId>com.google.code.gson</groupId>
- <artifactId>gson</artifactId>
- <version>${gson.version}</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>${fastjson.version}</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>easyexcel</artifactId>
- <version>${easyexcel.version}</version>
- <exclusions>
- <exclusion>
- <artifactId>asm</artifactId>
- <groupId>org.ow2.asm</groupId>
- </exclusion>
- <exclusion>
- <artifactId>poi</artifactId>
- <groupId>org.apache.poi</groupId>
- </exclusion>
- <exclusion>
- <artifactId>poi-ooxml</artifactId>
- <groupId>org.apache.poi</groupId>
- </exclusion>
- <exclusion>
- <artifactId>poi-ooxml-schemas</artifactId>
- <groupId>org.apache.poi</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- <!-- Minio -->
- <dependency>
- <groupId>io.minio</groupId>
- <artifactId>minio</artifactId>
- <version>${minio.version}</version>
- </dependency>
- <!--hadoop-->
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-common</artifactId>
- <version>${hadoop.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-hdfs</artifactId>
- <version>${hadoop.version}</version>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>log4j-over-slf4j</artifactId>
- <version>${log4j-over-slf4j}</version>
- </dependency>
- <dependency>
- <groupId>com.squareup.okhttp3</groupId>
- <artifactId>okhttp</artifactId>
- <version>${okhttp.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-stdlib-common</artifactId>
- <version>${kotlin.version}</version>
- </dependency>
- <!-- 阿里云扫描漏洞要求版本需>=1.4.18 -->
- <dependency>
- <groupId>com.thoughtworks.xstream</groupId>
- <artifactId>xstream</artifactId>
- <version>${xstream.version}</version>
- </dependency>
- <dependency>
- <groupId>javax.ws.rs</groupId>
- <artifactId>jsr311-api</artifactId>
- <version>${jsr.version}</version>
- </dependency>
- <!-- 空间计算 -->
- <dependency>
- <groupId>org.geotools</groupId>
- <artifactId>gt-main</artifactId>
- <version>${geotools.version}</version>
- <exclusions>
- <exclusion>
- <groupId>javax</groupId>
- <artifactId>javaee-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <!-- 插件配置 -->
- <build>
- <finalName>${project.artifactId}</finalName>
- <pluginManagement>
- <plugins>
- <!-- compiler插件, 设定JDK版本 -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>${maven-compiler-plugin.version}</version>
- <configuration>
- <source>${java.version}</source>
- <target>${java.version}</target>
- <encoding>UTF-8</encoding>
- <skip>true</skip>
- <showWarnings>true</showWarnings>
- </configuration>
- </plugin>
- <!-- 不执行单元测试,但会编译测试类并在target/test-classes目录下生成相应的class -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${maven-surefire-plugin.version}</version>
- <configuration>
- <skipTests>true</skipTests>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${spring-boot-maven-plugin.version}</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>${maven-source-plugin.version}</version>
- <configuration>
- <attach>true</attach>
- </configuration>
- <executions>
- <execution>
- <phase>compile</phase>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- resource插件 -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>${maven-resources-plugin.version}</version>
- <executions>
- <execution>
- <id>copy-resources</id>
- <phase>package</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <resources>
- <resource>
- <directory>src/main/resources/</directory>
- <includes>
- <include>**/*.yml</include>
- </includes>
- </resource>
- <resource>
- <directory>${project.build.directory}</directory>
- <includes>
- <include>**/version.txt</include>
- </includes>
- </resource>
- </resources>
- <outputDirectory>${project.build.directory}/config</outputDirectory>
- </configuration>
- </execution>
- <!--拷贝启动脚本-->
- <execution>
- <id>copy-version</id>
- <phase>package</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <resources>
- <resource>
- <directory>src/script</directory>
- </resource>
- </resources>
- <outputDirectory>${project.build.directory}</outputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </project>
|