huangxiao преди 3 седмици
родител
ревизия
be14a485a6
променени са 1 файла, в които са добавени 29 реда и са изтрити 2 реда
  1. 29 2
      pom.xml

+ 29 - 2
pom.xml

@@ -19,12 +19,11 @@
         <dependency>
             <groupId>com.hosea.cloud</groupId>
             <artifactId>cloud-gateway-maxkey</artifactId>
-            <version>${hosea-cloud.version}</version>
         </dependency>
+        <!--region Admin客户端,不兼容JMX-->
         <dependency>
             <groupId>com.hosea.cloud</groupId>
             <artifactId>cloud-admin-client</artifactId>
-            <version>${hosea-cloud.version}</version>
             <exclusions>
                 <exclusion>
                     <groupId>org.jolokia</groupId>
@@ -32,6 +31,8 @@
                 </exclusion>
             </exclusions>
         </dependency>
+        <!--endregion-->
+        <!--region 用户服务-->
         <dependency>
             <groupId>com.hosea.cloud.user</groupId>
             <artifactId>service-user-client</artifactId>
@@ -43,10 +44,26 @@
                 </exclusion>
             </exclusions>
         </dependency>
+        <!--endregion-->
     </dependencies>
 
+    <dependencyManagement>
+        <dependencies>
+            <!--region 微服务脚手架-->
+            <dependency>
+                <groupId>com.hosea.cloud</groupId>
+                <artifactId>hosea-cloud</artifactId>
+                <version>${hosea-cloud.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+            <!--endregion-->
+        </dependencies>
+    </dependencyManagement>
+
     <build>
         <plugins>
+            <!--region JDK版本-->
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
@@ -56,10 +73,20 @@
                     <encoding>${project.build.sourceEncoding}</encoding>
                 </configuration>
             </plugin>
+            <!--endregion-->
+            <!--region Spring Boot 执行包-->
             <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                    </execution>
+                </executions>
             </plugin>
+            <!--endregion-->
         </plugins>
     </build>
 </project>