0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ローカルにNexusRepositoryを作ってライブラリを管理してみる

Posted at

NexusRepositoryの勉強のためにローカルにNexusRepositoryを使ってライブラリを管理してみます。

https://www.compiere-distribution-lab.net/nexus-install/
https://qiita.com/kannkyo/items/5195069c65350b60edd9#%E3%83%AA%E3%83%9D%E3%82%B8%E3%83%88%E3%83%AA%E6%A7%8B%E7%AF%89-1
を参考にさせていただきました。

NexusRepositoryをインストールできたら、今回はMavenのproxyリポジトリを作成します。
image.png

javaのプロジェクトのbuild.gradleに以下を書き足します。

build.gradle
repositories {
    maven {
        url 'http://127.0.0.1:8081/repository/maven-proxy/'
        allowInsecureProtocol = true
    }
}

~/.m2フォルダを削除します。

gradleプロジェクトのリフレッシュを行うと、proxyリポジトリにライブラリが保存されました。

image.png

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?