2.0重构版本
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
2 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. 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. <parent>
  5. <groupId>org.springframework.boot</groupId>
  6. <artifactId>spring-boot-starter-parent</artifactId>
  7. <version>2.6.9</version>
  8. <relativePath/> <!-- lookup parent from repository -->
  9. </parent>
  10. <groupId>cc.smtweb</groupId>
  11. <artifactId>canal.deployer</artifactId>
  12. <version>1.1.5</version>
  13. <dependencies>
  14. <dependency>
  15. <groupId>com.alibaba.otter</groupId>
  16. <artifactId>canal.server</artifactId>
  17. <version>1.1.5</version>
  18. </dependency>
  19. <!-- 这里指定runtime的metrics provider-->
  20. <dependency>
  21. <groupId>com.alibaba.otter</groupId>
  22. <artifactId>canal.prometheus</artifactId>
  23. <version>1.1.5</version>
  24. <scope>runtime</scope>
  25. </dependency>
  26. <dependency>
  27. <groupId>com.alibaba.otter</groupId>
  28. <artifactId>connector.kafka</artifactId>
  29. <version>1.1.5</version>
  30. <exclusions>
  31. <exclusion>
  32. <artifactId>*</artifactId>
  33. <groupId>*</groupId>
  34. </exclusion>
  35. </exclusions>
  36. <classifier>jar-with-dependencies</classifier>
  37. <scope>provided</scope>
  38. </dependency>
  39. <dependency>
  40. <groupId>com.alibaba.otter</groupId>
  41. <artifactId>connector.rocketmq</artifactId>
  42. <version>1.1.5</version>
  43. <exclusions>
  44. <exclusion>
  45. <artifactId>*</artifactId>
  46. <groupId>*</groupId>
  47. </exclusion>
  48. </exclusions>
  49. <classifier>jar-with-dependencies</classifier>
  50. <scope>provided</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.alibaba.otter</groupId>
  54. <artifactId>connector.rabbitmq</artifactId>
  55. <version>1.1.5</version>
  56. <exclusions>
  57. <exclusion>
  58. <artifactId>*</artifactId>
  59. <groupId>*</groupId>
  60. </exclusion>
  61. </exclusions>
  62. <classifier>jar-with-dependencies</classifier>
  63. <scope>provided</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>cc.smtweb</groupId>
  67. <artifactId>sw-framework-core</artifactId>
  68. <version>3.1.0-SNAPSHOT</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>cc.smtweb</groupId>
  72. <artifactId>sw-system-bpm</artifactId>
  73. <version>3.1.0-SNAPSHOT</version>
  74. </dependency>
  75. </dependencies>
  76. <build>
  77. <plugins>
  78. <plugin>
  79. <artifactId>maven-jar-plugin</artifactId>
  80. <configuration>
  81. <archive>
  82. <addMavenDescriptor>true</addMavenDescriptor>
  83. </archive>
  84. <excludes>
  85. <exclude>**/logback.xml</exclude>
  86. <exclude>**/canal.properties</exclude>
  87. <exclude>**/spring/**</exclude>
  88. <exclude>**/example/**</exclude>
  89. <exclude>**/mq.yml</exclude>
  90. </excludes>
  91. </configuration>
  92. </plugin>
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-dependency-plugin</artifactId>
  96. <version>2.10</version>
  97. <executions>
  98. <execution>
  99. <id>copy-dependencies-to-canal-deployer</id>
  100. <phase>package</phase>
  101. <goals>
  102. <goal>copy-dependencies</goal>
  103. </goals>
  104. <configuration>
  105. <includeClassifiers>jar-with-dependencies</includeClassifiers>
  106. <outputDirectory>${project.basedir}/target/canal-deployer/plugin</outputDirectory>
  107. </configuration>
  108. </execution>
  109. </executions>
  110. </plugin>
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-assembly-plugin</artifactId>
  114. <!-- 这是最新版本,推荐使用这个版本 -->
  115. <version>2.2.1</version>
  116. <executions>
  117. <execution>
  118. <id>assemble</id>
  119. <goals>
  120. <goal>single</goal>
  121. </goals>
  122. <phase>package</phase>
  123. </execution>
  124. </executions>
  125. <configuration>
  126. <appendAssemblyId>false</appendAssemblyId>
  127. <attach>false</attach>
  128. </configuration>
  129. </plugin>
  130. </plugins>
  131. </build>
  132. <profiles>
  133. <profile>
  134. <id>dev</id>
  135. <activation>
  136. <activeByDefault>true</activeByDefault>
  137. <property>
  138. <name>env</name>
  139. <value>!release</value>
  140. </property>
  141. </activation>
  142. <build>
  143. <plugins>
  144. <plugin>
  145. <artifactId>maven-assembly-plugin</artifactId>
  146. <configuration>
  147. <!-- maven assembly插件需要一个描述文件 来告诉插件包的结构以及打包所需的文件来自哪里 -->
  148. <descriptors>
  149. <descriptor>${basedir}/src/main/assembly/dev.xml</descriptor>
  150. </descriptors>
  151. <finalName>canal-deployer</finalName>
  152. <outputDirectory>${project.build.directory}</outputDirectory>
  153. </configuration>
  154. </plugin>
  155. </plugins>
  156. </build>
  157. </profile>
  158. <profile>
  159. <id>release</id>
  160. <activation>
  161. <property>
  162. <name>env</name>
  163. <value>release</value>
  164. </property>
  165. </activation>
  166. <build>
  167. <plugins>
  168. <plugin>
  169. <artifactId>maven-assembly-plugin</artifactId>
  170. <configuration>
  171. <!-- 发布模式使用的maven assembly插件描述文件 -->
  172. <descriptors>
  173. <descriptor>${basedir}/src/main/assembly/release.xml</descriptor>
  174. </descriptors>
  175. <!-- 如果一个应用的包含多个deploy模块,如果使用同样的包名, 如果把它们复制的一个目录中可能会失败,所以包名加了 artifactId以示区分 -->
  176. <finalName>${project.artifactId}-1.1.5</finalName>
  177. <!-- scm 要求 release 模式打出的包放到顶级目录下的target子目录中 -->
  178. <outputDirectory>${project.parent.build.directory}</outputDirectory>
  179. </configuration>
  180. </plugin>
  181. </plugins>
  182. </build>
  183. </profile>
  184. </profiles>
  185. </project>