久しぶりにplay1でdepsによって依存性解決しようとしたところ、エラー。--verbose
オプションを付けて再実行したところ、
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
という例外が出ている模様。
検索してみるとstackoverflowの記事で、
btw this happens e.g. when switching from OracleJDK8 to OpenJDK8 since OpenJDK comes with an empty trust store. Copying the one from OpenJDK11 fixes the problem – light_303 Nov 13 ’18 at 9:38
https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty
というコメントを発見。
OpenJDK8
はtrust store
が空なので、OpenJDK11
からコピーして来いよ。ということらしいのでさっそく試してみる。
C:\Tools\bin\openjdk-11.0.9.1_1\lib\security
にあるファイル cacerts
を
C:\Tools\bin\java-se-8u41-ri\jre\lib\security
へコピー。
※オリジナルのcacerts
は事前に名前を変えておきました。
無事に事なきを得ることができました。ありがとうインターネット、ありがとうstack overflow。