pom.xml 8.0 KB

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