240 lines
8.3 KiB
XML
240 lines
8.3 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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<version>2.7.1</version>
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|
</parent>
|
|
<groupId>com.osredm</groupId>
|
|
<artifactId>osredm-code-scan</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
<name>osredm-code-scan</name>
|
|
<description>osredm-code-scan</description>
|
|
<properties>
|
|
<java.version>17</java.version>
|
|
<repackage.classifier/>
|
|
<spring-native.version>0.12.1</spring-native.version>
|
|
</properties>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
<version>2.4.0</version>
|
|
</dependency>
|
|
|
|
<!-- mysql -->
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
</dependency>
|
|
<!-- JDBC连接池 -->
|
|
<dependency>
|
|
<groupId>com.mchange</groupId>
|
|
<artifactId>c3p0</artifactId>
|
|
<version>0.9.5.2</version>
|
|
</dependency>
|
|
<!-- 测试类依赖 -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- swagger -->
|
|
<!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 -->
|
|
<dependency>
|
|
<groupId>io.springfox</groupId>
|
|
<artifactId>springfox-swagger2</artifactId>
|
|
<version>3.0.0</version>
|
|
</dependency>
|
|
<!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui -->
|
|
<dependency>
|
|
<groupId>io.springfox</groupId>
|
|
<artifactId>springfox-swagger-ui</artifactId>
|
|
<version>3.0.0</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.springfox</groupId>
|
|
<artifactId>springfox-boot-starter</artifactId>
|
|
<version>3.0.0</version>
|
|
</dependency>
|
|
|
|
<!-- 引入swagger-ui-layer包 /docs.html-->
|
|
<dependency>
|
|
<groupId>com.github.caspar-chen</groupId>
|
|
<artifactId>swagger-ui-layer</artifactId>
|
|
<version>1.1.3</version>
|
|
</dependency>
|
|
|
|
<!-- 引入swagger-ui-layer包 /document.html-->
|
|
<dependency>
|
|
<groupId>com.zyplayer</groupId>
|
|
<artifactId>swagger-mg-ui</artifactId>
|
|
<version>1.0.6</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
<artifactId>swagger-bootstrap-ui</artifactId>
|
|
<version>1.9.1</version>
|
|
</dependency>
|
|
<!-- mybatis -->
|
|
|
|
<dependency>
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
<version>2.1.3</version>
|
|
</dependency>
|
|
|
|
<!-- Hutool工具类 -->
|
|
<dependency>
|
|
<groupId>cn.hutool</groupId>
|
|
<artifactId>hutool-all</artifactId>
|
|
<version>5.7.10</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.penggle</groupId>
|
|
<artifactId>kaptcha</artifactId>
|
|
<version>2.3.2</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
<version>2.4.0</version>
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
<groupId>javax.xml.bind</groupId>
|
|
<artifactId>jaxb-api</artifactId>
|
|
<version>2.3.1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
</exclude>
|
|
</excludes>
|
|
<classifier>${repackage.classifier}</classifier>
|
|
<image>
|
|
<builder>paketobuildpacks/builder:tiny</builder>
|
|
<env>
|
|
<BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>
|
|
</env>
|
|
</image>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.springframework.experimental</groupId>
|
|
<artifactId>spring-aot-maven-plugin</artifactId>
|
|
<version>${spring-native.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>test-generate</id>
|
|
<goals>
|
|
<goal>test-generate</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>generate</id>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<repositories>
|
|
<repository>
|
|
<id>spring-releases</id>
|
|
<name>Spring Releases</name>
|
|
<url>https://repo.spring.io/release</url>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
</repositories>
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>spring-releases</id>
|
|
<name>Spring Releases</name>
|
|
<url>https://repo.spring.io/release</url>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>native</id>
|
|
<properties>
|
|
<repackage.classifier>exec</repackage.classifier>
|
|
<native-buildtools.version>0.9.13</native-buildtools.version>
|
|
</properties>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.junit.platform</groupId>
|
|
<artifactId>junit-platform-launcher</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<configuration>
|
|
<excludes>
|
|
<exclude>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<!--编译跳过测试文件检查的生命周期-->
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|