-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yaomingyang
committed
Jan 6, 2025
1 parent
61ff89c
commit d8e0b93
Showing
2 changed files
with
214 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<parent> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-parent</artifactId> | ||
<version>3.4.0</version> | ||
<version>3.4.1</version> | ||
<relativePath/> | ||
</parent> | ||
|
||
|
@@ -19,6 +19,13 @@ | |
<properties> | ||
<java.version>17</java.version> | ||
<maven.compiler.release>17</maven.compiler.release> | ||
<flatten-maven-plugin.version>1.6.0</flatten-maven-plugin.version> | ||
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version> | ||
<maven-gpg-plugin.version>3.2.4</maven-gpg-plugin.version> | ||
<maven-javadoc-plugin.version>3.10.1</maven-javadoc-plugin.version> | ||
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version> | ||
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version> | ||
<maven-source-plugin.version>3.3.1</maven-source-plugin.version> | ||
</properties> | ||
|
||
<dependencyManagement> | ||
|
@@ -32,4 +39,184 @@ | |
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
||
<developers> | ||
<developer> | ||
<name>Emily</name> | ||
<email>[email protected]</email> | ||
<organization>个人基础设施项目建设</organization> | ||
<organizationUrl>https://github.com/mingyang66/spring-parent</organizationUrl> | ||
</developer> | ||
</developers> | ||
|
||
<!--开源协议...--> | ||
<licenses> | ||
<license> | ||
<name>The Apache License, Version 2.0</name> | ||
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
</license> | ||
</licenses> | ||
|
||
<scm> | ||
<connection>scm:git:https://github.com/mingyang66/spring-parent.git</connection> | ||
<developerConnection>scm:git:ssh://github.com:mingyang66/spring-parent.git</developerConnection> | ||
<url>https://github.com/mingyang66/spring-parent</url> | ||
</scm> | ||
|
||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>ossrh</id> | ||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>ossrh</id> | ||
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
</distributionManagement> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>flatten-maven-plugin</artifactId> | ||
<version>${flatten-maven-plugin.version}</version> | ||
<configuration> | ||
<updatePomFile>true</updatePomFile> | ||
<flattenMode>resolveCiFriendliesOnly</flattenMode> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>flatten</id> | ||
<phase>process-resources</phase> | ||
<goals> | ||
<goal>flatten</goal> | ||
</goals> | ||
</execution> | ||
<execution> | ||
<id>flatten.clean</id> | ||
<phase>clean</phase> | ||
<goals> | ||
<goal>clean</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- 发布到中央仓库插件 --> | ||
<plugin> | ||
<groupId>org.sonatype.plugins</groupId> | ||
<artifactId>nexus-staging-maven-plugin</artifactId> | ||
<version>${nexus-staging-maven-plugin.version}</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<serverId>ossrh</serverId> | ||
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> | ||
<autoReleaseAfterClose>true</autoReleaseAfterClose> | ||
</configuration> | ||
</plugin> | ||
<!-- 支持单元测试 --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>${maven-surefire-plugin.version}</version> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<profiles> | ||
<profile> | ||
<!--注意,此id必须与setting.xml中指定的一致,不要自作聪明改它名字--> | ||
<id>source</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
<build> | ||
<plugins> | ||
<!-- 生成源码插件 --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>${maven-source-plugin.version}</version> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<goals> | ||
<goal>jar-no-fork</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<!--构建过程中生成源码包,并将其附加到maven项目中--> | ||
<!-- <attach>true</attach>--> | ||
<!--<classifier>tests</classifier>--> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>${maven-compiler-plugin.version}</version> | ||
<configuration> | ||
<!--Maven编译后保留方法名--> | ||
<parameters>true</parameters> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>javadoc</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
<build> | ||
<plugins> | ||
<!-- 生成API文档插件 --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>${maven-javadoc-plugin.version}</version> | ||
<configuration> | ||
<!--控制构建过程中如果出现错误是否停止构建--> | ||
<failOnError>false</failOnError> | ||
<!--排除指定的包,可以使用: or , or ; 三种符号分割--> | ||
<excludePackageNames>com.emily.cloud.test.*,com.emily.infrastructure.test.* | ||
</excludePackageNames> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>attach-javadocs</id> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>gpg</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> | ||
</activation> | ||
<build> | ||
<plugins> | ||
<!-- 使用GnuPG签署项目的所有附加工件 --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<version>${maven-gpg-plugin.version}</version> | ||
<executions> | ||
<execution> | ||
<id>sign-artifacts</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<!--使用GunPG对项目工件、POM和附加工件进行签名以进行部署--> | ||
<goal>sign</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters