Skip to content

Commit 8565eb1

Browse files
committed
require test jar to be installed locally to avoid dependence on local jar
1 parent f7aad58 commit 8565eb1

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

pom.xml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,20 @@
5050
<version>3.5.2</version>
5151
<scope>compile</scope>
5252
</dependency>
53-
<dependency> <!-- Hard code a jar we can try to load templates from; see TestGroupsFromCLASSPATH.java -->
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>
5463
<groupId>org.antlr</groupId>
5564
<artifactId>ST4-testjar</artifactId>
56-
<version>1.0</version>
57-
<scope>system</scope>
58-
<systemPath>${basedir}/test/test.jar</systemPath>
65+
<version>1.0.0</version>
66+
<scope>test</scope>
5967
</dependency>
6068
</dependencies>
6169

0 commit comments

Comments
 (0)