|
@@ -364,6 +364,13 @@
|
|
|
</configuration>
|
|
</configuration>
|
|
|
</plugin>
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
+ <!-- Spring Boot 插件(全局生效) -->
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
+ <version>3.2.12</version>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+
|
|
|
<plugin>
|
|
<plugin>
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
@@ -392,115 +399,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- <profiles>
|
|
|
|
|
- <profile>
|
|
|
|
|
- <id>deploy</id>
|
|
|
|
|
-
|
|
|
|
|
- <build>
|
|
|
|
|
- <plugins>
|
|
|
|
|
- <plugin>
|
|
|
|
|
- <artifactId>maven-jar-plugin</artifactId>
|
|
|
|
|
- <executions>
|
|
|
|
|
- <execution>
|
|
|
|
|
- <id>client</id>
|
|
|
|
|
- <goals><goal>jar</goal></goals>
|
|
|
|
|
- <phase>package</phase>
|
|
|
|
|
- <configuration>
|
|
|
|
|
- <classifier>client</classifier>
|
|
|
|
|
- <includes>
|
|
|
|
|
- <include>**/fegin/**</include>
|
|
|
|
|
- </includes>
|
|
|
|
|
- </configuration>
|
|
|
|
|
- </execution>
|
|
|
|
|
- </executions>
|
|
|
|
|
- </plugin>
|
|
|
|
|
- </plugins>
|
|
|
|
|
-
|
|
|
|
|
- </build>
|
|
|
|
|
- </profile>
|
|
|
|
|
- <profile>
|
|
|
|
|
- <id>dev</id>
|
|
|
|
|
- <build>
|
|
|
|
|
- <finalName>${project.artifactId}-dev</finalName>
|
|
|
|
|
- <plugins>
|
|
|
|
|
- <plugin>
|
|
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
- <executions>
|
|
|
|
|
- <execution>
|
|
|
|
|
- <goals>
|
|
|
|
|
- <goal>repackage</goal>
|
|
|
|
|
- </goals>
|
|
|
|
|
- </execution>
|
|
|
|
|
- </executions>
|
|
|
|
|
- </plugin>
|
|
|
|
|
- <plugin>
|
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
- <version>3.8.1</version> <!-- 使用最新版本 -->
|
|
|
|
|
- <configuration>
|
|
|
|
|
- <source>21</source> <!-- 设置源代码的 JDK 版本 -->
|
|
|
|
|
- <target>21</target> <!-- 设置目标字节码的 JDK 版本 -->
|
|
|
|
|
- </configuration>
|
|
|
|
|
- </plugin>
|
|
|
|
|
- </plugins>
|
|
|
|
|
- </build>
|
|
|
|
|
- </profile>
|
|
|
|
|
- <profile>
|
|
|
|
|
- <id>test</id>
|
|
|
|
|
- <build>
|
|
|
|
|
- <finalName>${project.artifactId}-test</finalName>
|
|
|
|
|
- <plugins>
|
|
|
|
|
- <plugin>
|
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
- <artifactId>maven-deploy-plugin</artifactId>
|
|
|
|
|
- <version>3.1.2</version>
|
|
|
|
|
- <configuration>
|
|
|
|
|
- <skip>false</skip>
|
|
|
|
|
- </configuration>
|
|
|
|
|
- </plugin>
|
|
|
|
|
- <plugin>
|
|
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
- <executions>
|
|
|
|
|
- <execution>
|
|
|
|
|
- <goals>
|
|
|
|
|
- <goal>repackage</goal>
|
|
|
|
|
- </goals>
|
|
|
|
|
- </execution>
|
|
|
|
|
- </executions>
|
|
|
|
|
- </plugin>
|
|
|
|
|
- </plugins>
|
|
|
|
|
- </build>
|
|
|
|
|
- </profile>
|
|
|
|
|
- <profile>
|
|
|
|
|
- <id>prod</id>
|
|
|
|
|
- <build>
|
|
|
|
|
- <finalName>${project.artifactId}-prod</finalName>
|
|
|
|
|
- <plugins>
|
|
|
|
|
- <plugin>
|
|
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
- <version>3.2.12</version>
|
|
|
|
|
- <configuration>
|
|
|
|
|
- <mainClass>com.hr.InterfacePlatformApplication</mainClass>
|
|
|
|
|
- </configuration>
|
|
|
|
|
- </plugin>
|
|
|
|
|
- <plugin>
|
|
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
- <artifactId>maven-deploy-plugin</artifactId>
|
|
|
|
|
- <version>3.1.2</version>
|
|
|
|
|
- <configuration>
|
|
|
|
|
- <skip>false</skip>
|
|
|
|
|
- </configuration>
|
|
|
|
|
- </plugin>
|
|
|
|
|
-
|
|
|
|
|
- </plugins>
|
|
|
|
|
- </build>
|
|
|
|
|
- </profile>
|
|
|
|
|
- </profiles>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
<distributionManagement>
|
|
<distributionManagement>
|
|
|
<repository>
|
|
<repository>
|
|
|
<id>releases</id>
|
|
<id>releases</id>
|