pom.xml 7.5 KB

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