16
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

mavenでオレオレ証明書を付けてるリポジトリを使う

Posted at

社内環境などで保証のない証明書を使ってる場合のオプション

こちらから
オレオレ証明書のmavenリポジトリからゲッツする - Muddy River
元ドキュメント
Apache Maven Wagon :: Providers :: HTTP Provider - Maven Wagon HTTP


まず、認証局やらの確認を全て許可する
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

こいつでダメなら証明書の有効期限かもだ。こいつはコトだぜ!
次のオプションで有効期限を無視
-Dmaven.wagon.http.ssl.ignore.validity.dates=true

まとめるとこういう形。長い……
mvn clean compile -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true

16
17
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?