-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
223 lines (214 loc) · 9.24 KB
/
Copy pathpom.xml
File metadata and controls
223 lines (214 loc) · 9.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.zendodx</groupId>
<artifactId>evalkit-bom</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
<name>evalkit-bom</name>
<description>evalkit project bom</description>
<url>https://github.com/zendodx/evalkit.git</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<name>zendodx</name>
<email>zendodx@hotmail.com</email>
<roles>
<role>Project Manager</role>
<role>Architect</role>
</roles>
</developer>
</developers>
<scm>
<connection>https://github.com/zendodx/evalkit-framework.git</connection>
<developerConnection>scm:git@github.com:zendodx/evalkit-framework.git</developerConnection>
<url>https://github.com/zendodx/evalkit-framework</url>
<tag>HEAD</tag>
</scm>
<modules>
<module>evalkit-parent</module>
<module>evalkit-common</module>
<module>evalkit-workflow</module>
<module>evalkit-infra</module>
<module>evalkit-eval</module>
<module>evalkit-test</module>
</modules>
<properties>
<!-- 项目版本 -->
<revision>1.5.3</revision>
<!-- 统一编码 -->
<encoding>UTF-8</encoding>
<!-- jdk版本 -->
<jdk.version>1.8</jdk.version>
<!-- mvn -->
<maven.compiler.source>${jdk.version}</maven.compiler.source>
<maven.compiler.target>${jdk.version}</maven.compiler.target>
<!-- 工程编码 -->
<project.build.sourceEncoding>${encoding}</project.build.sourceEncoding>
<project.build.resourceEncoding>${encoding}</project.build.resourceEncoding>
<project.reporting.outputEncoding>${encoding}</project.reporting.outputEncoding>
<!--插件版本-->
<central-publishing-maven-plugin.version>0.4.0</central-publishing-maven-plugin.version>
<maven-gpg-plugin.version>1.5</maven-gpg-plugin.version>
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
<flatten-maven-plugin.version>1.7.3</flatten-maven-plugin.version>
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<!-- 公共模块 -->
<dependency>
<groupId>io.github.zendodx</groupId>
<artifactId>evalkit-common</artifactId>
<version>${project.version}</version>
</dependency>
<!-- 工作流模块 -->
<dependency>
<groupId>io.github.zendodx</groupId>
<artifactId>evalkit-workflow</artifactId>
<version>${project.version}</version>
</dependency>
<!-- 基础模块 -->
<dependency>
<groupId>io.github.zendodx</groupId>
<artifactId>evalkit-infra</artifactId>
<version>${project.version}</version>
</dependency>
<!-- 评测模块 -->
<dependency>
<groupId>io.github.zendodx</groupId>
<artifactId>evalkit-eval</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<!-- central发布插件 -->
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>${central-publishing-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>zendodx</publishingServerId>
<tokenAuth>true</tokenAuth>
</configuration>
</plugin>
<!-- gpg插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<configuration>
<executable>${gpg.executable.path}</executable>
<keyname>zendodx</keyname>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 代码覆盖率插件 -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 单元测试执行器插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<!-- 包含单元测试 -->
<includes>
<include>**/*Test.java</include>
</includes>
<!-- 排除单元测试 -->
<excludes>
<!-- 耗时长排除,手动测试 -->
<exclude>DeltaEvalFacadeTest</exclude>
<exclude>OrderedDeltaEvalFacadeTest</exclude>
<exclude>OrderedDeltaEvalWithinDataInjectTest</exclude>
<!-- 性能测试排除,CI 环境内存/时间有限,手动运行 -->
<exclude>DAGEvalPerformanceTest</exclude>
<exclude>DeltaEvalPerformanceTest</exclude>
<!-- 嵌入式 ActiveMQ/混合服务启停耗时约 30s+,手动运行 -->
<exclude>ActiveMQEmbeddedServerTest</exclude>
<exclude>MixedEmbeddedServerTest</exclude>
<!-- RubricBasedScorer 采样测试含多轮线程等待,耗时约 20s+,手动运行 -->
<exclude>RubricBasedScorerTest</exclude>
</excludes>
<!-- 修复 Mockito inline 在部分 JVM 版本下与 @Nested 内部类的兼容性问题
(MalformedParameters: Invalid parameter name "")
注意:必须引用 ${argLine} 以继承 Jacoco prepare-agent 注入的 -javaagent 参数,
否则 Jacoco 插桩失效,覆盖率报告全为 0 -->
<argLine>${argLine} -Dnet.bytebuddy.experimental=true</argLine>
</configuration>
</plugin>
<!-- 在发布(deploy/install)前自动将变量展开为实际值 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
<executions>
<!-- enable flattening -->
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<!-- ensure proper cleanup -->
<execution>
<id>flatten.clean</id>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
<configuration>
<updatePomFile>true</updatePomFile>
<pomElements>
<name/>
<description/>
<url/>
<inceptionYear/>
<organization/>
<contributors/>
<mailingLists/>
<scm/>
<developers/>
</pomElements>
</configuration>
</plugin>
</plugins>
</build>
</project>