sonatype-nexus-community / nexus-repository-composer

Composer support for the Nexus Repository Manager (work in progress!)
Eclipse Public License 1.0
211 stars 82 forks source link

composer redirect issue #134

Open koolaji opened 1 year ago

koolaji commented 1 year ago

I want to use cache this repo with nexus composer proxy this is my composer.json example

{
    "name": "href/myrepo",
    "require-dev": {
        "nlp-tools/nlp-tools": "dev-develop"

    },
    "authors": [
        {
            "name": "NHAILA Achraf",
            "email": "achraf.nhaila@gmail.com"
        }
    ],
    "require": {
        "twbs/bootstrap": "5.0.2"
    },
    "repositories": {
        "repo-php": {
            "type": "composer",
            "url": "http://localhost:8081/repository/composer-proxy/"
        },
        "packagist": false
    }
}

composer config --global repositories.0 '{"type": "composer", "url": "http://localhost:8081/repository/packagist/"}' &&\ composer config --global disable-tls true &&\ composer config --global secure-http false &&\ composer config --global repo.packagist false &&\ composer update -vvv as I checked this packagist redirects to GitHub or other sites nexus return error code 502/404 related to the version of nexus composer Please help us to solve this problem Regards