---
schema_version: "1"
id: 506dec88c20a002ffebdaf94343cdef0d00ec4d459e7c0b658918e986e7113e0
title: 埋め込み Mule Runtime Engine バージョンのパッチ適用
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/munit/3.0/runtime-patching.md
canonical_url: https://docs.mulesoft.com/jp/munit/3.0/runtime-patching
source_site: docs.mulesoft.com
content_type: documentation
content_hash: d60798b1dbaf241bf77a2693f7ee5bf0bb1f599aecfb249a844cb1ae6dec0777
description: MuleSoft Documentation Site
release: "3.0"
latest: false
---
# 埋め込み Mule Runtime Engine バージョンのパッチ適用

MUnit でのパッチの適用は Mule Runtime Engine でのパッチの適用とは異なります。MUnit は埋め込み Mule コンテナを使用して動作します。この埋め込みコンテナでは、特定のバージョンに基づいて Mule を開始するために必要なすべての連動関係がダウンロードされます。パッチ適用済み Mule バージョン (​`4.3.0-20200727`​ など) を使用するには、そのバージョンに対して MUnit を実行するように指示する必要があります。この操作は Maven または Anypoint Studio から行うことができます。

## [](#maven)Maven を使用して MUnit にパッチを適用する

デフォルトでは、MUnit は、​`mule-artifact.json`​ ファイルで定義された ​`minMuleVersion`​ に対応する Mule バージョンに対して実行されます。​`munit-maven-plugin`​ アーティファクト設定の ​`runtimeVersion`​ 属性を使用して、このバージョンを上書きできます。

```xml
<plugin>
    <groupId>com.mulesoft.munit.tools</groupId>
    <artifactId>munit-maven-plugin</artifactId>
    <version>${munit.version}</version>
    <executions>
        <execution>
            <id>test</id>
            <phase>test</phase>
            <goals>
                <goal>test</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
      <runtimeVersion>4.3.0-20200727</runtimeVersion> (1)
    </configuration>
</plugin>
```

<table><tbody><tr><td><i class="conum" data-value="1"></i><b>1</b></td><td>この例のプレースホルダーのバージョンは、MuleSoft によって提供される各自のバージョンに置き換えてください。</td></tr></tbody></table>

## [](#studio)Studio を使用して MUnit にパッチを適用する

デフォルトでは、MUnit はプロジェクトのサーバーの Mule Runtime Engine バージョンを使用して、Anypoint Studio で実行されます。MUnit の \[Run Configuration (設定の実行)\] メニューで、パッチ適用済み Mule バージョンを指定して、このバージョンを上書きできます。

1. 上部のメニューバーで ​**\[Run (実行)\]**​、​**\[Run Configurations… (設定の実行…​)\]**​ の順に選択します。
2. **\[MUnit\]**​ の下の MUnit テストファイルを選択します。
3. **\[Advanced Settings (詳細設定)\]**​ の ​**\[Mule Runtime Version (Mule Runtime バージョン)\]**​ 項目で、使用するパッチ適用済み Mule バージョンを入力します。
    
    ![runtime patching studio](/mulesoft/current/ja-jp/munit/3.0/_images/runtime-patching-studio.png)

プロジェクトの POM ファイルで ​`runtimeVersion`​ 属性をすでに設定している場合、​**\[Load configuration from POM file (POM ファイルから設定を読み込む)\]**​ をクリックし、そのバージョンを ​**\[Mule Runtime Version (Mule Runtime バージョン)\]**​ 項目に自動的に読み込みます。

## [](#関連情報)関連情報

- [Mule Runtime リリースノート](https://docs.mulesoft.com/jp/release-notes/mule-runtime/mule-esb)
- [MUnit Maven プラグイン](https://docs.mulesoft.com/jp/munit/3.0/munit-maven-plugin)