首页 > 编程知识 正文

maven-compiler-plugin报错,clone的用法

时间:2023-05-05 22:27:22 阅读:132462 作者:2550

背景问题:

从GitHub克隆Springboot项目时发生错误(所有项目均相同)。

错误3360 unabletocreatefilespring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/rered bildinfointegrationtests-notuptodatewhenexecutedtwicewithfixedtimeandchangedgradlepropertiesprojectversion.grad le 3360文件ll -项目/spring-boot-tools/spring-boot-grad le-plugin/src/test/resources/or resources bootjarintegrationtests-whenaresolvablecopyofanunresolvableconfigurationisresolvedthenresolutionsucceeds.grale le

原因:

Git可以创建长度为4096的文件名,但在windows系统上最多为260个。

因此,克隆项目时可能会发生上述Filename too long错误

可以通过运行以下命令进行全局更改:

git config--运行global core.longpathstrue,然后再次运行clone命令,可以避免此长文件名问题。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。