> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/sonono/private-registries/nexus-repository.md).

# Sonatype Nexus Repository

Nexus Repository を仲介役として設定し、レジストリトラフィックを Aikido のレジストリプロキシ経由にルーティングします。Nexus は公開レジストリではなく Aikido からパッケージを取得するため、チームがインストールするすべてのパッケージがマルウェア、年齢制限、既知の脆弱性のチェックを受けます。

{% stepper %}
{% step %}

### Aikido のプロキシ URL を取得する

移動先 [設定 > レジストリプロキシ](https://app.aikido.dev/issues/fix/extended-lifecycle-support/setup-instructions)、エコシステムを選択してアップストリームプロキシ URL をコピーします

<figure><img src="/files/2182cd5f7e8192bcddbb04f4e6868812d1851b90" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Nexus でプロキシリポジトリを作成する

1. Nexus で、 **設定 > リポジトリ > リポジトリ**.
2. クリック **リポジトリを作成** そしてエコシステムを選択します。
3. リポジトリに名前を付けます。たとえば `aikido`.
4. 次の場所で **リモートストレージ**、手順 1 で取得した Aikido のプロキシ URL を貼り付けます。
5. リポジトリを保存します。

{% hint style="warning" %}
リポジトリ作成後は Remote Storage URL を変更しないでください。Nexus がキャッシュされたメタデータを整合させようとする際に、404 エラーの原因になることがあります。別のアップストリーム URL が必要な場合は、代わりに新しいプロキシリポジトリを作成してください。
{% endhint %}
{% endstep %}

{% step %}

### (任意) グループリポジトリを作成する

ホスト型 Nexus リポジトリに社内パッケージもある場合は、グループリポジトリを作成して両方を 1 つの URL で公開します:

1. 移動先 **設定 > リポジトリ > リポジトリ > リポジトリを作成** をクリックして、次を選択します: **aikido**
2. ホスト型リポジトリとプロキシリポジトリをメンバーとして追加します。
3. 代わりに、パッケージマネージャーをグループリポジトリの URL に向けます。

{% hint style="info" %}
グループリポジトリは Nexus Community Edition では読み取り専用です。パッケージを公開するには、常にホスト型リポジトリに直接プッシュしてください。
{% endhint %}
{% endstep %}

{% step %}

### 開発者のマシンで Nexus を使うように設定する

各開発者のパッケージマネージャーを Nexus リポジトリに向けてください。認証設定を含む正確な手順は、Sonatype のドキュメントを参照してください:

{% tabs %}
{% tab title="npm" %}
[npm の設定](https://help.sonatype.com/en/configuring-npm.html)
{% endtab %}

{% tab title="PyPI" %}
[PyPI の設定](https://help.sonatype.com/en/configure-pypi-with-nexus.html)
{% endtab %}

{% tab title="Maven" %}
[Maven の設定](https://help.sonatype.com/en/maven-repositories.html)
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### (任意) Device Protection で公開レジストリをブロックする

Nexus を導入しても、開発者はパッケージマネージャーを公開レジストリに直接向けることで、引き続きこれを回避できます。すべてのトラフィックがプライベートレジストリを通るように強制するには、Aikido Device Protection を導入してください。

{% content-ref url="/pages/7fa47c5a1ee5b3c664f0ab37ca9a23372513ddeb" %}
[公開パッケージレジストリをブロック](/docs/docs-ja/aikido-device-protection/using-aikido-endpoint/block-public-package-registries.md)
{% endcontent-ref %}
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/sonono/private-registries/nexus-repository.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
