1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
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.kcl</groupId >
8+ <artifactId >kcl-java</artifactId >
9+ <version >0.1.0</version >
10+
11+ <properties >
12+ <java .version>1.8</java .version>
13+ <surefire .version>2.20</surefire .version>
14+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
15+ </properties >
16+ <dependencies >
17+ <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
18+ <dependency >
19+ <groupId >com.google.protobuf</groupId >
20+ <artifactId >protobuf-java</artifactId >
21+ <version >3.21.1</version >
22+ </dependency >
23+ <dependency >
24+ <groupId >org.slf4j</groupId >
25+ <artifactId >slf4j-api</artifactId >
26+ <version >1.7.30</version >
27+ </dependency >
28+ <dependency >
29+ <groupId >com.alibaba</groupId >
30+ <artifactId >fastjson</artifactId >
31+ <version >1.2.68</version >
32+ </dependency >
33+ <dependency >
34+ <groupId >org.apache.commons</groupId >
35+ <artifactId >commons-lang3</artifactId >
36+ <version >3.4</version >
37+ </dependency >
38+ <!-- test dependencies -->
39+ <dependency >
40+ <groupId >ch.qos.logback</groupId >
41+ <artifactId >logback-classic</artifactId >
42+ <version >1.2.3</version >
43+ <scope >test</scope >
44+ </dependency >
45+ <dependency >
46+ <groupId >junit</groupId >
47+ <artifactId >junit</artifactId >
48+ <version >4.13</version >
49+ <scope >test</scope >
50+ </dependency >
51+ <dependency >
52+ <groupId >org.openjdk.jmh</groupId >
53+ <artifactId >jmh-core</artifactId >
54+ <version >1.28</version >
55+ <scope >test</scope >
56+ </dependency >
57+ <dependency >
58+ <groupId >org.openjdk.jmh</groupId >
59+ <artifactId >jmh-generator-annprocess</artifactId >
60+ <version >1.28</version >
61+ <scope >test</scope >
62+ </dependency >
63+ </dependencies >
64+ <build >
65+ <plugins >
66+ <plugin >
67+ <groupId >org.apache.maven.plugins</groupId >
68+ <artifactId >maven-jar-plugin</artifactId >
69+ <version >3.2.0</version >
70+ <configuration >
71+ <archive >
72+ <manifestFile >src/main/resources/META-INF/MANIFEST.MF</manifestFile >
73+ </archive >
74+ </configuration >
75+ </plugin >
76+ <plugin >
77+ <groupId >org.apache.maven.plugins</groupId >
78+ <artifactId >maven-compiler-plugin</artifactId >
79+ <configuration >
80+ <source >${java.version} </source >
81+ <target >${java.version} </target >
82+ <encoding >UTF-8</encoding >
83+ </configuration >
84+ <version >3.3</version >
85+ </plugin >
86+ <plugin >
87+ <groupId >org.apache.maven.plugins</groupId >
88+ <artifactId >maven-surefire-plugin</artifactId >
89+ <version >${surefire.version} </version >
90+ <configuration >
91+ <testFailureIgnore >true</testFailureIgnore >
92+ <threadCount >1</threadCount >
93+ <properties >
94+ <junit >false</junit >
95+ </properties >
96+ <includes >
97+ <include >**/*Tests.java</include >
98+ <include >**/*Test.java</include >
99+ </includes >
100+ <excludes >
101+ <exclude >**/Abstract*.java</exclude >
102+ </excludes >
103+ </configuration >
104+ <dependencies >
105+ <dependency >
106+ <groupId >org.apache.maven.surefire</groupId >
107+ <artifactId >surefire-junit47</artifactId >
108+ <version >${surefire.version} </version >
109+ </dependency >
110+ <dependency >
111+ <groupId >org.apache.maven.surefire</groupId >
112+ <artifactId >surefire-testng</artifactId >
113+ <version >${surefire.version} </version >
114+ </dependency >
115+ </dependencies >
116+ </plugin >
117+ <plugin >
118+ <groupId >org.apache.maven.plugins</groupId >
119+ <artifactId >maven-source-plugin</artifactId >
120+ <version >2.0.2</version >
121+ <executions >
122+ <execution >
123+ <id >attach-sources</id >
124+ <goals >
125+ <goal >jar</goal >
126+ </goals >
127+ </execution >
128+ </executions >
129+ </plugin >
130+ <plugin >
131+ <groupId >org.apache.maven.plugins</groupId >
132+ <artifactId >maven-eclipse-plugin</artifactId >
133+ <version >2.6</version >
134+ <configuration >
135+ <downloadSources >true</downloadSources >
136+ </configuration >
137+ </plugin >
138+ </plugins >
139+ </build >
140+ <profiles >
141+ <profile >
142+ <id >dev</id >
143+ <activation >
144+ <activeByDefault >true</activeByDefault >
145+ </activation >
146+ </profile >
147+ <profile >
148+ <id >test</id >
149+ <activation >
150+ <property >
151+ <name >env</name >
152+ <value >test</value >
153+ </property >
154+ </activation >
155+ </profile >
156+ <profile >
157+ <id >prod</id >
158+ <activation >
159+ <property >
160+ <name >env</name >
161+ <value >prod</value >
162+ </property >
163+ </activation >
164+ </profile >
165+ </profiles >
166+ </project >
0 commit comments