Skip to content

Commit 52c476a

Browse files
committed
[MSHADE-346] Introduce mock repository manager for testing
1 parent 85509b1 commit 52c476a

File tree

389 files changed

+1060
-832
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

389 files changed

+1060
-832
lines changed

pom.xml

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,15 @@
205205
<configuration>
206206
<excludes combine.children="append">
207207
<!-- Can't add license header otherwise the tests will fail. -->
208+
<exclude>src/it/mrm/repository/services-resource-transformer/*/META-INF/services/org.apache.maven.Shade</exclude>
209+
<exclude>src/it/mrm/repository/services-resource-transformer-with-reloc-includes-excludes/*/META-INF/services/org.apache.maven.shade</exclude>
208210
<exclude>rel-path-test-files/**</exclude>
209-
<exclude>src/it/dep-reduced-pom-use-base-version/repo/org/apache/maven/its/shade/drp/a/0.1-SNAPSHOT/_maven.repositories</exclude>
210-
<exclude>src/it/mshade-123/sample.txt</exclude>
211-
<exclude>src/it/MSHADE-133/src/main/resources/myConfig.yml</exclude>
212-
<exclude>src/it/rerun-with-reloc/src/main/resources/some-ordinary-resource.txt</exclude>
213-
<exclude>src/it/rerun-without-reloc/src/main/resources/some-ordinary-resource.txt</exclude>
214-
<exclude>src/it/MSHADE-182/src/main/resources/META-INF/services/relocateme.Service</exclude>
211+
<exclude>src/it/projects/dep-reduced-pom-use-base-version/repo/org/apache/maven/its/shade/drp/a/0.1-SNAPSHOT/_maven.repositories</exclude>
212+
<exclude>src/it/projects/mshade-123/sample.txt</exclude>
213+
<exclude>src/it/projects/MSHADE-133/src/main/resources/myConfig.yml</exclude>
214+
<exclude>src/it/projects/rerun-with-reloc/src/main/resources/some-ordinary-resource.txt</exclude>
215+
<exclude>src/it/projects/rerun-without-reloc/src/main/resources/some-ordinary-resource.txt</exclude>
216+
<exclude>src/it/projects/MSHADE-182/src/main/resources/META-INF/services/relocateme.Service</exclude>
215217
</excludes>
216218
</configuration>
217219
</plugin>
@@ -276,13 +278,32 @@
276278
<artifactId>maven-invoker-plugin</artifactId>
277279
<configuration>
278280
<goals>
279-
<goal>clean</goal>
280-
<goal>install</goal>
281+
<goal>package</goal>
281282
</goals>
282-
<properties>
283-
<!-- e.g. ensure that Java7 picks up TLSv1.2 when connecting with Central -->
284-
<https.protocols>${https.protocols}</https.protocols>
285-
</properties>
283+
<projectsDirectory>src/it/projects</projectsDirectory>
284+
<settingsFile>src/it/mrm/settings.xml</settingsFile>
285+
</configuration>
286+
</plugin>
287+
<plugin>
288+
<groupId>org.codehaus.mojo</groupId>
289+
<artifactId>mrm-maven-plugin</artifactId>
290+
<version>1.2.0</version>
291+
<executions>
292+
<execution>
293+
<goals>
294+
<goal>start</goal>
295+
<goal>stop</goal>
296+
</goals>
297+
</execution>
298+
</executions>
299+
<configuration>
300+
<repositories>
301+
<mockRepo>
302+
<source>src/it/mrm/repository</source>
303+
<cloneTo>target/mock-repo</cloneTo> <!-- due to on the fly created jars -->
304+
</mockRepo>
305+
<proxyRepo/>
306+
</repositories>
286307
</configuration>
287308
</plugin>
288309
</plugins>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)