> 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/kdosukyan/scanning-practices/vulnerability-scanning-on-private-packages-maven.md).

# プライベートパッケージの脆弱性スキャン - Maven

Aikido にプライベート Maven パッケージを含むリポジトリ内の依存関係をスキャンさせる場合、Aikido からもそのプライベートパッケージにアクセスできる必要があります。これに対して、Aikido でプライベート Maven の settings.xml 設定を指定できるようになりました。

## 前提条件 <a href="#prerequisites" id="prerequisites"></a>

**settings.xml を準備する**

プライベート Maven パッケージでは、Aikido はプライベートレジストリへの認証に settings.xml ファイルを使用します。

mvnrepository レジストリ上のプライベートパッケージにアクセスするための settings.xml の例:

```
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
  <servers>
    <server>
      <id>your-repository-id</id>
      <username>your-username</username> <!-- オプションです。ダミー値のままでも構いません -->
      <password>ACCESS_TOKEN</password>
    </server>
  </servers>
</settings>
```

**pom.xml ファイルに以下が含まれていることを確認してください** `releases` **または** `snapshots` **有効です**

```xml
    <repositories>
        <repository>
            <id>your-repository-id</id>
            <url>https://...</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>
```

## Aikido での設定 <a href="#configuration-in-aikido" id="configuration-in-aikido"></a>

前提条件が満たされたら、以下の手順に従って、依存関係を更新する際に Aikido がプライベート NuGet レジストリに認証できるように設定できます:

1. アカウントの [**設定 > リポジトリ ページ**](https://app.aikido.dev/settings/integrations/repositories) Aikidoで。
2. クリック **アクション** > **プライベートレジストリ接続**.

   ![リポジトリ設定とプライベートレジストリ接続オプションを表示するドロップダウンメニュー。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-556364bbe45c72cbe95a08f4ac31121195688e9c%2Fucarecdn-1356fd30-36b4-4a0d-bccf-09a16d10161e.png?alt=media)
3. 次を選択します: **Maven** タブで、settings.xml の内容をここに貼り付けてください。

   ![settings.xml 設定スニペットを使用した Maven のプライベートレジストリ接続の設定。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-010b0333b74900b8f9f1ddfe34172c333d75c80a%2Fucarecdn-5f13416f-6fdb-4d47-b80f-987ee3d84921.png?alt=media)
4. クリック **変更を適用** 設定を保存します。
5. 次回以降のスキャンでは、この settings.xml が Aikido によって使用されます。


---

# 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/kdosukyan/scanning-practices/vulnerability-scanning-on-private-packages-maven.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.
