pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.jwk</groupId>
  6. <artifactId>custom-spring-boot-starter</artifactId>
  7. <version>1.0</version>
  8. <name>custom-spring-boot-starter</name>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <maven.compiler.source>1.8</maven.compiler.source>
  12. <maven.compiler.target>1.8</maven.compiler.target>
  13. </properties>
  14. <dependencies>
  15. <dependency>
  16. <groupId>org.springframework.boot</groupId>
  17. <artifactId>spring-boot-starter-web</artifactId>
  18. <version>2.2.4.RELEASE</version>
  19. </dependency>
  20. <!-- 生成配置文件提示-->
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-configuration-processor</artifactId>
  24. <version>2.2.4.RELEASE</version>
  25. <optional>true</optional>
  26. </dependency>
  27. <dependency>
  28. <groupId>junit</groupId>
  29. <artifactId>junit</artifactId>
  30. <version>4.11</version>
  31. <scope>test</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.projectlombok</groupId>
  35. <artifactId>lombok</artifactId>
  36. <version>1.18.10</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.slf4j</groupId>
  40. <artifactId>slf4j-api</artifactId>
  41. <version>1.7.7</version>
  42. </dependency>
  43. <!-- springboot自带logback-->
  44. <dependency>
  45. <groupId>ch.qos.logback</groupId>
  46. <artifactId>logback-core</artifactId>
  47. <version>1.1.11</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>ch.qos.logback</groupId>
  51. <artifactId>logback-classic</artifactId>
  52. <version>1.1.11</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.commons</groupId>
  56. <artifactId>commons-lang3</artifactId>
  57. <version>3.9</version>
  58. </dependency>
  59. </dependencies>
  60. <build>
  61. <finalName>${project.artifactId}</finalName>
  62. <extensions>
  63. <extension>
  64. <groupId>org.apache.maven.wagon</groupId>
  65. <artifactId>wagon-ssh</artifactId>
  66. <version>2.8</version>
  67. </extension>
  68. </extensions>
  69. <plugins>
  70. <plugin>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-maven-plugin</artifactId>
  73. <configuration>
  74. <includeSystemScope>true</includeSystemScope>
  75. </configuration>
  76. </plugin>
  77. <!-- 生成java文档注释-->
  78. <plugin>
  79. <groupId>org.apache.maven.plugins</groupId>
  80. <artifactId>maven-source-plugin</artifactId>
  81. <version>3.2.1</version>
  82. <!-- 绑定source插件到Maven的生命周期,并在生命周期后执行绑定的source的goal -->
  83. <executions>
  84. <execution>
  85. <!-- 绑定source插件到Maven的生命周期 -->
  86. <phase>compile</phase>
  87. <!--在生命周期后执行绑定的source插件的goals -->
  88. <goals>
  89. <goal>jar-no-fork</goal>
  90. </goals>
  91. </execution>
  92. </executions>
  93. </plugin>
  94. <!-- 跳过单元测试 -->
  95. <plugin>
  96. <groupId>org.apache.maven.plugins</groupId>
  97. <artifactId>maven-surefire-plugin</artifactId>
  98. <configuration>
  99. <skipTests>true</skipTests>
  100. </configuration>
  101. </plugin>
  102. </plugins>
  103. </build>
  104. <repositories>
  105. <repository>
  106. <id>public</id>
  107. <name>aliyun nexus</name>
  108. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  109. <releases>
  110. <enabled>true</enabled>
  111. </releases>
  112. </repository>
  113. </repositories>
  114. <pluginRepositories>
  115. <pluginRepository>
  116. <id>public</id>
  117. <name>aliyun nexus</name>
  118. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  119. <releases>
  120. <enabled>true</enabled>
  121. </releases>
  122. <snapshots>
  123. <enabled>false</enabled>
  124. </snapshots>
  125. </pluginRepository>
  126. </pluginRepositories>
  127. </project>