pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. <dependency>
  59. <groupId>com.dameng</groupId>
  60. <artifactId>Dm7JdbcDriver17</artifactId>
  61. <version>7.6.0.77</version>
  62. <exclusions>
  63. <exclusion>
  64. <groupId>jdk.tools</groupId>
  65. <artifactId>jdk.tools</artifactId>
  66. </exclusion>
  67. </exclusions>
  68. </dependency>
  69. </dependencies>
  70. <dependencyManagement>
  71. <dependencies>
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-starter-parent</artifactId>
  75. <version>${springboot.version}</version>
  76. <type>pom</type>
  77. <scope>import</scope>
  78. </dependency>
  79. </dependencies>
  80. </dependencyManagement>
  81. <build>
  82. <plugins>
  83. <plugin>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-compiler-plugin</artifactId>
  86. <configuration>
  87. <source>${java.version}</source>
  88. <target>${java.version}</target>
  89. </configuration>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.apache.maven.plugins</groupId>
  93. <artifactId>maven-jar-plugin</artifactId>
  94. <configuration>
  95. <archive>
  96. <manifestEntries>
  97. <Built-By>datagear.tech</Built-By>
  98. </manifestEntries>
  99. </archive>
  100. </configuration>
  101. </plugin>
  102. <!-- 统一更新子模块版本号为父模块版本号插件 -->
  103. <!-- mvn -N versions:update-child-modules -->
  104. <plugin>
  105. <groupId>org.codehaus.mojo</groupId>
  106. <artifactId>versions-maven-plugin</artifactId>
  107. <version>2.3</version>
  108. <configuration>
  109. <generateBackupPoms>false</generateBackupPoms>
  110. </configuration>
  111. </plugin>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-antrun-plugin</artifactId>
  115. <version>${maven-antrun-plugin.version}</version>
  116. <executions>
  117. <execution>
  118. <id>default-cli</id>
  119. <goals>
  120. <goal>run</goal>
  121. </goals>
  122. <configuration>
  123. <tasks>
  124. <!-- 替换util模块Global.PRODUCT_VERSION版本号 -->
  125. <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;"/>
  126. <!-- 为management模块的datagear.sql添加版本号行 -->
  127. <echo file="datagear-management/src/main/resources/org/datagear/management/ddl/datagear.sql" encoding="UTF-8" append="true">
  128. ${line.separator}
  129. -----------------------------------------
  130. --version[${project.version}], DO NOT EDIT THIS LINE!
  131. -----------------------------------------
  132. ${line.separator}
  133. </echo>
  134. <!-- 为web模块的changelog.txt添加版本号行 -->
  135. <echo file="datagear-web/src/main/resources/org/datagear/web/changelog.txt" encoding="UTF-8" append="true">
  136. ${line.separator}
  137. -----------------------------------------
  138. --v${project.version}
  139. -----------------------------------------
  140. ${line.separator}
  141. </echo>
  142. </tasks>
  143. </configuration>
  144. </execution>
  145. </executions>
  146. </plugin>
  147. </plugins>
  148. </build>
  149. </project>