Code Monkey home page Code Monkey logo

Comments (2)

DarthHater avatar DarthHater commented on May 29, 2024

Well, it's certainly interesting:

https://github.com/sonatype-nexus-community/nexus-repository-composer/blob/master/src/main/java/org/sonatype/nexus/repository/composer/internal/ComposerProxyFacetImpl.java#L164

That seems to indicate there is no payload in the response.

I would set a breakpoint in there at that line and examine the response object to see what you are getting from the remote. My guess is a 403 or something akin.

NOTE: if you run Nexus Repo with the flag debug, you should be able to connect using IntelliJ, etc... and debug the plugin

Not sure how handy you are with Java, etc... but figured I'd pop some info in on how to debug this and get a bit more info.

from nexus-repository-composer.

roodkcab avatar roodkcab commented on May 29, 2024

did u create a private repo using satis? if that so then u have to parse include.json and transform it into /package/list.json for list all your projects, and a /p/%package%.json for a single one.

`location =/packages/list.json {
rewrite ^/(.*)$ /index.php?a=list last;
}

location ~ /p/ {
rewrite ^/p/(.*).json$ /index.php?a=p&p=$1 last;
}`

`<?php
$packages = json_decode(file_get_contents(dirname(FILE) . '/packages.json'), true);
foreach ($packages['includes'] as $k => $v) {
$includes = json_decode(file_get_contents(dirname(FILE) . "/{$k}"), true);
}

header('Content-Type: application/json');
switch($_GET['a']) {
case 'list':
echo json_encode(['packageNames' => array_keys($includes['packages'])]);
break;
case 'p':
$p = $_GET['p'];
echo json_encode(['packages' => [$p => $includes['packages'][$p]]]);
break;
}`

and since satis use tar instead of zip for package, u have to add tarball parser to nexus-composer
I upload such change to https://github.com/roodkcab/nexus-repository-composer.

from nexus-repository-composer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.