> 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> <!-- Optional, you can leave this as a dummy value -->
      <password>ACCESS_TOKEN</password>
    </server>
  </servers>
</settings>
```

**pom.xml ファイルに次が含まれていることを確認してください** `リリース` **または** `スナップショット` **有効です**

```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. をクリック **アクション** > **プライベートレジストリ接続**.

   ![リポジトリ設定とプライベートレジストリ接続のオプションを表示するドロップダウンメニュー。](/files/50928569dbd346fcbcdc4123f0fd6b74d95bb494)
3. 次を選択します **Maven** タブを開き、settings.xml の内容をここに貼り付けてください。

   ![settings.xml 設定スニペットを使用した Maven のプライベートレジストリ接続のセットアップ。](/files/6307fcae09d3cec165ca3ce3295bbe224c798e56)
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.
