cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to open file composer.json. Please verify the archive - Adobe comerce marketplace

SOLVED

Failed to open file composer.json. Please verify the archive - Adobe comerce marketplace

Trying to submit my extension to Adobe commerce marketplace but it keeps failing.

Screenshot 2025-04-28 at 5.56.32 PM.png

 

 

Zip module directories tree : 

app/
  code/
    vendor/
      module-name/
        registration.php
        composer.json
        etc/
          module.xml
        ... (other files/folders)

Composer.json file - 

{
    "name": "vendor/module-name",
    "description": "....",
    "type": "magento2-module",
    "version": "1.1.6",
    "license": "GPL-3.0",
    "authors": [
        {
            "name": "..."
        }
    ],
    "minimum-stability": "dev",
    "require": {},
    "autoload": {
        "files": [
            "registration.php"
        ],
        "psr-4": {
            "vendor\\module-name\\": "app/code/vendor/module-name/"
        }
    }
}

Also when I tried to zipped all the files (no parent folders), it accepted
passing in PHPCS test, failing in Installation and Varnish Test.

 

Screenshot 2025-04-28 at 5.57.55 PM.png

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Failed to open file composer.json. Please verify the archive - Adobe comerce marketplace

Hi @aloktiwari83c2 ,

 

Your zip file must contain your extension's directory directly at the root - not an extra folder layer, and it must include the composer.json at the right place.

 

YourVendorName_YourModuleName/
├── composer.json
├── registration.php
├── etc/
├── Model/
├── etc/module.xml
├── etc/di.xml
├── ... other files

 

Composer-json-Marketplace-Error-04-28-2025_06_44_PM.png

 

Currently I can see app/code/vendor/module-name in your screenshot.

Only module-name should be root when you extract zip.

 

Problem Solved? Accept as Solution!

 

Thanks

Ankit Jasani

View solution in original post

1 REPLY 1

Re: Failed to open file composer.json. Please verify the archive - Adobe comerce marketplace

Hi @aloktiwari83c2 ,

 

Your zip file must contain your extension's directory directly at the root - not an extra folder layer, and it must include the composer.json at the right place.

 

YourVendorName_YourModuleName/
├── composer.json
├── registration.php
├── etc/
├── Model/
├── etc/module.xml
├── etc/di.xml
├── ... other files

 

Composer-json-Marketplace-Error-04-28-2025_06_44_PM.png

 

Currently I can see app/code/vendor/module-name in your screenshot.

Only module-name should be root when you extract zip.

 

Problem Solved? Accept as Solution!

 

Thanks

Ankit Jasani