pom.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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. <dependency>
  91. <groupId>org.flywaydb</groupId>
  92. <artifactId>flyway-core</artifactId>
  93. </dependency>
  94. </dependencies>
  95. <!--<build>-->
  96. <!--<resources>-->
  97. <!--<resource>-->
  98. <!--<directory>src/main/resources</directory>-->
  99. <!--<includes>-->
  100. <!--&lt;!&ndash; **/* &ndash;&gt;-->
  101. <!--<include>**/*.xml</include>-->
  102. <!--<include>**/*.yml</include>-->
  103. <!--</includes>-->
  104. <!--<filtering>true</filtering>-->
  105. <!--</resource>-->
  106. <!--</resources>-->
  107. <!--<plugins>-->
  108. <!--<plugin>-->
  109. <!--<groupId>org.apache.maven.plugins</groupId>-->
  110. <!--<artifactId>maven-compiler-plugin</artifactId>-->
  111. <!--<version>3.6.2</version>-->
  112. <!--<configuration>-->
  113. <!--<source>${maven.compile.source}</source>-->
  114. <!--<target>${maven.compile.target}</target>-->
  115. <!--<encoding>${project.build.sourceEncoding}</encoding>-->
  116. <!--</configuration>-->
  117. <!--</plugin>-->
  118. <!--&lt;!&ndash;<plugin>&ndash;&gt;-->
  119. <!--&lt;!&ndash;<artifactId>maven-assembly-plugin</artifactId>&ndash;&gt;-->
  120. <!--&lt;!&ndash;<configuration>&ndash;&gt;-->
  121. <!--&lt;!&ndash;<archive>&ndash;&gt;-->
  122. <!--&lt;!&ndash;<manifest>&ndash;&gt;-->
  123. <!--&lt;!&ndash;<mainClass>com.nb.admin.AdminApplication</mainClass>&ndash;&gt;-->
  124. <!--&lt;!&ndash;</manifest>&ndash;&gt;-->
  125. <!--&lt;!&ndash;<manifestEntries>&ndash;&gt;-->
  126. <!--&lt;!&ndash;<Class-Path>.</Class-Path>&ndash;&gt;-->
  127. <!--&lt;!&ndash;</manifestEntries>&ndash;&gt;-->
  128. <!--&lt;!&ndash;</archive>&ndash;&gt;-->
  129. <!--&lt;!&ndash;</configuration>&ndash;&gt;-->
  130. <!--&lt;!&ndash;<executions>&ndash;&gt;-->
  131. <!--&lt;!&ndash;<execution>&ndash;&gt;-->
  132. <!--&lt;!&ndash;<id>make-assembly</id>&ndash;&gt;-->
  133. <!--&lt;!&ndash;<phase>package</phase>&ndash;&gt;-->
  134. <!--&lt;!&ndash;<goals>&ndash;&gt;-->
  135. <!--&lt;!&ndash;<goal>single</goal>&ndash;&gt;-->
  136. <!--&lt;!&ndash;</goals>&ndash;&gt;-->
  137. <!--&lt;!&ndash;<configuration>&ndash;&gt;-->
  138. <!--&lt;!&ndash;<descriptors>&ndash;&gt;-->
  139. <!--&lt;!&ndash;<descriptor>src/main/resources/assembly.xml</descriptor>&ndash;&gt;-->
  140. <!--&lt;!&ndash;</descriptors>&ndash;&gt;-->
  141. <!--&lt;!&ndash;</configuration>&ndash;&gt;-->
  142. <!--&lt;!&ndash;</execution>&ndash;&gt;-->
  143. <!--&lt;!&ndash;</executions>&ndash;&gt;-->
  144. <!--&lt;!&ndash;</plugin>&ndash;&gt;-->
  145. <!--</plugins>-->
  146. <!--</build>-->
  147. <build>
  148. <finalName>${project.name}</finalName>
  149. <resources>
  150. <resource>
  151. <directory>src/main/resources</directory>
  152. <filtering>true</filtering>
  153. </resource>
  154. </resources>
  155. <!--<pluginManagement>-->
  156. <plugins>
  157. <plugin>
  158. <groupId>org.springframework.boot</groupId>
  159. <artifactId>spring-boot-maven-plugin</artifactId>
  160. <version>${spring-boot.version}</version>
  161. <configuration>
  162. <mainClass>com.nb.admin.AdminApplication</mainClass>
  163. <finalName>${project.build.finalName}</finalName>
  164. <layers>
  165. <enabled>true</enabled>
  166. </layers>
  167. </configuration>
  168. <executions>
  169. <execution>
  170. <goals>
  171. <goal>repackage</goal>
  172. </goals>
  173. </execution>
  174. </executions>
  175. </plugin>
  176. </plugins>
  177. <!--</pluginManagement>-->
  178. </build>
  179. <profiles>
  180. <profile>
  181. <id>dev</id>
  182. <properties>
  183. <!-- 环境标识,需要与配置文件的名称相对应 -->
  184. <profiles.active>dev</profiles.active>
  185. <logging.level>debug</logging.level>
  186. </properties>
  187. <activation>
  188. <!-- 默认环境 -->
  189. <activeByDefault>true</activeByDefault>
  190. </activation>
  191. </profile>
  192. <profile>
  193. <id>test</id>
  194. <properties>
  195. <profiles.active>test</profiles.active>
  196. <logging.level>warn</logging.level>
  197. </properties>
  198. </profile>
  199. <profile>
  200. <id>prod</id>
  201. <properties>
  202. <profiles.active>prod</profiles.active>
  203. <logging.level>warn</logging.level>
  204. </properties>
  205. </profile>
  206. </profiles>
  207. </project>