增加增量打包配置

This commit is contained in:
陈天生 2026-01-06 17:35:46 +08:00
parent 02d0853523
commit 1c5a2d1ea1
2 changed files with 86 additions and 0 deletions

25
increpack.xml Normal file
View File

@ -0,0 +1,25 @@
<increpack>
<!-- 版本服务器接口地址 -->
<increApi></increApi>
<!-- 应用ID -->
<appId>aiccs-api</appId>
<!-- 工程ID -->
<codeId>aiccs-api</codeId>
<!--GIT服务器配置-->
<code>
<method>git</method> <!--托管的服务器方式 git、svn-->
<url>http://47.107.61.133:3000/nm-project/aiccs-api.git</url>
<!--默认先从increApi获取打包补丁范围可以不填写当请求失败则再使用-->
<fromCommit>155315d8152df22eca2f749a16828098cb73f3fe</fromCommit> <!-- 起始的版本号, SHA-1码 -->
<untilCommit>d93ff733c61d94ec9c41c6c4b48c545cc0b701da</untilCommit> <!-- 截止的版本号, SHA-1码可以不配置默认取至最新版本 -->
</code>
<!-- 本地化配置文件,不用打包,以手工操作的方式进行升级 -->
<exclude>
<fileDir>src\main\resources\properties</fileDir>
<file>src\main\resources\application.yml</file>
<file>src\main\resources\application-dev.yml</file>
<file>src\main\resources\application-prod.yml</file>
<file>src\main\resources\application-test.yml</file>
</exclude>
</increpack>

61
pom.xml
View File

@ -358,6 +358,12 @@
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
</dependency>
<!-- 增量打包辅助工具 -->
<dependency>
<groupId>com.chinaweal.youfool</groupId>
<artifactId>youfool-increpack-maven-plugin</artifactId>
<version>2.2.0</version>
</dependency>
</dependencies>
<profiles>
<profile>
@ -421,6 +427,61 @@
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<finalName>${project.artifactId}</finalName>
<descriptors>
<descriptor>target/assembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>com.chinaweal.youfool.increpack.maven.IncrePackMain</mainClass>
<arguments>
<argument>${project.artifactId}</argument>
<argument>${project.version}</argument>
</arguments>
<cleanupDaemonThreads>false</cleanupDaemonThreads>
</configuration>
</execution>
<!--<execution>
<id>authMac</id>
<phase>package</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>com.chinaweal.youfool.increpack.maven.PostPackMain</mainClass>
<arguments>
<argument>${project.artifactId}</argument>
<argument>${project.version}</argument>
</arguments>
</configuration>
</execution>-->
</executions>
</plugin>
</plugins>
</build>
</project>