---
schema_version: "1"
id: ad7e07f30963d0e5318897b416a2c96dd9d86da96d60296d1292a2f1554a08da
title: Einstein AI Connector 1.1 の XML と Maven のサポート
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/einstein-ai-connector/1.1/einstein-ai-connector-xml-maven.md
canonical_url: https://docs.mulesoft.com/jp/einstein-ai-connector/1.1/einstein-ai-connector-xml-maven
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 23582626a4c2ad9fdeefebad3006d1225c2d3b4b14e770e803151b73c8b1fda2
description: MuleSoft Documentation Site
release: "1.1"
latest: false
---
# Einstein AI Connector 1.1 の XML と Maven のサポート

Unresolved include directive in modules/ROOT/pages/einstein-ai-connector-xml-maven.adoc - include::connectors::partial$t-xml-maven-partial.adoc\[\]

## [](#コネクタの名前空間の追加)コネクタの名前空間の追加

次のコードを設定 XML のヘッダーの ​`mule`​ タグ内に貼り付けます。

```xml
http://www.mulesoft.org/schema/mule/ms-einstein-ai
http://www.mulesoft.org/schema/mule/ms-einstein-ai/current/mule-ms-einstein-ai.xsd
```

次の例は、​`<mule>`​ XML ブロック内に名前空間ステートメントが配置される方法を示しています。

```xml
<mule xmlns:ms-einstein-ai="http://www.mulesoft.org/schema/mule/ms-einstein-ai"
    xmlns:http="http://www.mulesoft.org/schema/mule/http"
	xmlns="http://www.mulesoft.org/schema/mule/core"
	xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core
	http://www.mulesoft.org/schema/mule/core/current/mule.xsd
    http://www.mulesoft.org/schema/mule/http
	http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
    http://www.mulesoft.org/schema/mule/ms-einstein-ai
	http://www.mulesoft.org/schema/mule/ms-einstein-ai/current/mule-ms-einstein-ai.xsd">
```

## [](#pom-ファイルの連動関係の追加)POM ファイルの連動関係の追加

Apache Maven ​`pom.xml`​ ファイルは Anypoint Code Builder と Studio によって生成され、Mule アプリケーションの連動関係が含まれます。Mule アプリケーションを手動でコーディングする場合、次の XML スニペットを ​`pom.xml`​ ファイルに含めてこのコネクタにアクセスできるようにします:

```xml
<dependency>
	<groupId>com.mulesoft.connectors</groupId>
	<artifactId>mule4-einstein-ai-connector</artifactId>
	<version>x.x.x</version>
	<classifier>mule-plugin</classifier>
</dependency>
```

`x.x.x`​ を使用しているコネクタに対応するバージョンに置き換えます。

最新の ​`pom.xml`​ ファイル情報を取得する手順は、次のとおりです。

1. [Anypoint Exchange](https://www.mulesoft.com/exchange/)​ に移動します。
2. Exchange で、​**\[Login (ログイン)\]**​ をクリックし、Anypoint Platform のユーザー名とパスワードを指定します。
3. Exchange で、​`「einstein ai」`​を検索します。
4. コネクタを選択します。
5. 画面の右上付近にある ​**\[Dependency Snippets (連動関係スニペット)\]**​ をクリックします。

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

- [Einstein AI Connector の概要](https://docs.mulesoft.com/jp/einstein-ai-connector/1.1/)
- [Einstein AI Connector リファレンス](https://docs.mulesoft.com/jp/einstein-ai-connector/1.1/einstein-ai-connector-reference)
- [Einstein AI Connector -追加設定](https://docs.mulesoft.com/jp/einstein-ai-connector/1.1/einstein-ai-additional-config)