Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

Hi All, The build in cloud failed with the error Unable to read manifest file (invalid manifest format) -> [Help 1]

Avatar

Level 1

I am performing the build on the cloud in a development environment, and the build fails in the package structure with the message "Unable to read manifest file (invalid manifest format) -> [Help 1]." In the local environment, everything works correctly and as expected. I believe that this message is not the actual issue but that the problem lies elsewhere. The project has two folders, 'ui.frontend' and 'ui.frontend.sites.' Additionally, it is configured with JCR and filters.xml. I have also tried running the 'mvn clean package' command, which, according to the documentation, triggers the cloud build, but locally, there are no issues. I have also verified that there are no dependencies accessible only from my local environment. Thank you for any suggestions.

1 Accepted Solution

Avatar

Correct answer by
Level 1

It was actually not an AEM-related problem, but was simply incorrect formatting of the manifest file java, so I simply reformatted the file without the spaces that my editor was adding automatically and solved the problem.

View solution in original post

4 Replies

Avatar

Community Advisor

@ast_markgiul_77 are you getting error in ui.apps.structure? It could be because of overlap in filter.xml in your two frontend modules.

Avatar

Level 1

Hi, @Shashi_Mulugu , thanks for your reply, Since I am new to AEM, could you give me more details? Also because locally everything works properly, these are my package apps filters:

<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
    <filter root="/apps/first-app/clientlibs"/>
    <filter root="/apps/first-app/components"/>
    <filter root="/apps/first-app/i18n"/>
    <filter root="/apps/cq"/>
    <filter root="/apps/granite"/>
    <filter root="/apps/second-app/clientlibs"/>
    <filter root="/apps/second-app/components"/>
    <filter root="/apps/second-app/i18n"/>
</workspaceFilter>

 and this is the part of POM when declare the apps filters for the ui.structures:

<filters>
                        <!-- /apps root -->
                        <filter>
                            <root>/apps</root>
                        </filter>
                        <filter>
                            <root>/apps/first-app</root>
                        </filter>
                        <filter>
                            <root>/apps/second-app</root>
                        </filter>

                        <!-- Common overlay roots -->
                        <filter>
                            <root>/apps/sling</root>
                        </filter>
                        <filter>
                            <root>/apps/cq</root>
                        </filter>
                        <filter>
                            <root>/apps/dam</root>
                        </filter>
                        <filter>
                            <root>/apps/wcm</root>
                        </filter>
                        <filter>
                            <root>/apps/msm</root>
                        </filter>

                        <!-- Immutable context-aware configurations -->
                        <filter>
                            <root>/apps/settings</root>
                        </filter>

                        <!-- DAM folder root, will be created via repoinit -->
                        <filter>
                            <root>/content/dam/first-app</root>
                        </filter>

                    </filters>

thanks a lot

Avatar

Administrator

@ast_markgiul_77 If you have found out solution yourself, please share it with the community. 



Kautuk Sahni

Avatar

Correct answer by
Level 1

It was actually not an AEM-related problem, but was simply incorrect formatting of the manifest file java, so I simply reformatted the file without the spaces that my editor was adding automatically and solved the problem.