Skip to content

Commit dbce604

Browse files
committed
Do not use all-in-one JAR to avoid security errors
1 parent cbc1bb6 commit dbce604

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/ci.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ jobs:
2020
distribution: oracle
2121
- shell: bash
2222
run: |
23-
mvn package
24-
25-
OPTIONS="--add-opens=java.base/jdk.internal.access=ALL-UNNAMED \
23+
MVN_OPTS="--add-opens=java.base/jdk.internal.access=ALL-UNNAMED \
2624
--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED \
2725
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED \
2826
--add-opens=java.base/sun.util.calendar=ALL-UNNAMED \
@@ -46,6 +44,5 @@ jobs:
4644
--add-opens=java.base/java.text=ALL-UNNAMED \
4745
--add-opens=java.management/sun.management=ALL-UNNAMED \
4846
--add-opens java.desktop/java.awt.font=ALL-UNNAMED"
49-
50-
java $OPTIONS -classpath target/apache-ignite-example-*-jar-with-dependencies.jar org.moeaframework.ignite.IgniteMasterSlaveExample
51-
java $OPTIONS -classpath target/apache-ignite-example-*-jar-with-dependencies.jar org.moeaframework.ignite.IgniteIslandModelExample
47+
mvn compile exec:java -Dexec.mainClass="org.moeaframework.ignite.IgniteMasterSlaveExample"
48+
mvn compile exec:java -Dexec.mainClass="org.moeaframework.ignite.IgniteIslandModelExample"

0 commit comments

Comments
 (0)