> 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 によるリポジトリ内の private Maven パッケージを含む依存関係のスキャンを有効にする場合、Aikido が private パッケージにもアクセスできる必要があります。これのために、Aikido で private Maven の settings.xml 設定を指定できるようになりました。

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

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

private Maven パッケージの場合、Aikido は private レジストリで認証するために settings.xml ファイルを使用します。

mvnrepository レジストリ上の private パッケージにアクセスするための 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. クリック **アクション** > **プライベートレジストリ接続**.

   ![リポジトリ設定とプライベートレジストリ接続のオプションを表示するドロップダウンメニュー。](/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.
