pom.xml 7.7 KB

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