使用框架 重构
This commit is contained in:
53
pom.xml
53
pom.xml
@@ -32,22 +32,26 @@
|
||||
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<spring.boot.version>3.2.0</spring.boot.version>
|
||||
<slf4j.version>2.0.9</slf4j.version>
|
||||
<spring.boot.version>3.5.3</spring.boot.version>
|
||||
|
||||
<arrokoth.version>1.1.0.RELEASE</arrokoth.version>
|
||||
<arrokoth.bom.version>1.1.0.RELEASE</arrokoth.bom.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>com.arrokoth.framework.boot</groupId>
|
||||
<artifactId>arrokoth-framework-starter</artifactId>
|
||||
<version>${arrokoth.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 通用认证模块 -->
|
||||
<dependency>
|
||||
<groupId>com.arrokoth.framework</groupId>
|
||||
<artifactId>basic-authorization-server</artifactId>
|
||||
<version>1.0.1-RELEASE</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
@@ -122,8 +126,21 @@
|
||||
|
||||
</dependencies>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.arrokoth.framework.boot</groupId>
|
||||
<artifactId>arrokoth-framework-springboot-dependencies</artifactId>
|
||||
<version>${arrokoth.bom.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
|
||||
<build>
|
||||
<directory>${project.basedir}/target</directory>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
@@ -139,7 +156,8 @@
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>build-info</goal>
|
||||
<goal>build-info</goal> <!-- 生成构建信息 -->
|
||||
<goal>repackage</goal> <!-- 默认 goal,必须保留 -->
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
@@ -150,20 +168,27 @@
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.11.0</version>
|
||||
<configuration>
|
||||
<parameters>true</parameters>
|
||||
<parameters>true</parameters> <!-- 支持获取方法参数名 -->
|
||||
<source>17</source>
|
||||
<target>17</target>
|
||||
<fork>true</fork>
|
||||
<verbose>true</verbose>
|
||||
<encoding>UTF-8</encoding>
|
||||
<showWarnings>false</showWarnings>
|
||||
<fork>true</fork> <!-- 使用独立 JVM 编译 -->
|
||||
<verbose>true</verbose> <!-- 输出详细编译信息 -->
|
||||
<encoding>UTF-8</encoding> <!-- 源码编码 -->
|
||||
<showWarnings>false</showWarnings> <!-- 不显示警告 -->
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<!-- JUnit 5 requires Surefire version 2.22.0 or higher -->
|
||||
<version>2.22.0</version>
|
||||
<configuration>
|
||||
<!-- 可选配置项 -->
|
||||
<failIfNoTests>false</failIfNoTests> <!-- 即使没有测试也不失败 -->
|
||||
<includes>
|
||||
<include>**/*Test.java</include>
|
||||
<include>**/*Tests.java</include>
|
||||
</includes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
Reference in New Issue
Block a user