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 >top.gcszhn</groupId >
8+ <artifactId >d4ocr</artifactId >
9+ <version >1.0</version >
10+ <packaging >jar</packaging >
11+ <name >ddddocr for java</name >
12+
13+ <properties >
14+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
15+ <maven .compiler.source>11</maven .compiler.source>
16+ <maven .compiler.target>11</maven .compiler.target>
17+ </properties >
18+
19+ <dependencies >
20+ <!-- https://mvnrepository.com/artifact/com.microsoft.onnxruntime/onnxruntime -->
21+ <dependency >
22+ <groupId >com.microsoft.onnxruntime</groupId >
23+ <artifactId >onnxruntime</artifactId >
24+ <version >1.11.0</version >
25+ </dependency >
26+ <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
27+ <dependency >
28+ <groupId >com.alibaba</groupId >
29+ <artifactId >fastjson</artifactId >
30+ <version >1.2.76</version >
31+ </dependency >
32+ <!-- lombok插件-->
33+ <dependency >
34+ <groupId >org.projectlombok</groupId >
35+ <artifactId >lombok</artifactId >
36+ <version >1.18.20</version >
37+ <scope >provided</scope >
38+ </dependency >
39+ <!-- slf4j-->
40+ <dependency >
41+ <groupId >org.slf4j</groupId >
42+ <artifactId >slf4j-api</artifactId >
43+ <version >1.7.25</version >
44+ </dependency >
45+ <dependency >
46+ <groupId >org.slf4j</groupId >
47+ <artifactId >jcl-over-slf4j</artifactId >
48+ <version >1.7.25</version >
49+ <scope >runtime</scope >
50+ </dependency >
51+ <!-- log4j2-->
52+ <dependency >
53+ <groupId >org.apache.logging.log4j</groupId >
54+ <artifactId >log4j-api</artifactId >
55+ <version >2.17.2</version >
56+ </dependency >
57+ <dependency >
58+ <groupId >org.apache.logging.log4j</groupId >
59+ <artifactId >log4j-core</artifactId >
60+ <version >2.17.2</version >
61+ </dependency >
62+ <!-- log4j2+slf4j桥接-->
63+ <dependency >
64+ <groupId >org.apache.logging.log4j</groupId >
65+ <artifactId >log4j-slf4j-impl</artifactId >
66+ <version >2.17.2</version >
67+ </dependency >
68+ <dependency >
69+ <groupId >junit</groupId >
70+ <artifactId >junit</artifactId >
71+ <version >4.13</version >
72+ <scope >test</scope >
73+ </dependency >
74+ </dependencies >
75+ <build >
76+ <plugins >
77+ <plugin >
78+ <artifactId >maven-clean-plugin</artifactId >
79+ <version >3.1.0</version >
80+ </plugin >
81+ <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
82+ <plugin >
83+ <artifactId >maven-resources-plugin</artifactId >
84+ <version >3.0.2</version >
85+ </plugin >
86+ <plugin >
87+ <artifactId >maven-compiler-plugin</artifactId >
88+ <version >3.8.0</version >
89+ </plugin >
90+ <plugin >
91+ <artifactId >maven-surefire-plugin</artifactId >
92+ <version >2.22.1</version >
93+ <configuration >
94+ <!-- 打包构建时跳过单元测试-->
95+ <skipTests >true</skipTests >
96+ </configuration >
97+ </plugin >
98+ <!-- 配置生成源码包-->
99+ <plugin >
100+ <groupId >org.apache.maven.plugins</groupId >
101+ <artifactId >maven-source-plugin</artifactId >
102+ <version >3.0.1</version >
103+ <executions >
104+ <execution >
105+ <id >attach-sources</id >
106+ <goals >
107+ <goal >jar</goal >
108+ </goals >
109+ </execution >
110+ </executions >
111+ </plugin >
112+ <plugin >
113+ <artifactId >maven-project-info-reports-plugin</artifactId >
114+ <version >3.0.0</version >
115+ </plugin >
116+ <!-- https://mvnrepository.com/artifact/com.mycila/license-maven-plugin -->
117+ <plugin >
118+ <groupId >com.mycila</groupId >
119+ <artifactId >license-maven-plugin</artifactId >
120+ <version >4.1</version >
121+ <executions >
122+ <execution >
123+ <?m2e execute onConfiguration ?>
124+ <phase >generate-sources</phase >
125+ <goals >
126+ <goal >remove</goal >
127+ <goal >format</goal >
128+ </goals >
129+ </execution >
130+ </executions >
131+ <configuration >
132+ <quiet >true</quiet >
133+ <!-- HEADER文件-->
134+ <header >${project.basedir} /templete/license.temp</header >
135+ <!-- 排除文件-->
136+ <excludes >
137+ <exclude >**/*.properties</exclude >
138+ <exclude >**/*.sh</exclude >
139+ <exclude >**/*.yml</exclude >
140+ <exclude >.editorconfig</exclude >
141+ <exclude >.gitignore</exclude >
142+ <exclude >**/*.md</exclude >
143+ <exclude >**/*.xml</exclude >
144+ <exclude >**/*.txt</exclude >
145+ <exclude >**/*.vm</exclude >
146+ </excludes >
147+ <!-- 严格检查-->
148+ <strictCheck >true</strictCheck >
149+ <mapping >
150+ <java >SLASHSTAR_STYLE</java >
151+ </mapping >
152+ </configuration >
153+ </plugin >
154+ <plugin >
155+ <groupId >org.projectlombok</groupId >
156+ <artifactId >lombok-maven-plugin</artifactId >
157+ <version >1.18.20.0</version >
158+ <executions >
159+ <execution >
160+ <phase >generate-sources</phase >
161+ <goals >
162+ <goal >delombok</goal >
163+ </goals >
164+ </execution >
165+ </executions >
166+ </plugin >
167+ </plugins >
168+ </build >
169+ <distributionManagement >
170+ <repository >
171+ <id >github</id >
172+ <name >Github maven package</name >
173+ <url >https://maven.pkg.github.com/gcs-zhn/ddddocr-for-java</url >
174+ </repository >
175+ </distributionManagement >
176+ </project >
0 commit comments