pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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>dbsyncer</artifactId>
  7. <groupId>org.ghi</groupId>
  8. <version>2.0.6</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>dbsyncer-web</artifactId>
  12. <dependencies>
  13. <!-- Biz 业务层 -->
  14. <dependency>
  15. <groupId>org.ghi</groupId>
  16. <artifactId>dbsyncer-biz</artifactId>
  17. <version>${project.parent.version}</version>
  18. </dependency>
  19. <!-- Web 容器,默认使用Tomcat-->
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-web</artifactId>
  23. <exclusions>
  24. <exclusion>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-logging</artifactId>
  27. </exclusion>
  28. </exclusions>
  29. </dependency>
  30. <!-- Actuator -->
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-actuator</artifactId>
  34. </dependency>
  35. <!-- Thymeleaf 渲染引擎 -->
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  39. </dependency>
  40. <!-- spring security依赖 -->
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-security</artifactId>
  44. </dependency>
  45. </dependencies>
  46. <build>
  47. <!-- 指定打包名称 -->
  48. <finalName>${project.parent.artifactId}-${project.parent.version}</finalName>
  49. <plugins>
  50. <!-- compiler插件参数设置,指定编码 -->
  51. <plugin>
  52. <groupId>org.apache.maven.plugins</groupId>
  53. <artifactId>maven-compiler-plugin</artifactId>
  54. <version>3.8.0</version>
  55. <configuration>
  56. <source>1.8</source>
  57. <target>1.8</target>
  58. <encoding>utf-8</encoding>
  59. </configuration>
  60. </plugin>
  61. <!-- 负责将应用程序打包成可执行的jar文件 -->
  62. <plugin>
  63. <groupId>org.apache.maven.plugins</groupId>
  64. <artifactId>maven-jar-plugin</artifactId>
  65. <version>3.3.0</version>
  66. <configuration>
  67. <excludes>
  68. <exclude>application.properties</exclude>
  69. <exclude>jmxremote.*</exclude>
  70. </excludes>
  71. </configuration>
  72. </plugin>
  73. <!-- 负责将整个项目按照自定义的目录结构打成最终的压缩包,方便实际部署 -->
  74. <plugin>
  75. <groupId>org.apache.maven.plugins</groupId>
  76. <artifactId>maven-assembly-plugin</artifactId>
  77. <version>3.3.0</version>
  78. <configuration>
  79. <descriptors>
  80. <descriptor>src/main/assembly/assembly-zip.xml</descriptor>
  81. </descriptors>
  82. </configuration>
  83. <executions>
  84. <execution>
  85. <id>make-assembly</id>
  86. <phase>package</phase>
  87. <goals>
  88. <goal>single</goal>
  89. </goals>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. <plugin>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-maven-plugin</artifactId>
  96. <version>2.7.5</version>
  97. <executions>
  98. <execution>
  99. <goals>
  100. <goal>build-info</goal>
  101. </goals>
  102. </execution>
  103. </executions>
  104. </plugin>
  105. </plugins>
  106. </build>
  107. </project>