pom.xml 8.2 KB

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