Giter VIP home page Giter VIP logo

mvn-up's Introduction

Greetings traveler!🧙‍♂️👋

Making stuff and such!

mvn-up's People

Contributors

auo avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

mvn-up's Issues

md5 and sha1 checksum mismatch

I use mvn-up to upload portlet jar artifact to nexus.
The file of the hash (md5 and sha1) uploaded into nexus does not match with the hash computed by nexus itself.

In jar attributes I see the correct hash;

Checksum

sha1 1ff0114697293b768f39e3488c9f877231f170e0
md5 e6413df561e21d9e64dd7daccab98ed2

The sha1 file uploaded contains a9ceab9748921246b5dc46ded5835e7e9b948d3e and md5 file contains ace03f005c056a89bd2cc4d5f8c174ed.

md5 and sha1 check files are sent before artifact file

Hi,

I use mvn-up to deploy a .zip artifact to a private JFrog artifactory.
However, JFrog responds with Http 404 Not Found.

I noticed that mvn-up sends the check-files (md5 and sha1) before the actual artifact file, so it tries to send the files in this order:
myartifact.zip.md5
myartifact.zip.sha1
myartifact.zip
leading to the 404-Response from JFrog when receiving the md5-file. (I guess JFrog is looking for a matching artifact when it receives a checksum)

When I change the order of the sent files in maven-upload.js by switching these lines (linenumber 38 and 40):

        files.push({ path: artifactPath, content: null, location: file });
        await createCheckFiles(fs.createReadStream(file), artifactPath, files);

the upload to JFrog works fine.

Could you please change the order, so the upload works in JFrog?

Thank you in advance,
Christian

generate single pom file for many artifacts

Current implementation alwasy creates pom.xml file for single upload invocation. This works well when there is only one artifact for given groupId and artifactId. However, maven repository allows to upload many artifacts using classifier concept e.g. test, javadoc etc.
Currently, it is impossible to execute many upload for the same groupId and artifactId with different classifier because pom.xml is created for 1st upload - assuming this is release repository and override is disabled.

How to improve it? Give possibility to upload many artifact as single invocation or flat to not generate pom.xml.

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.