Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved

前端 未结 19 2074
隐瞒了意图╮
隐瞒了意图╮ 2020-11-30 05:09

I have install maven in my machine. I have properly set the class-path and maven home folder. Every time I execute mvn clean install, it gives me exception. I h

19条回答
  •  无人及你
    2020-11-30 05:14

    For all the Windows users, try moving your codebase to a shorter windows path for eg: C:/myProj

    Deeply nested Maven jar files can create a longer file path in windows. Since windows OS, by default, limits the file path length to 260 characters, it throws exception when trying to read a file located at a path that becomes more than 260 characters.

    You can change this default to increase this limit to more than 260 chracters. Search around the web and you will find many posts on how to do that.

    You can face similar problem while using npm packages also.

提交回复
热议问题