pom.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  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>mldong</artifactId>
  7. <groupId>com.mldong</groupId>
  8. <version>1.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>mldong-app</artifactId>
  12. <dependencies>
  13. <dependency>
  14. <groupId>com.mldong</groupId>
  15. <artifactId>mldong-app-interceptor-service</artifactId>
  16. <version>${parent.version}</version>
  17. </dependency>
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-web</artifactId>
  21. </dependency>
  22. <!--阿里druid-spring-boot-starter-->
  23. <dependency>
  24. <groupId>com.alibaba</groupId>
  25. <artifactId>druid-spring-boot-starter</artifactId>
  26. </dependency>
  27. <!--连接池-->
  28. <dependency>
  29. <groupId>com.alibaba</groupId>
  30. <artifactId>druid</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.springframework.boot</groupId>
  34. <artifactId>spring-boot-starter-jdbc</artifactId>
  35. </dependency>
  36. <!--实现springboot的热加载-->
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-devtools</artifactId>
  40. <optional>true</optional>
  41. <scope>true</scope>
  42. </dependency>
  43. <!-- MYSQL -->
  44. <dependency>
  45. <groupId>mysql</groupId>
  46. <artifactId>mysql-connector-java</artifactId>
  47. </dependency>
  48. <!-- swaggerui -->
  49. <dependency>
  50. <groupId>io.springfox</groupId>
  51. <artifactId>springfox-swagger2</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>io.springfox</groupId>
  55. <artifactId>springfox-swagger-ui</artifactId>
  56. </dependency>
  57. <!-- knife4j -->
  58. <dependency>
  59. <groupId>com.github.xiaoymin</groupId>
  60. <artifactId>knife4j-spring-boot-starter</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.mldong</groupId>
  64. <artifactId>mldong-token-strategy-redis</artifactId>
  65. <version>${parent.version}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.mldong</groupId>
  69. <artifactId>mldong-cms-domain</artifactId>
  70. <version>1.0-SNAPSHOT</version>
  71. <scope>compile</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.mldong</groupId>
  75. <artifactId>mldong-cms-service</artifactId>
  76. <version>1.0-SNAPSHOT</version>
  77. <scope>compile</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.mldong</groupId>
  81. <artifactId>mldong-cms-service</artifactId>
  82. <version>1.0-SNAPSHOT</version>
  83. <scope>compile</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.mldong</groupId>
  87. <artifactId>mldong-swagger</artifactId>
  88. <version>${parent.version}</version>
  89. </dependency>
  90. </dependencies>
  91. <build>
  92. <resources>
  93. <resource>
  94. <directory>src/main/resources</directory>
  95. <includes>
  96. <include>**/*</include>
  97. </includes>
  98. </resource>
  99. <resource>
  100. <directory>src/main/lib</directory>
  101. <targetPath>BOOT-INF/lib/</targetPath>
  102. <includes>
  103. <include>**/*.jar</include>
  104. </includes>
  105. </resource>
  106. <resource>
  107. <directory>src/main/resources</directory>
  108. <targetPath>BOOT-INF/classes/</targetPath>
  109. </resource>
  110. </resources>
  111. <finalName>${project.artifactId}</finalName>
  112. <extensions>
  113. <extension>
  114. <groupId>org.apache.maven.wagon</groupId>
  115. <artifactId>wagon-ssh</artifactId>
  116. <version>2.8</version>
  117. </extension>
  118. </extensions>
  119. <plugins>
  120. <plugin>
  121. <groupId>org.springframework.boot</groupId>
  122. <artifactId>spring-boot-maven-plugin</artifactId>
  123. <!-- 指定主类 -->
  124. <configuration>
  125. <mainClass>com.mldong.MldongAppApplication</mainClass>
  126. </configuration>
  127. <executions>
  128. <execution>
  129. <goals>
  130. <goal>repackage</goal>
  131. </goals>
  132. </execution>
  133. </executions>
  134. </plugin>
  135. <!-- 跳过单元测试 -->
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-surefire-plugin</artifactId>
  139. <configuration>
  140. <skipTests>true</skipTests>
  141. </configuration>
  142. </plugin>
  143. </plugins>
  144. </build>
  145. </project>