pom.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>nb-root</artifactId>
  7. <groupId>com.tuoren</groupId>
  8. <version>1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>nb-admin</artifactId>
  13. <dependencies>
  14. <!-- 核心模块 -->
  15. <dependency>
  16. <groupId>com.tuoren</groupId>
  17. <artifactId>nb-system</artifactId>
  18. </dependency>
  19. <!-- OSS文件存储模块 -->
  20. <dependency>
  21. <groupId>com.tuoren</groupId>
  22. <artifactId>nb-oss</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-test</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>mysql</groupId>
  30. <artifactId>mysql-connector-java</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>junit</groupId>
  34. <artifactId>junit</artifactId>
  35. </dependency>
  36. </dependencies>
  37. <!--<build>-->
  38. <!--<plugins>-->
  39. <!--<plugin>-->
  40. <!--<groupId>org.springframework.boot</groupId>-->
  41. <!--<artifactId>spring-boot-maven-plugin</artifactId>-->
  42. <!--</plugin>-->
  43. <!--</plugins>-->
  44. <!--</build>-->
  45. <!--<build>-->
  46. <!--<finalName>${project.name}</finalName>-->
  47. <!--<resources>-->
  48. <!--<resource>-->
  49. <!--<directory>src/main/resources</directory>-->
  50. <!--<filtering>true</filtering>-->
  51. <!--</resource>-->
  52. <!--</resources>-->
  53. <!--<pluginManagement>-->
  54. <!--<plugins>-->
  55. <!--&lt;!&ndash;<plugin>&ndash;&gt;-->
  56. <!--&lt;!&ndash;<groupId>org.springframework.boot</groupId>&ndash;&gt;-->
  57. <!--&lt;!&ndash;<artifactId>spring-boot-maven-plugin</artifactId>&ndash;&gt;-->
  58. <!--&lt;!&ndash;<version>${spring-boot.version}</version>&ndash;&gt;-->
  59. <!--&lt;!&ndash;<configuration>&ndash;&gt;-->
  60. <!--&lt;!&ndash;<mainClass>com.nb.AdminApplication</mainClass>&ndash;&gt;-->
  61. <!--&lt;!&ndash;<finalName>${project.build.finalName}</finalName>&ndash;&gt;-->
  62. <!--&lt;!&ndash;<layers>&ndash;&gt;-->
  63. <!--&lt;!&ndash;<enabled>true</enabled>&ndash;&gt;-->
  64. <!--&lt;!&ndash;</layers>&ndash;&gt;-->
  65. <!--&lt;!&ndash;</configuration>&ndash;&gt;-->
  66. <!--&lt;!&ndash;<executions>&ndash;&gt;-->
  67. <!--&lt;!&ndash;<execution>&ndash;&gt;-->
  68. <!--&lt;!&ndash;<goals>&ndash;&gt;-->
  69. <!--&lt;!&ndash;<goal>repackage</goal>&ndash;&gt;-->
  70. <!--&lt;!&ndash;</goals>&ndash;&gt;-->
  71. <!--&lt;!&ndash;</execution>&ndash;&gt;-->
  72. <!--&lt;!&ndash;</executions>&ndash;&gt;-->
  73. <!--&lt;!&ndash;</plugin>&ndash;&gt;-->
  74. <!--<plugin>-->
  75. <!--<artifactId>maven-assembly-plugin</artifactId>-->
  76. <!--<configuration>-->
  77. <!--<archive>-->
  78. <!--<manifest>-->
  79. <!--<mainClass>com.nb.AdminApplication</mainClass>-->
  80. <!--</manifest>-->
  81. <!--<manifestEntries>-->
  82. <!--<Class-Path>.</Class-Path>-->
  83. <!--</manifestEntries>-->
  84. <!--</archive>-->
  85. <!--<descriptorRefs>-->
  86. <!--<descriptorRef>jar-with-dependencies</descriptorRef>-->
  87. <!--</descriptorRefs>-->
  88. <!--</configuration>-->
  89. <!--<executions>-->
  90. <!--<execution>-->
  91. <!--<id>make-assembly</id>-->
  92. <!--<phase>package</phase>-->
  93. <!--<goals>-->
  94. <!--<goal>single</goal>-->
  95. <!--</goals>-->
  96. <!--<configuration>-->
  97. <!--<descriptors>-->
  98. <!--<descriptor>src/main/resources/assembly.xml</descriptor>-->
  99. <!--</descriptors>-->
  100. <!--</configuration>-->
  101. <!--</execution>-->
  102. <!--</executions>-->
  103. <!--</plugin>-->
  104. <!--</plugins>-->
  105. <!--</pluginManagement>-->
  106. <!--</build>-->
  107. <build>
  108. <resources>
  109. <resource>
  110. <directory>src/main/resources</directory>
  111. <filtering>true</filtering>
  112. </resource>
  113. </resources>
  114. <plugins>
  115. <plugin>
  116. <artifactId>maven-install-plugin</artifactId>
  117. <configuration>
  118. <skip>true</skip>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.springframework.boot</groupId>
  123. <artifactId>spring-boot-maven-plugin</artifactId>
  124. <configuration>
  125. <mainClass>com.nb.AdminApplication</mainClass>
  126. <layout>ZIP</layout>
  127. <layers>
  128. <enabled>true</enabled>
  129. </layers>
  130. </configuration>
  131. <executions>
  132. <execution>
  133. <goals>
  134. <goal>repackage</goal>
  135. </goals>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. </plugins>
  140. </build>
  141. <profiles>
  142. <profile>
  143. <id>dev</id>
  144. <properties>
  145. <!-- 环境标识,需要与配置文件的名称相对应 -->
  146. <profiles.active>dev</profiles.active>
  147. <!--<profiles.active>prod</profiles.active>-->
  148. <logging.level>debug</logging.level>
  149. </properties>
  150. <activation>
  151. <!-- 默认环境 -->
  152. <activeByDefault>true</activeByDefault>
  153. </activation>
  154. </profile>
  155. <profile>
  156. <id>test</id>
  157. <properties>
  158. <profiles.active>test</profiles.active>
  159. <logging.level>warn</logging.level>
  160. </properties>
  161. </profile>
  162. <profile>
  163. <id>prod</id>
  164. <properties>
  165. <profiles.active>prod</profiles.active>
  166. <logging.level>warn</logging.level>
  167. </properties>
  168. </profile>
  169. </profiles>
  170. </project>