pom.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>org.datagear</groupId>
  5. <artifactId>datagear</artifactId>
  6. <version>3.0.0</version>
  7. <packaging>pom</packaging>
  8. <name>datagear</name>
  9. <url>http://www.datagear.tech</url>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <java.version>1.8</java.version>
  13. <springboot.version>2.6.4</springboot.version>
  14. <javax.json.version>1.1.4</javax.json.version>
  15. <commons-csv.version>1.9.0</commons-csv.version>
  16. <poi.version>4.1.2</poi.version>
  17. <poi-ooxml.version>4.1.2</poi-ooxml.version>
  18. <!-- <mybatis.version>3.3.1</mybatis.version>-->
  19. <mybatis.version>3.5.6</mybatis.version>
  20. <mybatis-spring.version>1.3.1</mybatis-spring.version>
  21. <commons-fileupload.version>1.4</commons-fileupload.version>
  22. <maven-antrun-plugin.version>1.4</maven-antrun-plugin.version>
  23. </properties>
  24. <modules>
  25. <module>datagear-meta</module>
  26. <module>datagear-connection</module>
  27. <module>datagear-persistence</module>
  28. <module>datagear-dataexchange</module>
  29. <module>datagear-management</module>
  30. <module>datagear-util</module>
  31. <module>datagear-analysis</module>
  32. <module>datagear-web</module>
  33. </modules>
  34. <dependencies>
  35. <dependency>
  36. <groupId>org.slf4j</groupId>
  37. <artifactId>slf4j-api</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.hamcrest</groupId>
  41. <artifactId>hamcrest</artifactId>
  42. <scope>test</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.hamcrest</groupId>
  46. <artifactId>hamcrest-library</artifactId>
  47. <scope>test</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>junit</groupId>
  51. <artifactId>junit</artifactId>
  52. <scope>test</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>mysql</groupId>
  56. <artifactId>mysql-connector-java</artifactId>
  57. </dependency>
  58. </dependencies>
  59. <dependencyManagement>
  60. <dependencies>
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-parent</artifactId>
  64. <version>${springboot.version}</version>
  65. <type>pom</type>
  66. <scope>import</scope>
  67. </dependency>
  68. </dependencies>
  69. </dependencyManagement>
  70. <build>
  71. <plugins>
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-compiler-plugin</artifactId>
  75. <configuration>
  76. <source>${java.version}</source>
  77. <target>${java.version}</target>
  78. </configuration>
  79. </plugin>
  80. <plugin>
  81. <groupId>org.apache.maven.plugins</groupId>
  82. <artifactId>maven-jar-plugin</artifactId>
  83. <configuration>
  84. <archive>
  85. <manifestEntries>
  86. <Built-By>datagear.tech</Built-By>
  87. </manifestEntries>
  88. </archive>
  89. </configuration>
  90. </plugin>
  91. <!-- 统一更新子模块版本号为父模块版本号插件 -->
  92. <!-- mvn -N versions:update-child-modules -->
  93. <plugin>
  94. <groupId>org.codehaus.mojo</groupId>
  95. <artifactId>versions-maven-plugin</artifactId>
  96. <version>2.3</version>
  97. <configuration>
  98. <generateBackupPoms>false</generateBackupPoms>
  99. </configuration>
  100. </plugin>
  101. <plugin>
  102. <groupId>org.apache.maven.plugins</groupId>
  103. <artifactId>maven-antrun-plugin</artifactId>
  104. <version>${maven-antrun-plugin.version}</version>
  105. <executions>
  106. <execution>
  107. <id>default-cli</id>
  108. <goals>
  109. <goal>run</goal>
  110. </goals>
  111. <configuration>
  112. <tasks>
  113. <!-- 替换util模块Global.PRODUCT_VERSION版本号 -->
  114. <replaceregexp file="datagear-util/src/main/java/org/datagear/util/Global.java" encoding="UTF-8" match="VERSION = &quot;\d+(\.\d+){1,2}(\-\w+){0,1}&quot;" replace="VERSION = &quot;${project.version}&quot;"/>
  115. <!-- 为management模块的datagear.sql添加版本号行 -->
  116. <echo file="datagear-management/src/main/resources/org/datagear/management/ddl/datagear.sql" encoding="UTF-8" append="true">
  117. ${line.separator}
  118. -----------------------------------------
  119. --version[${project.version}], DO NOT EDIT THIS LINE!
  120. -----------------------------------------
  121. ${line.separator}
  122. </echo>
  123. <!-- 为web模块的changelog.txt添加版本号行 -->
  124. <echo file="datagear-web/src/main/resources/org/datagear/web/changelog.txt" encoding="UTF-8" append="true">
  125. ${line.separator}
  126. -----------------------------------------
  127. --v${project.version}
  128. -----------------------------------------
  129. ${line.separator}
  130. </echo>
  131. </tasks>
  132. </configuration>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. </plugins>
  137. </build>
  138. </project>