---
schema_version: "1"
id: ec22b079fa6886862f6999d2d384989b445d4705ed5cf586aff87fc837b24279
title: ワークスペースの更新
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/studio/7.x/update-workspace.md
canonical_url: https://docs.mulesoft.com/jp/studio/7.x/update-workspace
source_site: docs.mulesoft.com
content_type: documentation
content_hash: a5b0eb907a2305412485df698a0f613c87fd7c183acaa1647f72445d9a797c98
description: MuleSoft Documentation Site
release: 7.x
latest: false
---
# ワークスペースの更新

Anypoint Studio が新しいワークスペースで最初に実行されると、そのワークスペースでプロジェクトのコンポーネントが更新済みで、最新の Studio 7.12.0 要件に準拠していることを検証します。

ワークスペースを手動で検証するには、​**\[Help (ヘルプ)\]**​ > ​**\[Validate workspace compatibility (ワークスペースの互換性の検証)\]**​ に移動します。

![実行できる更新を選択するためのダイアログボックス。](/mulesoft/current/ja-jp/studio/7.x/_images/update-workspaces.png)

<table><tbody><tr><td><i class="conum" data-value="1"></i><b>1</b></td><td>ワークスペース内で開いているプロジェクトのうち、Mule Maven プラグインの更新が必要なすべてのプロジェクトがリストされます。</td></tr><tr><td><i class="conum" data-value="2"></i><b>2</b></td><td>ワークスペース内で開いているプロジェクトのうち、更新済み Exchange リポジトリの追加が必要なすべてのプロジェクトをリストします。</td></tr><tr><td><i class="conum" data-value="3"></i><b>3</b></td><td><strong>[Perform update (更新の実行)]</strong>​ を選択すると、選択したプロジェクトの ​<code>pom.xml</code>​ ファイルでリポジトリが更新されます。</td></tr></tbody></table>

## [](#update-7.1-workspace)Studio 7.1.x 以前のバージョンで作成されたワークスペースでの Mule Maven プラグインの更新

Studio では ​`mule-artifact.json`​ ファイルの設定が簡略化されています。Mule アプリケーションをパッケージ化する場合、このファイルを使用して、アプリケーションのクラスローダーの構成および設定、およびアプリケーションの実行に必要な最小 Mule Runtime Engine バージョンを特定します。

Studio には、この必須メタデータの一部を自動的に推定できる新しいバージョンの Mule Maven プラグインが含まれます。これにより、リソースをエクスポートする場合に必要なすべての宣言を容易に追跡できます。

<table class="tableblock frame-all grid-all fit-content spread">
<colgroup>
<col>
<col>
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">7.1.x の ​<strong>mule-artifact.json</strong></th>
<th class="tableblock halign-left valign-top">7.12 の ​<strong>mule-artifact.json</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">{
  "configs": [
    "ch-usage-sync.xml"
  ],
  "redeploymentEnabled": true,
  "name": "ch-usage-sync",
  "minMuleVersion": "4.0.0",
  "requiredProduct": "MULE_EE",
  "classLoaderModelLoaderDescriptor": {
    "id": "mule",
    "attributes": {
      "exportedResources": []
    }
  },
  "bundleDescriptorLoader": {
    "id": "mule",
    "attributes": {}
  }
}</code></pre>
</div>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">{
  "minMuleVersion": "4.0.0",
}</code></pre>
</div>
</div></div></td>
</tr>
</tbody>
</table>

この簡略化により、開発中に監視する必要がある宣言の数が少なくなります。パッケージ化されたアプリケーションを実行する場合には、完全に設定された ​`mule-artifact.json`​ ファイルも Mule Runtime Engine で必要になります。生成された ​`mule-artifact.json`​ ファイルは、パッケージ化後に ​`target`​ ディレクトリ内で見つけることができます。

このプラグインは、​`mule-artifact.json`​ で宣言されたメタデータを調べます。値が宣言されていない場合、このプラグインは、パッケージ化の前にアプリケーションコードから値を推定します。他のメタデータが宣言されている場合、このプラグインはその情報を使用してアプリケーションをパッケージ化します。

最新のプラグインに更新しつつ、古い記述子ファイルを保持する場合は、記述子メタデータを手動で監視する必要があります。

Studio 7.1.x 以前を使用して作成されたワークスペースを更新すると、Studio は既存の ​`mule-artifact.json`​ ファイルを上書きします。保持する必要がある他の宣言 (​`secureProperties`​ や ​`redeploymentEnabled`​ など) が ​`mule-artifact.json`​ に含まれる場合、ワークスペースの外部でそれらのファイルをバックアップし、移行を実行した後で古い ​`mule-artifact.json`​ ファイルを復元します。

次の宣言は保持しないでください。

- `configs`
- `name`
- `requiredProduct`
- `classLoaderModelLoaderDescriptor`
- `bundleDescriptorLoader`

## [](#exchange-dependency-update)Studio 7.11.x 以前のバージョンで作成されたワークスペースでの Exchange の更新

Anypoint Studio 7.12 では、Exchange へのアセットの包括的なパブリッシュがサポートされるようになったため、プロジェクトで Anypoint Exchange の新しいバージョンへの連動関係を追加する必要があります。

7.12 より前のバージョンで作成したプロジェクトを開くと、この新しいリポジトリがプロジェクトの pom.xml ファイルに追加されます。

```XML
<repository>
  <id>anypoint-exchange-v3</id>
  <name>Anypoint Exchange V3</name>
  <url>https://maven.anypoint.mulesoft.com/api/v3/maven</url>
  <layout>default</layout>
</repository>
```

Exchange への最新のパブリッシュプロセスの利点を活用するためには、この新しいリポジトリを追加する必要があります。

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

- [Mule アプリケーションのパッケージ](https://docs.mulesoft.com/mule-runtime/latest/mmp-concept#mule-application-packaging)
- [クラス読み込みの分離](https://docs.mulesoft.com/mule-runtime/latest/about-classloading-isolation)