Skip to content

Commit

Permalink
Move VM options to jvm.config
Browse files Browse the repository at this point in the history
  • Loading branch information
willmostly committed Aug 25, 2023
1 parent 7900850 commit 391dd12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED
3 changes: 1 addition & 2 deletions mvnw
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ if [ -n "$wrapperSha256Sum" ]; then
fi

#This option is required by the javalite db-migrator-maven-plugin, which does not support adding VM options in its config
REQUIRED_BUILD_OPTIONS='--add-opens=java.base/java.net=ALL-UNNAMED'
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $REQUIRED_BUILD_OPTIONS $MAVEN_OPTS"
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"

# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
Expand Down

0 comments on commit 391dd12

Please sign in to comment.