pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>gihon.component</groupId>
  7. <artifactId>component-parent</artifactId>
  8. <version>0.3.0-SNAPSHOT</version>
  9. <relativePath>../</relativePath>
  10. </parent>
  11. <artifactId>component-springboot</artifactId>
  12. <name>component-springboot</name>
  13. <description>Demo project for Spring Boot</description>
  14. <dependencies>
  15. <dependency>
  16. <groupId>gihon.component</groupId>
  17. <artifactId>component-common</artifactId>
  18. </dependency>
  19. <!-- 单元测试 -->
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-test</artifactId>
  23. <scope>test</scope>
  24. <exclusions>
  25. <exclusion>
  26. <groupId>org.junit.vintage</groupId>
  27. <artifactId>junit-vintage-engine</artifactId>
  28. </exclusion>
  29. </exclusions>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.h2database</groupId>
  33. <artifactId>h2</artifactId>
  34. <scope>test</scope>
  35. </dependency>
  36. <!-- springboot -->
  37. <!-- <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-quartz</artifactId>
  40. </dependency> -->
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-devtools</artifactId>
  44. <scope>provided</scope>
  45. <optional>true</optional><!-- 可选依赖不传递 -->
  46. </dependency>
  47. <!-- 数据库 -->
  48. <dependency>
  49. <groupId>mysql</groupId>
  50. <artifactId>mysql-connector-java</artifactId>
  51. <scope>runtime</scope>
  52. </dependency>
  53. </dependencies>
  54. <build>
  55. <plugins>
  56. <plugin>
  57. <groupId>org.apache.maven.plugins</groupId>
  58. <artifactId>maven-assembly-plugin</artifactId>
  59. <version>3.4.2</version>
  60. <configuration>
  61. <filters>
  62. <filter>${assembly.filter.path}</filter>
  63. </filters>
  64. </configuration>
  65. <executions>
  66. <execution>
  67. <id>make-assembly</id>
  68. <phase>package</phase>
  69. <goals>
  70. <goal>single</goal>
  71. </goals>
  72. <configuration>
  73. <finalName>${project.name}</finalName>
  74. <skipAssembly>false</skipAssembly>
  75. <appendAssemblyId>false</appendAssemblyId>
  76. <descriptors>
  77. <descriptor>${assembly.path}/package.xml</descriptor>
  78. </descriptors>
  79. </configuration>
  80. </execution>
  81. <execution>
  82. <id>make-assembly-lib</id>
  83. <phase>package</phase>
  84. <goals>
  85. <goal>single</goal>
  86. </goals>
  87. <configuration>
  88. <finalName>lib</finalName>
  89. <skipAssembly>false</skipAssembly>
  90. <appendAssemblyId>false</appendAssemblyId>
  91. <descriptors>
  92. <descriptor>${assembly.path}package-lib.xml</descriptor>
  93. </descriptors>
  94. </configuration>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. </plugins>
  99. </build>
  100. </project>