バージョン | 記事リンク |
---|---|
AEM 6.5 | ここをクリックしてください |
AEM as a Cloud Service | この記事 |
AEM Formsas a Cloud ServiceのアダプティブFormsコアコンポーネントを有効にすると、AEM FormsCloud Serviceインスタンスを使用して、複数のチャネルに対して、アダプティブFormsおよびヘッドレスFormsベースのコアコンポーネントの作成、公開、配信を開始できます。 ヘッドレスアダプティブフォームを使用するには、アダプティブフォームコアコンポーネントを有効にした環境が必要です。
新しいAEM Formsas a Cloud Serviceプログラムを作成する場合、 アダプティブFormsコアコンポーネントとヘッドレスアダプティブFormsは、お使いの環境で既に有効になっています.
古い Forms as a Cloud Service プログラム(コアコンポーネントが有効になっていない)がある場合は、アダプティブフォームコアコンポーネントの依存関係を追加し、そのリポジトリを Cloud Service 環境にデプロイしてヘッドレスアダプティブフォームを有効にすることができます。
既存のCloud Service環境で コアコンポーネントベースのアダプティブFormsの作成、アダプティブFormsコアコンポーネントとヘッドレスアダプティブFormsは、お使いの環境で既に有効になっており、コアコンポーネントベースのアダプティブFormsを、Adaptive Formsのヘッドレス表現を必要とするモバイル、Web、ネイティブアプリ、サービスなどのチャネルにヘッドレスフォームとして提供できます。
AEM Formsas a Cloud Service環境でアダプティブFormsコアコンポーネントとヘッドレスアダプティブFormsを有効にするには、次の手順を上の順に実行します
Cloud Manager にログインし、組織とプログラムを選択します。
プログラムの概要ページからパイプラインカードに移動し、「リポジトリ情報にアクセス」ボタンをクリックして、Git リポジトリにアクセスして管理します。このページには以下の情報が含まれます。
「パスワードを生成」をクリックして、パスワードを表示または生成します。
ローカルコンピューターでターミナルまたはコマンドプロンプトを開いて、次のコマンドを実行します。
git clone [Git Repository URL]
プロンプトが表示されたら、資格情報を入力します。リポジトリがローカルコンピューターに複製されます。
プレーンテキストコードエディターで Git リポジトリフォルダーを開きます。例:VS Code
[AEM Repository Folder]\pom.xml
ファイルを編集用に開きます。
core.forms.components.version
、core.forms.components.af.version
および core.wcm.components.version
のコンポーネントのバージョンを、コアコンポーネントのドキュメントで指定されているバージョンに置き換えます。コンポーネントが存在しない場合は、これらのコンポーネントを追加します。
<!-- Replace the version with the latest released version at https://github.com/adobe/aem-core-forms-components/tags -->
<properties>
<core.wcm.components.version>2.22.10</core.wcm.components.version>
<core.forms.components.version>2.0.18</core.forms.components.version>
<core.forms.components.af.version>2.0.18</core.forms.components.af.version>
</properties>
[AEM Repository Folder]\pom.xml
ファイルの依存関係セクションに次の依存関係を追加し、ファイルを保存します。
<!-- WCM Core Component Examples Dependencies -->
<dependency>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.examples.ui.apps</artifactId>
<type>zip</type>
<version>${core.wcm.components.version}</version>
</dependency>
<dependency>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.examples.ui.content</artifactId>
<type>zip</type>
<version>${core.wcm.components.version}</version>
</dependency>
<dependency>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.examples.ui.config</artifactId>
<version>${core.wcm.components.version}</version>
<type>zip</type>
</dependency>
<!-- End of WCM Core Component Examples Dependencies -->
<!-- Forms Core Component Dependencies -->
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-core</artifactId>
<version>${core.forms.components.version}</version>
</dependency>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-apps</artifactId>
<version>${core.forms.components.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-af-core</artifactId>
<version>${core.forms.components.version}</version>
</dependency>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-af-apps</artifactId>
<version>${core.forms.components.version}</version>
<type>zip</type>
</dependency>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-examples-apps</artifactId>
<type>zip</type>
<version>${core.forms.components.version}</version>
</dependency>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-examples-content</artifactId>
<type>zip</type>
<version>${core.forms.components.version}</version>
</dependency>
<!-- End of AEM Forms Core Component Dependencies -->
[AEM Repository Folder]/all/pom.xml
ファイルを編集用として開きます。次の依存関係を <embeddeds>
セクションに追加し、ファイルを保存します。
<!-- WCM Core Component Examples Dependencies -->
<!-- inside plugin config of filevault-package-maven-plugin -->
<!-- embed wcm core components examples artifacts -->
<embedded>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.examples.ui.apps</artifactId>
<type>zip</type>
<target>/apps/${appId}-vendor-packages/content/install</target>
</embedded>
<embedded>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.examples.ui.content</artifactId>
<type>zip</type>
<target>/apps/${appId}-vendor-packages/content/install</target>
</embedded>
<embedded>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.examples.ui.config</artifactId>
<type>zip</type>
<target>/apps/${appId}-vendor-packages/content/install</target>
</embedded>
<!-- embed forms core components artifacts -->
<embedded>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-af-apps</artifactId>
<type>zip</type>
<target>/apps/${appId}-vendor-packages/application/install</target>
</embedded>
<embedded>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-af-core</artifactId>
<target>/apps/${appId}-vendor-packages/application/install</target>
</embedded>
<embedded>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-examples-apps</artifactId>
<type>zip</type>
<target>/apps/${appId}-vendor-packages/content/install</target>
</embedded>
<embedded>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-examples-content</artifactId>
<type>zip</type>
<target>/apps/${appId}-vendor-packages/content/install</target>
</embedded>
${appId}
を appId に置き換えます。
${appId}
を見つけるには、[AEM Repository Folder]/all/pom.xml
ファイル内で -packages/application/install
を検索します。-packages/application/install
の前のテキストが ${appId}
です。例えば、次のコードは myheadlessform
が ${appId}
です。
com.myheadlessform
myheadlessform.ui.apps
zip
/apps/myheadlessform-packages/application install
[AEM Repository Folder]/all/pom.xml
ファイルの <dependencies>
セクションに、次の依存関係を追加し、ファイルを保存します。
<!-- Other existing dependencies -->
<!-- wcm core components examples dependencies -->
<dependency>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.examples.ui.apps</artifactId>
<type>zip</type>
</dependency>
<dependency>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.examples.ui.config</artifactId>
<type>zip</type>
</dependency>
<dependency>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.examples.ui.content</artifactId>
<type>zip</type>
</dependency>
<!-- forms core components dependencies -->
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-af-apps</artifactId>
<type>zip</type>
</dependency>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-examples-apps</artifactId>
<type>zip</type>
</dependency>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-examples-content</artifactId>
<type>zip</type>
</dependency>
[AEM Repository Folder]/ui.apps/pom.xml
を開いて編集します。af-core bundle
依存関係を追加し、ファイルを保存します。
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-af-core</artifactId>
</dependency>
次のアダプティブフォームのコアコンポーネントアーティファクトがプロジェクトに含まれていないことを確認します。
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-apps</artifactId>
</dependency>
および
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>core-forms-components-core</artifactId>
</dependency>
ファイルを保存して閉じます。
更新したコードをローカル開発環境とCloud Service環境にデプロイして、両方の環境でコアコンポーネントを有効にします。
コマンドプロンプトまたはターミナルを開きます。
Git リポジトリープロジェクトのルートディレクトリに移動します。
次のコマンドを実行して、環境用のパッケージをビルドします。
mvn clean install
パッケージが正常にビルドされたら、次の場所で見つけることができます。 [Git リポジトリフォルダー]\all\target[appid].all-[version].zip
以下を使用します。 パッケージマネージャー をデプロイするには [AEM Archetype プロジェクトフォルダー]\all\target[appid].all-[version]ローカル開発環境の.zip パッケージ。
ターミナルまたはコマンドプロンプトを開きます。
[AEM Repository Folder]
に移動し、次のコマンドを順番に実行します。
git add pom.xml
git add all/pom.xml
git add ui.apps/pom.xml
git commit -m "Added dependencies for Adaptive Forms Core Components"
git push origin
ファイルが Git リポジトリにコミットされた後、パイプラインを実行します。
パイプラインが正常に実行されると、対応する環境でアダプティブフォームのコアコンポーネントが有効になります。また、アダプティブフォーム(コアコンポーネント)テンプレートと Canvas 3.0 テーマが、Forms as a Cloud Service 環境に追加され、コアコンポーネントベースのアダプティブフォームをカスタマイズして作成するオプションが提供されます。
コアコンポーネントは、AEM で web サイトの開発時間を短縮しメンテナンスコストを削減するための、標準化された web コンテンツ管理(WCM)コンポーネントのセットです。
お使いの環境でアダプティブフォームのコアコンポーネントを有効にすると、空白のコアコンポーネントベースのアダプティブフォームテンプレートと Canvas 3.0 テーマが環境に追加されます。お使いの環境でアダプティブフォームのコアコンポーネントを有効にすると、次の操作を実行できます。
お使いの環境でアダプティブフォームのコアコンポーネントが有効になっていることを確認するには、次の操作を行います。
AEM Forms Cloud Service Git リポジトリの [AEM Repository Folder]/all/pom.xml
ファイルを開きます。
次の依存関係を検索します。
依存関係が存在する場合、お使いの環境でアダプティブフォームのコアコンポーネントが有効になります。