pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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>market_warehouse</artifactId>
  7. <groupId>com.liangjiang</groupId>
  8. <version>1.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <name>basics</name>
  12. <artifactId>basic</artifactId>
  13. <dependencies>
  14. <dependency>
  15. <groupId>org.springframework.boot</groupId>
  16. <artifactId>spring-boot-starter-web</artifactId>
  17. </dependency>
  18. <dependency>
  19. <groupId>com.baomidou</groupId>
  20. <artifactId>mybatis-plus-boot-starter</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-aop</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>mysql</groupId>
  28. <artifactId>mysql-connector-java</artifactId>
  29. </dependency>
  30. <!-- druid数据源驱动 -->
  31. <dependency>
  32. <groupId>com.alibaba</groupId>
  33. <artifactId>druid-spring-boot-starter</artifactId>
  34. </dependency>
  35. <!--json-->
  36. <dependency>
  37. <groupId>com.alibaba</groupId>
  38. <artifactId>fastjson</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.baomidou</groupId>
  42. <artifactId>mybatis-plus-generator</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>com.github.pagehelper</groupId>
  46. <artifactId>pagehelper-spring-boot-starter</artifactId>
  47. </dependency>
  48. <!-- 由于SpringBoot 2.x中默认并没有使用Redis连接池,所以需要添加commons-pool2的依赖 -->
  49. <!-- <dependency>-->
  50. <!-- <groupId>org.apache.commons</groupId>-->
  51. <!-- <artifactId>commons-pool2</artifactId>-->
  52. <!-- </dependency>-->
  53. <!-- &lt;!&ndash;redis依赖配置&ndash;&gt;-->
  54. <!-- <dependency>-->
  55. <!-- <groupId>org.springframework.boot</groupId>-->
  56. <!-- <artifactId>spring-boot-starter-data-redis</artifactId>-->
  57. <!-- </dependency>-->
  58. <!-- hutool 一个常用工具集 -->
  59. <dependency>
  60. <groupId>cn.hutool</groupId>
  61. <artifactId>hutool-all</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>commons-io</groupId>
  65. <artifactId>commons-io</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.commons</groupId>
  69. <artifactId>commons-collections4</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.projectlombok</groupId>
  73. <artifactId>lombok</artifactId>
  74. <scope>provided</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>junit</groupId>
  78. <artifactId>junit</artifactId>
  79. <scope>test</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-starter-test</artifactId>
  84. <scope>test</scope>
  85. </dependency>
  86. <!-- 参数校验 -->
  87. <dependency>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-starter-validation</artifactId>
  90. </dependency>
  91. </dependencies>
  92. <build>
  93. <finalName>basics</finalName>
  94. <plugins>
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-compiler-plugin</artifactId>
  98. <configuration>
  99. <source>1.8</source>
  100. <target>1.8</target>
  101. <encoding>utf-8</encoding>
  102. </configuration>
  103. </plugin>
  104. <!--打包一个JAR-->
  105. <plugin>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-maven-plugin</artifactId>
  108. <configuration>
  109. <mainClass>com.liangjiang.basic.BasicApp</mainClass>
  110. <includeSystemScope>true</includeSystemScope>
  111. </configuration>
  112. <executions>
  113. <execution>
  114. <goals>
  115. <goal>repackage</goal>
  116. </goals>
  117. </execution>
  118. </executions>
  119. </plugin>
  120. <plugin>
  121. <groupId>org.apache.maven.plugins</groupId>
  122. <artifactId>maven-surefire-plugin</artifactId>
  123. <configuration>
  124. <testFailureIgnore>true</testFailureIgnore>
  125. </configuration>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.apache.maven.plugins</groupId>
  129. <artifactId>maven-jar-plugin</artifactId>
  130. <configuration>
  131. <archive>
  132. <manifest>
  133. <addClasspath>true</addClasspath>
  134. <useUniqueVersions>false</useUniqueVersions>
  135. <classpathPrefix>lib/</classpathPrefix>
  136. <mainClass>cn.mymaven.test.TestMain</mainClass>
  137. </manifest>
  138. </archive>
  139. </configuration>
  140. </plugin>
  141. </plugins>
  142. </build>
  143. </project>