Skip to content

Commit e06a539

Browse files
committed
Configure surefire to include test.jar in tests
Signed-off-by: Piotrek Żygieło <pzygielo@users.noreply.github.com>
1 parent 8565eb1 commit e06a539

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

pom.xml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,6 @@
5050
<version>3.5.2</version>
5151
<scope>compile</scope>
5252
</dependency>
53-
<!--
54-
Include prepared jar so we can try to load templates from it; see TestGroupsFromCLASSPATH.java
55-
56-
Run:
57-
58-
mvn install:install-file -Dfile=test/test.jar -DgroupId=org.antlr -DartifactId=ST4-testjar -Dversion=1.0.0 -Dpackaging=jar
59-
60-
to install test jar in order to run tests
61-
-->
62-
<dependency>
63-
<groupId>org.antlr</groupId>
64-
<artifactId>ST4-testjar</artifactId>
65-
<version>1.0.0</version>
66-
<scope>test</scope>
67-
</dependency>
6853
</dependencies>
6954

7055
<properties>
@@ -114,6 +99,11 @@
11499
<version>2.22.0</version>
115100
<configuration>
116101
<argLine>-Dfile.encoding=UTF-8</argLine>
102+
<additionalClasspathElements>
103+
<!-- Include prepared jar so we can try to load templates from it;
104+
see TestGroupsFromCLASSPATH.java -->
105+
<additionalClasspathElement>test/test.jar</additionalClasspathElement>
106+
</additionalClasspathElements>
117107
</configuration>
118108
</plugin>
119109
<plugin>

0 commit comments

Comments
 (0)