Expand my Community achievements bar.

SOLVED

Maven Archetype 26 -all module fails to install embedded package if Project is inside Folder

Avatar

Community Advisor

All module is installing the embedded packages directly under /apps, but it fails when we are changing filter.xml and Target to some folder.

Bhuwan_B_0-1653912603322.png

 

Bhuwan_B_0-1653912446051.png

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Bhuwan_B 

I did re-structured

  • Updating ui.apps (all the paths, filter.xml etc), ui.apps.structure, ui.config, ui.content

and all went well, here is the github project for you I have uploaded, have a look at it - https://github.com/sansai2011/myproject-aem-project

Screen Shot 2022-05-30 at 11.27.19 AM.png

 

Everything is deployed as per your expectation.

Hope that helps!

Regards,
Santosh

View solution in original post

6 Replies

Avatar

Community Advisor

Hi @Bhuwan_B 

It works for me!

<workspaceFilter version="1.0">
<filter root="/apps/demo/myproject-packages"/>
<filter root="/apps/demo/myproject-vendor-packages"/>
</workspaceFilter>
<embeddeds>
<embedded>
<groupId>com.myproject.aem</groupId>
<artifactId>myproject-aem-project.ui.apps</artifactId>
<type>zip</type>
<target>/apps/demo/myproject-packages/application/install</target>
</embedded>
<embedded>
<groupId>com.myproject.aem</groupId>
<artifactId>myproject-aem-project.core</artifactId>
<target>/apps/demo/myproject-packages/application/install</target>
</embedded>
<embedded>
<groupId>com.myproject.aem</groupId>
<artifactId>myproject-aem-project.ui.content</artifactId>
<type>zip</type>
<target>/apps/demo/myproject-packages/content/install</target>
</embedded>
<embedded>
<groupId>com.myproject.aem</groupId>
<artifactId>myproject-aem-project.ui.config</artifactId>
<type>zip</type>
<target>/apps/demo/myproject-packages/application/install</target>
</embedded>
<embedded>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.content</artifactId>
<type>zip</type>
<target>/apps/demo/myproject-vendor-packages/application/install</target>
</embedded>
<embedded>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.core</artifactId>
<target>/apps/demo/myproject-vendor-packages/application/install</target>
</embedded>
<embedded>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.config</artifactId>
<type>zip</type>
<target>/apps/demo/myproject-vendor-packages/application/install</target>
</embedded>
</embeddeds>

Screen Shot 2022-05-30 at 8.46.31 AM.png

What is the build error you are getting?

Regards,
Santosh

Avatar

Community Advisor

@SantoshSai: Please check if you are getting all changes inside /apps/demo/wknd(Components, Clientlibs, etc.) and other modules changes (like run modes, etc.) appearing within the folder. What I am expecting is like below (Below behavior is when you install it directly under /apps).

Bhuwan_B_0-1653915404421.png

Avatar

Community Advisor

@Bhuwan_B  for that I believe you have to restructure, all other modules(ui.apps, ui.configs etc.) also to place it under demo, because embed instruction for filevault-package-maven-plugin just club together and just install under <target>/apps/demo/myproject-packages/application/install</target> as you instructed.

Screen Shot 2022-05-30 at 9.40.46 AM.png

Avatar

Community Advisor

@SantoshSai I already tried restructuring other modules and deploying but no luck. 

Avatar

Correct answer by
Community Advisor

@Bhuwan_B 

I did re-structured

  • Updating ui.apps (all the paths, filter.xml etc), ui.apps.structure, ui.config, ui.content

and all went well, here is the github project for you I have uploaded, have a look at it - https://github.com/sansai2011/myproject-aem-project

Screen Shot 2022-05-30 at 11.27.19 AM.png

 

Everything is deployed as per your expectation.

Hope that helps!

Regards,
Santosh

Avatar

Community Advisor

Hi @Bhuwan_B ,
If your project is having ui.apps.structure module. Check filters added in the pom.xml of this module.