pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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>1.2.3-RC_0421</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. <configuration>
  55. <source>1.8</source>
  56. <target>1.8</target>
  57. <encoding>utf-8</encoding>
  58. </configuration>
  59. </plugin>
  60. <!-- 负责将应用程序打包成可执行的jar文件 -->
  61. <plugin>
  62. <groupId>org.apache.maven.plugins</groupId>
  63. <artifactId>maven-jar-plugin</artifactId>
  64. <configuration>
  65. <excludes>
  66. <exclude>application.properties</exclude>
  67. <exclude>jmxremote.*</exclude>
  68. </excludes>
  69. </configuration>
  70. </plugin>
  71. <!-- 负责将整个项目按照自定义的目录结构打成最终的压缩包,方便实际部署 -->
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-assembly-plugin</artifactId>
  75. <configuration>
  76. <descriptors>
  77. <descriptor>src/main/assembly/assembly-zip.xml</descriptor>
  78. </descriptors>
  79. </configuration>
  80. <executions>
  81. <execution>
  82. <id>make-assembly</id>
  83. <phase>package</phase>
  84. <goals>
  85. <goal>single</goal>
  86. </goals>
  87. </execution>
  88. </executions>
  89. </plugin>
  90. <plugin>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-maven-plugin</artifactId>
  93. <version>2.7.5</version>
  94. <executions>
  95. <execution>
  96. <goals>
  97. <goal>build-info</goal>
  98. </goals>
  99. </execution>
  100. </executions>
  101. </plugin>
  102. </plugins>
  103. </build>
  104. </project>