GithubHelp home page GithubHelp logo

isabella232 / nxrm-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sonatype-nexus-community/nxrm-cli

0.0 0.0 0.0 31 KB

Main purpose of this tool is to ease upload of multiple packages to different NXRM repositories using automatic jobs.

License: Eclipse Public License 2.0

Shell 0.54% Java 99.46%

nxrm-cli's Introduction

Nxrm Command Line Application

Main purpose of this tool is to ease upload of multiple packages to different NXRM repositories using automatic jobs.

This is just the proof of concept, feel free to write issues/suggestions.

Supported formats for now:

  • yum
  • apt
  • npm
  • rubygems
  • nuget
  • pypi

Usage

Use help command to show all commands and options of the tool.

java -jar ./nxrm-cli-jar-with-dependencies.jar help

User flow example:

Uploading files from debian folder to local APT hosted repository:

java -jar ./nxrm-cli-jar-with-dependencies.jar add --path=/Users/MyUser/Desktop/debian --changelist-name=apt-test --pattern=".*.deb"

java -jar ./nxrm-cli-jar-with-dependencies.jar status

java -jar ./nxrm-cli-jar-with-dependencies.jar config --add-repo=apt-test-hosted --format=apt --nexus-host=http://localhost:1234/ --user=user --password=password

java -jar ./nxrm-cli-jar-with-dependencies.jar push --repo-name=apt-test-hosted --changelist-name=apt-test --tag=testUpload

Issues

During PoC implementation some issues were faced:

  • Component API has limited supported repository format types.
  • To upload asset/component for some repositories format-specific data must be calculated on client side. For example, to upload maven2 component, group, name and version must be extracted from package to be provided during upload.

Suggestions to implement on Nexus side:

  • Cover all repository formats in component API.
  • Extract format-specific data utils to be used in CLI application (by creating some API or extracting to another module to be added to CLI as dependency).
  • Implement multiple file upload API.

Suggestions to implement on the CLI tool side:

  • Replace CLI code with some library (Apache Commons CLI, for example).
  • Consider improving project architecture.

nxrm-cli's People

Contributors

jlstephens89 avatar maksyche avatar scherzhaft avatar

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.