Coder Social home page Coder Social logo

Error on SH about mvn-repo-cleaner HOT 7 CLOSED

Narimm avatar Narimm commented on June 14, 2024
Error on SH

from mvn-repo-cleaner.

Comments (7)

techpavan avatar techpavan commented on June 14, 2024

Ensured that the .sh files by themselves do not seem to have any issues. But the released zip file, when extracted seems to have a \r character which might be causing the issue. I believe it is because a Windows machine was used to run the build process.

As I try to fix the release, you can either run the command like sh simulate.sh or run the below command to fix the file itself.

dos2unix simulate.sh simulate.sh

from mvn-repo-cleaner.

refactoror avatar refactoror commented on June 14, 2024

Can this work on Windows at all? It's my understanding that the Windows filesystem does not track access time.

from mvn-repo-cleaner.

atural91 avatar atural91 commented on June 14, 2024

Hi, I am trying to run simulate.bat but it shows me following error:

C:\Users\Tural\Downloads\mvn-repo-cleaner\src\assembly\scripts>java -jar mvn-repo-cleaner.jar -dr
Error: Unable to access jarfile mvn-repo-cleaner.jar

Could you help please?

from mvn-repo-cleaner.

techpavan avatar techpavan commented on June 14, 2024

@atural91 Seems like you are trying to run from the cloned repository. This batch file was made to be run from the release package. Can you try executing with the release zip file?

https://github.com/techpavan/mvn-repo-cleaner/releases/latest

from mvn-repo-cleaner.

atural91 avatar atural91 commented on June 14, 2024

Great!! Thank you

from mvn-repo-cleaner.

jhult avatar jhult commented on June 14, 2024

I bumped into this on macOS (using the release zip).

This explains the issue and how to resolve: https://github.com/koalaman/shellcheck/wiki/SC1017

from mvn-repo-cleaner.

techpavan avatar techpavan commented on June 14, 2024

Carriage returns do not exist on code nor release artifact. Checked in both latest and pre-latest. Probably the issue occurred due to involvement of a Windows machine (or ASCII mode) while transferring files.

from mvn-repo-cleaner.

Related Issues (6)

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.