Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
== 社内リポジトリの作成 == CentOS上に作成する。ディレクトリは/var/maven2とし、wagon-ftpを使ってアーティファクトを登録すればよい。 インデックスを作成しなければならないが、それにはNexus Indexer CLIを用いる。 |
社内リポジトリ(インハウスリポジトリ)の運用
社内リポジトリの作成
CentOS上に作成する。ディレクトリは/var/maven2とし、wagon-ftpを使ってアーティファクトを登録すればよい。 インデックスを作成しなければならないが、それにはNexus Indexer CLIを用いる。
settings.xmlの記述
<settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository/> <interactiveMode/> <usePluginRegistry/> <offline/> <pluginGroups/> <mirrors> <mirror> <id>inhouseRepository</id> <name>My Inhouse Repository</name> <url>http://10.8.0.1:8001/maven2</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors> <proxies/> <profiles/> <activeProfiles/> </settings>