我试图了解Jenkins
是如何工作的,所以我开始了一个示例maven项目,我试图通过Jenkins
来构建它。即使可以使用cmd
构建项目,但当我尝试使用Jenkins
有人可以给我一个解决方案
Parsing POMs
ERROR: Failed to parse POMs
hudson.maven.MavenEmbedderException: 1 problem was encountered while building the effective settings
[FATAL] Non-readable settings C:\Program Files\apache-maven-3.2.3: C:\Program Files\apache-maven-3.2.3 (Access is denied) @ C:\Program Files\apache-maven-3.2.3
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:1285)
at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1088)
at hudson.FilePath.act(FilePath.java:991)
at hudson.FilePath.act(FilePath.java:969)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:950)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:677)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
at hudson.model.Run.execute(Run.java:1741)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:381)
Caused by: hudson.maven.MavenEmbedderException: 1 problem was encountered while building the effective settings
[FATAL] Non-readable settings C:\Program Files\apache-maven-3.2.3: C:\Program Files\apache-maven-3.2.3 (Access is denied) @ C:\Program Files\apache-maven-3.2.3
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:\Program Files\apache-maven-3.2.3: C:\Program Files\apache-maven-3.2.3 (Access is denied) @ C:\Program Files\apache-maven-3.2.3
at org.apache.maven.settings.building.DefaultSettingsBuilder.build(DefaultSettingsBuilder.java:116)
at hudson.maven.MavenEmbedder.getSettings(MavenEmbedder.java:259)
... 16 more
Finished: FAILURE
答案 0 :(得分:1)
好吧,显然你无法访问C:\Program Files\apache-maven-3.2.3
。你有一个设置文件吗?如果是这样,您可以将设置文件存储在主目录的.m2文件夹中。将文件夹复制到您的用户目录中,然后重试。
答案 1 :(得分:0)
将您的Maven移至C:\ Program Files以外的其他目录。 或提供对C:\ Program Files \ apache-maven-3.2.3的完全访问权限