Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directory has to be called "repository" #10

Open
bugs84 opened this issue Feb 7, 2023 · 1 comment
Open

Directory has to be called "repository" #10

bugs84 opened this issue Feb 7, 2023 · 1 comment

Comments

@bugs84
Copy link

bugs84 commented Feb 7, 2023

I tried use this utility, but with no luck.
I wanted clean repository located in Jenkins controller node (not important)

Important is that repository is located in this directory:
/data/app/tomcat/temp/repositoryconnector-repo/
But it is not possible, because you can specify "--path" parameter but to this path is appended directory name "repository".

I do not understand this limitation and feel free to close this issue. I just want let you know why I cannot use it.

Code responsible for appending "repository" to path

    ...
    private static File evaluateM2Path(JCommander jCommander) {
        String m2Path = defaultString(argData.getM2Path(), concat(USER_HOME, ".m2"));
        File m2Dir = new File(m2Path);
        File repoDir = new File(m2Path, "repository");
        if (!m2Dir.exists() || !repoDir.exists()) {
            log.error("Valid Maven repository could not be found. Please provide a valid input.");
        ...
kjsmita6 pushed a commit to kjsmita6/mvn-repo-cleaner that referenced this issue Mar 7, 2023
@kjsmita6
Copy link

kjsmita6 commented Mar 7, 2023

This was annoying me too and I was trying to figure out why the script wasn't working. I just fixed in #11 so hopefully it is merged. @bugs84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants