2.0重构版本
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

2 anni fa
2 anni fa
2 anni fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <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">
  2. <modelVersion>4.0.0</modelVersion>
  3. <parent>
  4. <groupId>org.springframework.boot</groupId>
  5. <artifactId>spring-boot-starter-parent</artifactId>
  6. <version>2.6.9</version>
  7. <relativePath/> <!-- lookup parent from repository -->
  8. </parent>
  9. <groupId>cc.smtweb</groupId>
  10. <artifactId>canal.example</artifactId>
  11. <version>1.1.6</version>
  12. <dependencies>
  13. <dependency>
  14. <groupId>com.alibaba.otter</groupId>
  15. <artifactId>canal.client</artifactId>
  16. <version>1.1.6</version>
  17. </dependency>
  18. <dependency>
  19. <groupId>com.alibaba.otter</groupId>
  20. <artifactId>canal.protocol</artifactId>
  21. <version>1.1.6</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>com.alibaba</groupId>
  25. <artifactId>druid</artifactId>
  26. <version>1.2.11</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>cc.smtweb</groupId>
  30. <artifactId>sw-system-bpm</artifactId>
  31. <version>3.1.0-SNAPSHOT</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>mysql</groupId>
  35. <artifactId>mysql-connector-java</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.ddlutils</groupId>
  39. <artifactId>ddlutils</artifactId>
  40. <version>1.0</version>
  41. <exclusions>
  42. <exclusion>
  43. <groupId>commons-beanutils</groupId>
  44. <artifactId>commons-beanutils-core</artifactId>
  45. </exclusion>
  46. <exclusion>
  47. <groupId>commons-lang</groupId>
  48. <artifactId>commons-lang</artifactId>
  49. </exclusion>
  50. <exclusion>
  51. <groupId>commons-dbcp</groupId>
  52. <artifactId>commons-dbcp</artifactId>
  53. </exclusion>
  54. <exclusion>
  55. <groupId>commons-pool</groupId>
  56. <artifactId>commons-pool</artifactId>
  57. </exclusion>
  58. <exclusion>
  59. <groupId>commons-logging</groupId>
  60. <artifactId>commons-logging-api</artifactId>
  61. </exclusion>
  62. <exclusion>
  63. <groupId>dom4j</groupId>
  64. <artifactId>dom4j</artifactId>
  65. </exclusion>
  66. <exclusion>
  67. <groupId>stax</groupId>
  68. <artifactId>stax-api</artifactId>
  69. </exclusion>
  70. <exclusion>
  71. <groupId>commons-collections</groupId>
  72. <artifactId>commons-collections</artifactId>
  73. </exclusion>
  74. <exclusion>
  75. <groupId>commons-digester</groupId>
  76. <artifactId>commons-digester</artifactId>
  77. </exclusion>
  78. <exclusion>
  79. <groupId>commons-betwixt</groupId>
  80. <artifactId>commons-betwixt</artifactId>
  81. </exclusion>
  82. </exclusions>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.apache.commons</groupId>
  86. <artifactId>commons-pool2</artifactId>
  87. <version>2.5.0</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>commons-beanutils</groupId>
  91. <artifactId>commons-beanutils</artifactId>
  92. <version>1.8.2</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.apache.commons</groupId>
  96. <artifactId>commons-lang3</artifactId>
  97. <version>3.7</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>commons-collections</groupId>
  101. <artifactId>commons-collections</artifactId>
  102. <version>3.2</version>
  103. </dependency>
  104. <!-- test dependency -->
  105. <dependency>
  106. <groupId>junit</groupId>
  107. <artifactId>junit</artifactId>
  108. <scope>test</scope>
  109. </dependency>
  110. </dependencies>
  111. <build>
  112. <plugins>
  113. <!-- deploy模块的packaging通常是jar,如果项目中没有java 源代码或资源文件,加上这一段配置使项目能通过构建 -->
  114. <plugin>
  115. <groupId>org.apache.maven.plugins</groupId>
  116. <artifactId>maven-jar-plugin</artifactId>
  117. <version>2.5</version>
  118. <configuration>
  119. <archive>
  120. <addMavenDescriptor>true</addMavenDescriptor>
  121. </archive>
  122. </configuration>
  123. </plugin>
  124. <plugin>
  125. <groupId>org.apache.maven.plugins</groupId>
  126. <artifactId>maven-assembly-plugin</artifactId>
  127. <!-- 这是最新版本,推荐使用这个版本 -->
  128. <version>2.2.1</version>
  129. <executions>
  130. <execution>
  131. <id>assemble</id>
  132. <goals>
  133. <goal>single</goal>
  134. </goals>
  135. <phase>package</phase>
  136. </execution>
  137. </executions>
  138. <configuration>
  139. <appendAssemblyId>false</appendAssemblyId>
  140. <attach>false</attach>
  141. </configuration>
  142. </plugin>
  143. </plugins>
  144. </build>
  145. <profiles>
  146. <profile>
  147. <id>dev</id>
  148. <activation>
  149. <activeByDefault>true</activeByDefault>
  150. <property>
  151. <name>env</name>
  152. <value>!release</value>
  153. </property>
  154. </activation>
  155. <build>
  156. <plugins>
  157. <plugin>
  158. <artifactId>maven-assembly-plugin</artifactId>
  159. <configuration>
  160. <!-- maven assembly插件需要一个描述文件 来告诉插件包的结构以及打包所需的文件来自哪里 -->
  161. <descriptors>
  162. <descriptor>${basedir}/src/main/assembly/dev.xml</descriptor>
  163. </descriptors>
  164. <finalName>canal-example</finalName>
  165. <outputDirectory>${project.build.directory}</outputDirectory>
  166. </configuration>
  167. </plugin>
  168. </plugins>
  169. </build>
  170. </profile>
  171. <profile>
  172. <id>release</id>
  173. <activation>
  174. <property>
  175. <name>env</name>
  176. <value>release</value>
  177. </property>
  178. </activation>
  179. <build>
  180. <plugins>
  181. <plugin>
  182. <artifactId>maven-assembly-plugin</artifactId>
  183. <configuration>
  184. <!-- 发布模式使用的maven assembly插件描述文件 -->
  185. <descriptors>
  186. <descriptor>${basedir}/src/main/assembly/release.xml</descriptor>
  187. </descriptors>
  188. <!-- 如果一个应用的包含多个deploy模块,如果使用同样的包名, 如果把它们复制的一个目录中可能会失败,所以包名加了 artifactId以示区分 -->
  189. <finalName>${project.artifactId}-1.1.6</finalName>
  190. <!-- scm 要求 release 模式打出的包放到顶级目录下的target子目录中 -->
  191. <outputDirectory>${project.parent.build.directory}</outputDirectory>
  192. </configuration>
  193. </plugin>
  194. </plugins>
  195. </build>
  196. </profile>
  197. </profiles>
  198. </project>