feat:依赖修复,完善core和mybatis还有log模块,log模块待完成
This commit is contained in:
86
pom.xml
86
pom.xml
@@ -30,8 +30,11 @@
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<spring-boot.version>3.5.7</spring-boot.version>
|
||||
<spring-cloud.version>2025.0.0</spring-cloud.version>
|
||||
<spring-cloud-alibaba.version>2025.0.0.0</spring-cloud-alibaba.version>
|
||||
<spring.checkstyle.plugin>0.0.47</spring.checkstyle.plugin>
|
||||
<git.commit.plugin>9.0.2</git.commit.plugin>
|
||||
<docker.spring.active>dev</docker.spring.active>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
@@ -72,6 +75,14 @@
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
<!-- Spring Cloud依赖-->
|
||||
<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-dependencies -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-dependencies</artifactId>
|
||||
<version>${spring-cloud.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.cloud</groupId>
|
||||
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
||||
@@ -123,7 +134,82 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!--打包jar 与git commit 关联插件-->
|
||||
<plugin>
|
||||
<groupId>io.github.git-commit-id</groupId>
|
||||
<artifactId>git-commit-id-maven-plugin</artifactId>
|
||||
<version>${git.commit.plugin}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>get-the-git-infos</id>
|
||||
<phase>initialize</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<failOnNoGitDirectory>false</failOnNoGitDirectory>
|
||||
<generateGitPropertiesFile>true</generateGitPropertiesFile>
|
||||
<!--因为项目定制了jackson的日期时间序列化/反序列化格式,因此这里要进行配置,不然通过management.info.git.mode=full进行完整git信息监控时会存在问题-->
|
||||
<dateFormat>yyyy-MM-dd HH:mm:ss</dateFormat>
|
||||
<includeOnlyProperties>
|
||||
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
|
||||
<includeOnlyProperty>^git.commit.(id|message|time).*$</includeOnlyProperty>
|
||||
</includeOnlyProperties>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.google.cloud.tools</groupId>
|
||||
<artifactId>jib-maven-plugin</artifactId>
|
||||
<version>3.4.5</version>
|
||||
<configuration>
|
||||
<allowInsecureRegistries>true</allowInsecureRegistries>
|
||||
<from>
|
||||
<!--使用openjdk官方镜像,tag是8-jdk-stretch,表示镜像的操作系统是debian9,装好了jdk8-->
|
||||
<image>registry.cn-shanghai.aliyuncs.com/all_lib/eclipse-temurin:17.0.10_7-jdk-jammy</image>
|
||||
</from>
|
||||
<to>
|
||||
<!-- 前缀名/命名空间/项目名:项目版本-->
|
||||
<image>10.0.0.3/aioj/${project.artifactId}:${project.version}</image>
|
||||
<tags>
|
||||
<!--版本号-->
|
||||
<tag>${project.version}</tag>
|
||||
</tags>
|
||||
<auth>
|
||||
<username></username>
|
||||
<password></password>
|
||||
</auth>
|
||||
</to>
|
||||
<outputPaths>
|
||||
<tar>${project.build.directory}/${project.artifactId}-${project.version}.tar</tar>
|
||||
</outputPaths>
|
||||
<!--容器相关的属性-->
|
||||
<container>
|
||||
<environment>
|
||||
<TZ>Asia/Shanghai</TZ>
|
||||
<PROFILES_ACTIVE>${docker.spring.active}</PROFILES_ACTIVE>
|
||||
</environment>
|
||||
<!--jvm内存参数-->
|
||||
<jvmFlags>
|
||||
<jvmFlag>-Xms512m</jvmFlag>
|
||||
<jvmFlag>-Xmx512m</jvmFlag>
|
||||
</jvmFlags>
|
||||
</container>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>build</goal>
|
||||
<goal>buildTar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
<profiles>
|
||||
<!--开发环境-->
|
||||
|
||||
Reference in New Issue
Block a user