adobe / aem-core-forms-components

Apache License 2.0
26 stars 50 forks source link

Forms project generated from archetype has core apps package replacing af apps components path on installation #1325

Closed shravanthprasad closed 1 month ago

shravanthprasad commented 1 month ago

Actual Behaviour

Forms project generated from archetype has core apps package replacing af apps components path on installation

image

This results in form not loading with resource not found error.

rismehta commented 1 month ago

Are you using the latest version of archetype, version 49, to generate your project? This issue was resolved long back

rismehta commented 1 month ago

@shravanthprasad For release/650, both apps and af-apps are included in the archetype project. If there's an override, you can temporarily re-install the af-apps. Could you also provide the exact steps for the override? The installation order and conflicting vault filter rules could be influencing this issue.

shravanthprasad commented 1 month ago

@rismehta - I think it is the conflicting vault filter rules. We are reinstalling the af-apps package now after we updated to the v1.1.38. `

project
                <packageType>container</packageType>
                <!-- skip sub package validation for now as some vendor packages like CIF apps will not pass -->
                <skipSubPackageValidation>true</skipSubPackageValidation>
                <embeddeds>
                    <embedded>
                        <groupId>project</groupId>
                        <artifactId>form-project.ui.apps</artifactId>
                        <type>zip</type>
                        <target>/apps/form-project-packages/application/install</target>
                    </embedded>
                    <embedded>
                        <groupId>project</groupId>
                        <artifactId>form-project.core</artifactId>
                        <target>/apps/form-project-packages/application/install</target>
                    </embedded>
                    <embedded>
                        <groupId>project</groupId>
                        <artifactId>form-project.ui.content</artifactId>
                        <type>zip</type>
                        <target>/apps/form-project-packages/content/install</target>
                    </embedded>
                    <embedded>
                        <groupId>project</groupId>
                        <artifactId>form-project.ui.config</artifactId>
                        <type>zip</type>
                        <target>/apps/form-project-packages/application/install</target>
                    </embedded>
                    <embedded>
                        <groupId>com.adobe.aem</groupId>
                        <artifactId>core-forms-components-af-apps</artifactId>
                        <type>zip</type>
                        <target>/apps/form-project-vendor-packages/application/install</target>
                    </embedded>
                    <embedded>
                        <groupId>com.adobe.aem</groupId>
                        <artifactId>core-forms-components-af-core</artifactId>
                        <target>/apps/form-project-vendor-packages/application/install</target>
                    </embedded>
                    <embedded>
                        <groupId>com.adobe.aem</groupId>
                        <artifactId>core-forms-components-apps</artifactId>
                        <type>zip</type>
                        <target>/apps/form-project-vendor-packages/application/install</target>
                    </embedded>
                    <embedded>
                        <groupId>com.adobe.aem</groupId>
                        <artifactId>core-forms-components-core</artifactId>
                        <target>/apps/form-project-vendor-packages/application/install</target>
                    </embedded>
                </embeddeds>
            </configuration>`
rismehta commented 1 month ago

I have raised a PR to fix this, https://github.com/adobe/aem-core-forms-components/pull/1326

shravanthprasad commented 1 month ago

Thanks @rismehta