构建我的maven项目时出现此错误:
[FATAL] Non-readable settings C:\MAVEN 3.2.2\conf: C:\MAVEN 3.2.2\conf (access denied) @ C:\MAVEN 3.2.2\conf
at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:128)
at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:109)
at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:136)
at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:212)
at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1288)
at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1091)
at hudson.FilePath.act(FilePath.java:920)
at hudson.FilePath.act(FilePath.java:893)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:953)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:681)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535)
at hudson.model.Run.execute(Run.java:1732)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:234)
Caused by: hudson.maven.MavenEmbedderException: 1 problem was encountered while building the effective settings
[FATAL] Non-readable settings C:\MAVEN 3.2.2\conf: C:\MAVEN 3.2.2\conf (access denied) @ C:\MAVEN 3.2.2\conf
at hudson.maven.MavenEmbedder.getSettings(MavenEmbedder.java:261)
at hudson.maven.MavenEmbedder.buildMavenExecutionRequest(MavenEmbedder.java:157)
at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:120)
... 14 more
Caused by: org.apache.maven.settings.building.SettingsBuildingException: 1 problem was encountered while building the effective settings
[FATAL] Non-readable settings C:\MAVEN 3.2.2\conf: C:\MAVEN 3.2.2\conf (access denied) @ C:\MAVEN 3.2.2\conf
at org.apache.maven.settings.building.DefaultSettingsBuilder.build(DefaultSettingsBuilder.java:116)
at hudson.maven.MavenEmbedder.getSettings(MavenEmbedder.java:259)
... 16 more
Finished: FAILURE
是因为C盘吗?有没有一个简单的解决方案或我必须将maven放在另一个驱动器上?这对屁股来说会很痛苦......
答案 0 :(得分:5)
它看起来像文件系统权限问题。确保运行Jenkins的OS用户具有C:\ MAVEN 3.2.2。
的读权限修改:根据您的评论,它可能不是文件系统权限问题。但是我只是注意到以下消息显示了一个目录名,而它应该是一个文件名:
Non-readable settings C:\MAVEN 3.2.2\conf
查看Jenkins构建配置,在构建部分下,单击高级按钮,检查是否为&#34;设置文件&#34;定义了值。