pom.xml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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. <dependency>
  15. <groupId>com.tuoren</groupId>
  16. <artifactId>mq-common</artifactId>
  17. </dependency>
  18. <dependency>
  19. <groupId>com.tuoren</groupId>
  20. <artifactId>nb-im</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.tuoren</groupId>
  24. <artifactId>app-msg</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>com.tuoren</groupId>
  28. <artifactId>app-assistant</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>com.tuoren</groupId>
  32. <artifactId>app-doctor</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.tuoren</groupId>
  36. <artifactId>config-common</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.tuoren</groupId>
  40. <artifactId>web-service</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>javax.servlet</groupId>
  44. <artifactId>javax.servlet-api</artifactId>
  45. </dependency>
  46. <!-- OSS文件存储模块 -->
  47. <dependency>
  48. <groupId>com.tuoren</groupId>
  49. <artifactId>nb-oss</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-test</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>mysql</groupId>
  57. <artifactId>mysql-connector-java</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>junit</groupId>
  61. <artifactId>junit</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.tuoren</groupId>
  65. <artifactId>iot-service</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-starter-web</artifactId>
  70. <exclusions>
  71. <exclusion>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-tomcat</artifactId>
  74. </exclusion>
  75. </exclusions>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.springframework.boot</groupId>
  79. <artifactId>spring-boot-starter-undertow</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.yaml</groupId>
  83. <artifactId>snakeyaml</artifactId>
  84. </dependency>
  85. </dependencies>
  86. <!--<build>-->
  87. <!--<resources>-->
  88. <!--<resource>-->
  89. <!--<directory>src/main/resources</directory>-->
  90. <!--<includes>-->
  91. <!--&lt;!&ndash; **/* &ndash;&gt;-->
  92. <!--<include>**/*.xml</include>-->
  93. <!--<include>**/*.yml</include>-->
  94. <!--</includes>-->
  95. <!--<filtering>true</filtering>-->
  96. <!--</resource>-->
  97. <!--</resources>-->
  98. <!--<plugins>-->
  99. <!--<plugin>-->
  100. <!--<groupId>org.apache.maven.plugins</groupId>-->
  101. <!--<artifactId>maven-compiler-plugin</artifactId>-->
  102. <!--<version>3.6.2</version>-->
  103. <!--<configuration>-->
  104. <!--<source>${maven.compile.source}</source>-->
  105. <!--<target>${maven.compile.target}</target>-->
  106. <!--<encoding>${project.build.sourceEncoding}</encoding>-->
  107. <!--</configuration>-->
  108. <!--</plugin>-->
  109. <!--&lt;!&ndash;<plugin>&ndash;&gt;-->
  110. <!--&lt;!&ndash;<artifactId>maven-assembly-plugin</artifactId>&ndash;&gt;-->
  111. <!--&lt;!&ndash;<configuration>&ndash;&gt;-->
  112. <!--&lt;!&ndash;<archive>&ndash;&gt;-->
  113. <!--&lt;!&ndash;<manifest>&ndash;&gt;-->
  114. <!--&lt;!&ndash;<mainClass>com.nb.admin.AdminApplication</mainClass>&ndash;&gt;-->
  115. <!--&lt;!&ndash;</manifest>&ndash;&gt;-->
  116. <!--&lt;!&ndash;<manifestEntries>&ndash;&gt;-->
  117. <!--&lt;!&ndash;<Class-Path>.</Class-Path>&ndash;&gt;-->
  118. <!--&lt;!&ndash;</manifestEntries>&ndash;&gt;-->
  119. <!--&lt;!&ndash;</archive>&ndash;&gt;-->
  120. <!--&lt;!&ndash;</configuration>&ndash;&gt;-->
  121. <!--&lt;!&ndash;<executions>&ndash;&gt;-->
  122. <!--&lt;!&ndash;<execution>&ndash;&gt;-->
  123. <!--&lt;!&ndash;<id>make-assembly</id>&ndash;&gt;-->
  124. <!--&lt;!&ndash;<phase>package</phase>&ndash;&gt;-->
  125. <!--&lt;!&ndash;<goals>&ndash;&gt;-->
  126. <!--&lt;!&ndash;<goal>single</goal>&ndash;&gt;-->
  127. <!--&lt;!&ndash;</goals>&ndash;&gt;-->
  128. <!--&lt;!&ndash;<configuration>&ndash;&gt;-->
  129. <!--&lt;!&ndash;<descriptors>&ndash;&gt;-->
  130. <!--&lt;!&ndash;<descriptor>src/main/resources/assembly.xml</descriptor>&ndash;&gt;-->
  131. <!--&lt;!&ndash;</descriptors>&ndash;&gt;-->
  132. <!--&lt;!&ndash;</configuration>&ndash;&gt;-->
  133. <!--&lt;!&ndash;</execution>&ndash;&gt;-->
  134. <!--&lt;!&ndash;</executions>&ndash;&gt;-->
  135. <!--&lt;!&ndash;</plugin>&ndash;&gt;-->
  136. <!--</plugins>-->
  137. <!--</build>-->
  138. <build>
  139. <finalName>${project.name}</finalName>
  140. <resources>
  141. <resource>
  142. <directory>src/main/resources</directory>
  143. <filtering>true</filtering>
  144. </resource>
  145. </resources>
  146. <!--<pluginManagement>-->
  147. <plugins>
  148. <plugin>
  149. <groupId>org.springframework.boot</groupId>
  150. <artifactId>spring-boot-maven-plugin</artifactId>
  151. <version>${spring-boot.version}</version>
  152. <configuration>
  153. <mainClass>com.nb.admin.AdminApplication</mainClass>
  154. <finalName>${project.build.finalName}</finalName>
  155. <layers>
  156. <enabled>true</enabled>
  157. </layers>
  158. </configuration>
  159. <executions>
  160. <execution>
  161. <goals>
  162. <goal>repackage</goal>
  163. </goals>
  164. </execution>
  165. </executions>
  166. </plugin>
  167. </plugins>
  168. <!--</pluginManagement>-->
  169. </build>
  170. <profiles>
  171. <profile>
  172. <id>dev</id>
  173. <properties>
  174. <!-- 环境标识,需要与配置文件的名称相对应 -->
  175. <profiles.active>dev</profiles.active>
  176. <logging.level>debug</logging.level>
  177. </properties>
  178. <activation>
  179. <!-- 默认环境 -->
  180. <activeByDefault>true</activeByDefault>
  181. </activation>
  182. </profile>
  183. <profile>
  184. <id>test</id>
  185. <properties>
  186. <profiles.active>test</profiles.active>
  187. <logging.level>warn</logging.level>
  188. </properties>
  189. </profile>
  190. <profile>
  191. <id>prod</id>
  192. <properties>
  193. <profiles.active>prod</profiles.active>
  194. <logging.level>warn</logging.level>
  195. </properties>
  196. </profile>
  197. </profiles>
  198. </project>