pom.xml 8.1 KB

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