Skip to content

Commit d65a425

Browse files
committed
pass args to JVM for test
1 parent afa5fac commit d65a425

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

egg__12_sc_junit/pom.xml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,11 @@
160160
</plugin>
161161

162162
<plugin>
163-
<groupId>org.codehaus.mojo</groupId>
164-
<artifactId>exec-maven-plugin</artifactId>
165-
<version>3.1.0</version>
163+
<groupId>org.apache.maven.plugins</groupId>
164+
<artifactId>maven-surefire-plugin</artifactId>
165+
<version>2.22.1</version>
166166
<configuration>
167-
<executable>${java.home}/bin/java</executable>
168-
<arguments>
169-
<argument>--add-modules=jdk.incubator.concurrent</argument>
170-
<argument>--enable-preview</argument>
171-
<argument>--class-path</argument>
172-
<classpath/>
173-
<argument>net.codetojoy.Runner</argument>
174-
</arguments>
167+
<argLine>--add-modules=jdk.incubator.concurrent --enable-preview</argLine>
175168
</configuration>
176169
</plugin>
177170

0 commit comments

Comments
 (0)