首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能将跟踪文件写入(例如:d:Users/.m2/ java.IOException ):磁盘上没有足够的空间

未能将跟踪文件写入(例如:d:Users/.m2/ java.IOException ):磁盘上没有足够的空间
EN

Stack Overflow用户
提问于 2022-05-05 14:06:55
回答 1查看 170关注 0票数 1

我的工作是使用azure应用服务和jenkins自动化CICD。Jenkins作为.WAR部署在app服务站点/www.root/webapp文件夹中,这样我就可以在外面访问jenkins了。在jenkins中,我创建了一个基于maven的作业(即CheckoutandBuild)。这项工作的职责是获取源代码(从bitbucket)并执行maven目标干净编译。要执行它所需的作业,需要JDK、Git、Maven。因此,在jenkins全局配置中,我配置了JDK、Git、Maven,我选择了自动安装选项,这将配置maven到我的工作中,并创建了.m2文件夹。最近我完成了詹金的工作,CheckoutandBuild。它已经启动,但几秒钟后,它在我的jenkins控制台输出中给出了以下警告和异常

代码语言:javascript
复制
[WARNING] Failed to write tracking file D:\Users\Pipeline\.m2\repository\org\codehaus\plexus\plexus-java\0.9.10\plexus-java-0.9.10.jar.lastUpdated
java.io.FileNotFoundException: D:\Users\Pipeline\.m2\repository\org\codehaus\plexus\plexus-java\0.9.10\plexus-java-0.9.10.jar.lastUpdated (There is not enough space on the disk)

[WARNING] Failed to write tracking file D:\Users\Pipeline\.m2\repository\org\ow2\asm\asm\6.2\asm-6.2.jar.lastUpdated
java.io.FileNotFoundException: D:\Users\Pipeline\.m2\repository\org\ow2\asm\asm\6.2\asm-6.2.jar.lastUpdated (There is not enough space on the disk)

Failed to write tracking file D:\Users\Pipeline\.m2\repository\com\thoughtworks\qdox\qdox\2.0-M9\qdox-2.0-M9.jar.lastUpdated
java.io.FileNotFoundException: D:\Users\Pipeline\.m2\repository\com\thoughtworks\qdox\qdox\2.0-M9\qdox-2.0-M9.jar.lastUpdated (There is not enough space on the disk)

类似地,通过手动配置Maven,而不是在jenkins中使用install选项,上面的消息有许多警告和异常。还通过降级当前配置的maven 3.8.1版本进行了尝试。它显示磁盘上没有足够的空间,我的磁盘空间是4GB,我删除了很少不想要的文件,现在空间是2GB,在我的控制台中仍然有这个异常。

最后我的建设失败了

代码语言:javascript
复制
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  15.875 s
[INFO] Finished at: 2022-05-05T13:11:10Z
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project SpringBoot: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile failed: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-settings:jar:3.0, org.apache.maven:maven-settings-builder:jar:3.0, org.codehaus.plexus:plexus-interpolation:jar:1.14, org.apache.maven.shared:maven-shared-incremental:jar:1.1, org.codehaus.plexus:plexus-java:jar:0.9.10, org.ow2.asm:asm:jar:6.2, com.thoughtworks.qdox:qdox:jar:2.0-M9, org.codehaus.plexus:plexus-compiler-api:jar:2.8.4, org.codehaus.plexus:plexus-compiler-manager:jar:2.8.4, org.codehaus.plexus:plexus-compiler-javac:jar:2.8.4: Could not transfer artifact org.apache.maven:maven-settings:jar:3.0 from/to central (https://repo.maven.apache.org/maven2): GET request of: org/apache/maven/maven-settings/3.0/maven-settings-3.0.jar from central failed: There is not enough space on the disk -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException.

如何解决这个问题?我错过了什么?

EN

回答 1

Stack Overflow用户

发布于 2022-05-05 14:14:06

尝试删除.m2文件并在maven中更新项目,您的m2文件将位于jdk文件所在的相同位置。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72128569

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档