cancel
Showing results for 
Search instead for 
Did you mean: 

Submission problem on Magento Marketplace

Submission problem on Magento Marketplace

While submitting my extension in Marketplace, I am getting the following error. Please help me to resolve this issue.

 

[{"php_version":"7.0.31","magento_platform":"M2","magento_edition":"EE","magento_version":"2.1","tool":"varnish","vendor":"company","extension":"extensionname","version":"2.2.5","status":"FAIL","date":"2019-07-18 12:43:19","details":[{"command":"composer require company\/extensionname:2.2.5 2>&1","output":"\n \n [Composer\\Downloader\\TransportException] \n The \"https:\/\/repo.magento.com\/packages.json\" file could not be downloaded: failed to open stream: HTTP request failed! \n \n\nrequire [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...\n\n"}]}

 

 

Prema M
1 REPLY 1

Re: Submission problem on Magento Marketplace

Before posting any module to marketplace, module must be passed with below two tools.


A. Magento Extension Quality Program Coding Standard - https://github.com/magento/marketplace-eqp

 

1. For installation of this tool, execute below command on magento root.

composer create-project --repository=https://repo.magento.com magento/marketplace-eqp magento-coding-standard

2. To use, execute below commands.
cd magento-coding-standard

for magento1 - vendor/bin/phpcs /path/to/your/extension --standard=MEQP1
for magento2 - vendor/bin/phpcs /path/to/your/extension --standard=MEQP2

It will output result.

3. To Fix errors automatically, execute below command. It will fix all fixable issues.
vendor/bin/phpcbf /path/to/your/extension --standard=MEQP2

4. Marketplace Technical Review
To make sure your extension will pass CodeSniffer checks of Magento Marketplace Technical Review, you could run phpcs command with --severity=10 option. All severity 10 errors must be fixed in order to successfully pass Level 1 CodeSniffer checks.

vendor/bin/phpcs /path/to/your/extension --standard=MEQP2 --severity=10 --extensions=php,phtml

 

B. Marketplace Tools

 

1. Clone the repository https://github.com/magento/marketplace-tools or Download the file validate_m2_package.php

2. Place your module zipped file in the same folder where you placed the previous file.
Note: To zip your package, navigate to root path of your module i.e /app/code/Vendor Name/Module Name/ and then zip your package. Make sure composer.json remains in the root path of your zipped package.

3. Execute the following command
$ <path_to_php> validate_m2_package.php -d vendor-modulename.zip

where <path_to_php> is the path to php compiler and vendor-modulename.zip should be name of your module zipped file.

for example:
php validate_m2_package.php -d modulename.zip

If my answer is helpful, please Accept as Solution & give Kudos