# Sonatype Nexusを設定

Sonatype Nexusのインストール後、Nexusに必要なリポジトリを手動で作成および設定する必要があります。

## 始める前に

Sonatype Nexusをダウンロードしてインストールします。詳細は、公式の [ダウンロード](https://help.sonatype.com/repomanager3/download/download-archives---repository-manager-3) (英語のみ)ページをご覧ください。

## Nexusを手動で設定

ロール、ユーザー、リポジトリーを手動で作成できます。

### 手順

1. まず、Nexusを実行します。
2. Sonatype Nexus Repository Managerインターフェイスに移動します。
3. [Repositories] (リポジトリー)タブに移動して、次のリポジトリーを作成します。
   * talend-updates
   * talend-custom-libs-snapshot
   * talend-custom-libs-release
   1. [Create repository] (リポジトリーを作成)をクリックします。
   2. リストからmaven2 (hosted)を選択します。
   3. リポジトリーにtalend-updatesという名前を付けます。
   4. version policyサブセクションの下で、Releaseを選択します。
   5. [Create repository] (リポジトリーを作成)をクリックし、変更を保存します。
   6. talend-custom-libs-snapshotという名前の別のmaven2 (hosted)リポジトリーを作成します。
   7. version policyサブセクションの下で、snapshotを選択します。
   8. [Create repository] (リポジトリーを作成)をクリックし、変更を保存します。
   9. 最後のmaven2 (hosted)リポジトリーを作成して、talend-custom-libs-releaseと名付けます。
4. version policyサブセクションの下で、Releaseを選択します。
5. [Roles] (ロール)タブに移動し、[Create role] (ロールを作成) &gt; [Nexus role] (Nexusロール)をクリックして、以下の権限が追加されている[Given] (付与済み)リストに次のロールを作成します。
   | オプション | 説明 |
   | --- | --- |
   | **[Role ID] (ロールID)** | **権限** |
   | talend-updates-admin | nx-repository-view-maven2-talend-updates-add<br><br>nx-repository-view-maven2-talend-updates-browse<br><br>nx-repository-view-maven2-talend-updates-edit<br><br>nx-repository-view-maven2-talend-updates-read<br><br>nx-script-\*-run |
   | talend-updates-read-only | nx-repository-view-maven2-talend-updates-read<br><br>nx-repository-view-maven2-talend-updates-browse<br><br>nx-script-\*-run |
   | talend-custom-libs-admin | nx-repository-view-maven2-talend-custom-libs-release-add<br><br>nx-repository-view-maven2-talend-custom-libs-release-browse<br><br>nx-repository-view-maven2-talend-custom-libs-release-edit<br><br><br>nx-repository-view-maven2-talend-custom-libs-release-read<br><br>nx-repository-view-maven2-talend-custom-libs-snapshot-add<br><br>nx-repository-view-maven2-talend-custom-libs-snapshot-browse<br><br>nx-repository-view-maven2-talend-custom-libs-snapshot-edit<br><br>nx-repository-view-maven2-talend-custom-libs-snapshot-read<br><br>nx-script-\*-run |
   | talend-custom-libs-snapshot-read-only | nx-repository-view-maven2-talend-custom-libs-snapshot-browse<br><br><br>nx-repository-view-maven2-talend-custom-libs-snapshot-read<br><br>nx-script-\*-run |
   | talend-custom-libs-release-read-only | nx-repository-view-maven2-talend-custom-libs-release-browse<br><br>nx-repository-view-maven2-talend-custom-libs-release-read<br><br>nx-script-\*-run |
6. [Users] (ユーザー)タブの下に、次のユーザーを作成します:
   * talend-updates-admin: このユーザーは、Talend Administration Centerの[Configuration] (設定) &gt; [Software Update] (ソフトウェアアップデート)グループで使われます。Talend Administration CenterはTalend Update Serverからパッチをダウンロードし、このアカウントを使ってNexusにパッチをアップロードします。Talend Studioは、認証情報なしでNexusからパッチをダウンロードできます。
   * talend-custom-libs-admin: このユーザーはTalend Administration Centerの[Configuration] (設定) &gt; [User Libraries] (ユーザーライブラリー)グループで使われます。Talend StudioはTalend Administration Centerから設定情報を取得し、サードパーティライブラリーをダウンロードおよびアップロードします。
   1. [Create local user] (ローカルユーザーを作成)をクリックします。
   2. talend-updates-adminをIDとして書き込んで、他の必要なフィールドに入力します。
   3. Rolesサブセクションに移動して、talend-updates-adminを[Granted] (付与済み)リストに追加します。
   4. [Create local user] (ローカルユーザーを作成)をクリックします。
   5. talend-custom-libs-admin IDを使うユーザーを作成します。
   6. Rolesサブセクションに移動して、talend-custom-libs-adminを[Granted] (付与済み)リストに追加します。
   7. adminユーザーを開きます。
   8. [Granted] (付与済み)リストにnx-adminロールを追加します。
   9. anonymousユーザーを開きます。
   10. nx-anonymousロール、talend-custom-libs-release-read-onlyロール、talend-custom-libs-snapshot-read-onlyロール、talend-updates-read-onlyロールを[Granted] (付与済み)リストに追加します。

       情報メモ重要: 匿名ユーザーは不安全で、Talend Administration CenterまたはTalend Studioで使われません。Nexusで、匿名ユーザーを無効化することをお勧めします。

### 次のタスク

Nexusリポジトリーがインストールされて起動したら、Talend Administration Centerの[Configuration] (設定)ページに移動し、作成されたリポジトリーの設定内容を追加します。詳細は、[Setting up Software Update parameters](https://help.qlik.com/talend/en-US/administration-center-user-guide/8.0/setting-up-software-update-parameters)、[Setting up the artifact repository parameters](https://help.qlik.com/talend/en-US/administration-center-user-guide/8.0/setting-up-artifact-repository-parameters)、[Setting up the user library location](https://help.qlik.com/talend/en-US/administration-center-user-guide/8.0/setting-up-user-library-location)をご覧ください。