duxinglangzi
2022-05-16 7cf9781edf66c75570af378a96b4011ff63ada92
提交 | 用户 | age
de8c2b 1 <?xml version="1.0" encoding="UTF-8"?>
D 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     <modelVersion>4.0.0</modelVersion>
6
7     <groupId>com.duxinglangzi</groupId>
8     <artifactId>canal-spring-boot-starter</artifactId>
9     <description>canal spring boot starter</description>
10     <version>1.0.0</version>
11
12     <properties>
13         <maven.compiler.source>8</maven.compiler.source>
14         <maven.compiler.target>8</maven.compiler.target>
15         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
17     </properties>
18
19     <parent>
20         <groupId>org.springframework.boot</groupId>
21         <artifactId>spring-boot-dependencies</artifactId>
22         <version>2.6.1</version>
23     </parent>
24
25     <dependencies>
26         <!-- alibaba otter canal  -->
27         <dependency>
28             <groupId>com.alibaba.otter</groupId>
29             <artifactId>canal.client</artifactId>
30             <version>1.1.5</version>
31         </dependency>
32         <dependency>
33             <groupId>com.alibaba.otter</groupId>
34             <artifactId>canal.protocol</artifactId>
35             <version>1.1.5</version>
36         </dependency>
37
38         <dependency>
39             <groupId>org.springframework.boot</groupId>
40             <artifactId>spring-boot-starter</artifactId>
41         </dependency>
42         <dependency>
43             <groupId>org.springframework.boot</groupId>
44             <artifactId>spring-boot-configuration-processor</artifactId>
45             <optional>true</optional>
46         </dependency>
47         <dependency>
48             <groupId>org.apache.commons</groupId>
49             <artifactId>commons-lang3</artifactId>
50         </dependency>
51     </dependencies>
52
53
54
55     <build>
56         <plugins>
57             <!--配置生成源码包-->
58             <plugin>
59                 <groupId>org.apache.maven.plugins</groupId>
60                 <artifactId>maven-source-plugin</artifactId>
61                 <version>3.2.1</version>
62                 <executions>
63                     <execution>
64                         <id>attach-sources</id>
65                         <goals>
66                             <goal>jar</goal>
67                         </goals>
68                     </execution>
69                 </executions>
70             </plugin>
71             <plugin>
72                 <groupId>org.apache.maven.plugins</groupId>
73                 <artifactId>maven-deploy-plugin</artifactId>
74                 <version>2.7</version>
75             </plugin>
76             <plugin>
77                 <groupId>org.codehaus.mojo</groupId>
78                 <artifactId>flatten-maven-plugin</artifactId>
79                 <version>1.2.7</version>
80                 <configuration>
81                     <updatePomFile>true</updatePomFile>
82                     <flattenMode>resolveCiFriendliesOnly</flattenMode>
83                 </configuration>
84                 <executions>
85                     <execution>
86                         <id>flatten</id>
87                         <phase>process-resources</phase>
88                         <goals>
89                             <goal>flatten</goal>
90                         </goals>
91                     </execution>
92                     <execution>
93                         <id>flatten.clean</id>
94                         <phase>clean</phase>
95                         <goals>
96                             <goal>clean</goal>
97                         </goals>
98                     </execution>
99                 </executions>
100             </plugin>
101             <plugin>
102                 <groupId>org.apache.maven.plugins</groupId>
103                 <artifactId>maven-compiler-plugin</artifactId>
104                 <version>3.8.0</version>
105                 <configuration>
106                     <source>8</source>
107                     <target>8</target>
108                     <encoding>UTF-8</encoding>
109                 </configuration>
110             </plugin>
111         </plugins>
112     </build>
113
114
115 </project>