pom.xml 7.4 KB

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