@@ -81,6 +81,9 @@ SOFTWARE.
81
81
<url >https://github.com/yegor256/cactoos</url >
82
82
</site >
83
83
</distributionManagement >
84
+ <properties >
85
+ <additionalClasspathElements >${project.build.directory}/${project.artifactId}-test-lib-${project.version}.jar</additionalClasspathElements >
86
+ </properties >
84
87
<dependencies >
85
88
<dependency >
86
89
<groupId >org.takes</groupId >
@@ -106,13 +109,6 @@ SOFTWARE.
106
109
</exclusion >
107
110
</exclusions >
108
111
</dependency >
109
- <dependency >
110
- <groupId >files</groupId >
111
- <artifactId >test-data</artifactId >
112
- <version >0.0.1</version >
113
- <scope >system</scope >
114
- <systemPath >${basedir} /src/test/resources/test-data-0.0.1.jar</systemPath >
115
- </dependency >
116
112
<dependency >
117
113
<groupId >com.google.code.findbugs</groupId >
118
114
<artifactId >annotations</artifactId >
@@ -137,12 +133,21 @@ SOFTWARE.
137
133
</dependency >
138
134
</dependencies >
139
135
<build >
136
+ <resources >
137
+ <resource >
138
+ <directory >${basedir} /src/test/resources</directory >
139
+ <filtering >true</filtering >
140
+ <excludes >
141
+ <exclude >test-lib/**</exclude >
142
+ </excludes >
143
+ </resource >
144
+ </resources >
140
145
<testResources >
141
146
<testResource >
142
147
<directory >${basedir} /src/test/resources</directory >
143
148
<filtering >true</filtering >
144
149
<excludes >
145
- <exclude >test-data-0.0.1.jar </exclude >
150
+ <exclude >test-lib/** </exclude >
146
151
</excludes >
147
152
</testResource >
148
153
</testResources >
@@ -160,6 +165,8 @@ SOFTWARE.
160
165
<threads >8</threads >
161
166
<mutationThreshold >75</mutationThreshold >
162
167
<timeoutConstant >500</timeoutConstant >
168
+ <additionalClasspathElements >${additionalClasspathElements} </additionalClasspathElements >
169
+ <useClasspathJar >true</useClasspathJar >
163
170
</configuration >
164
171
</execution >
165
172
</executions >
@@ -188,6 +195,59 @@ SOFTWARE.
188
195
</execution >
189
196
</executions >
190
197
</plugin >
198
+ <plugin >
199
+ <groupId >org.apache.maven.plugins</groupId >
200
+ <artifactId >maven-surefire-plugin</artifactId >
201
+ <configuration >
202
+ <additionalClasspathDependencies >
203
+ <additionalClasspathDependency >
204
+ <groupId >org.cactoos</groupId >
205
+ <artifactId >${project.artifactId}-test-lib</artifactId >
206
+ <version >${project.version} </version >
207
+ </additionalClasspathDependency >
208
+ </additionalClasspathDependencies >
209
+ </configuration >
210
+ </plugin >
211
+ <plugin >
212
+ <groupId >org.apache.maven.plugins</groupId >
213
+ <artifactId >maven-assembly-plugin</artifactId >
214
+ <executions >
215
+ <execution >
216
+ <id >make-test-lib</id >
217
+ <phase >initialize</phase >
218
+ <goals >
219
+ <goal >single</goal >
220
+ </goals >
221
+ <configuration >
222
+ <finalName >${project.artifactId} -test-lib-${project.version} </finalName >
223
+ <descriptors >
224
+ <descriptor >${basedir} /src/test/resources/test-lib/assembly.xml</descriptor >
225
+ </descriptors >
226
+ <appendAssemblyId >false</appendAssemblyId >
227
+ </configuration >
228
+ </execution >
229
+ </executions >
230
+ </plugin >
231
+ <plugin >
232
+ <groupId >org.apache.maven.plugins</groupId >
233
+ <artifactId >maven-install-plugin</artifactId >
234
+ <executions >
235
+ <execution >
236
+ <id >make-test-lib</id >
237
+ <phase >initialize</phase >
238
+ <goals >
239
+ <goal >install-file</goal >
240
+ </goals >
241
+ <configuration >
242
+ <file >${additionalClasspathElements} </file >
243
+ <groupId >org.cactoos</groupId >
244
+ <artifactId >${project.artifactId}-test-lib</artifactId >
245
+ <version >${project.version} </version >
246
+ <packaging >jar</packaging >
247
+ </configuration >
248
+ </execution >
249
+ </executions >
250
+ </plugin >
191
251
<plugin >
192
252
<groupId >org.jacoco</groupId >
193
253
<artifactId >jacoco-maven-plugin</artifactId >
0 commit comments