在进行构建时出现以下:
Started by user anonymous Building in workspace /Users/Melon/.jenkins/jobs/first/workspace > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://git.coding.net/melongit/jdbcCoreframework.git # timeout=10 Fetching upstream changes from https://git.coding.net/melongit/jdbcCoreframework.git > git --version # timeout=10 using .gitcredentials to set credentials > git config --local credential.username melongit # timeout=10 > git config --local credential.helper store --file=/Users/Melon/Documents/Tomcat7/temp/git2101628945155958281.credentials # timeout=10 > git -c core.askpass=true fetch --tags --progress https://git.coding.net/melongit/jdbcCoreframework.git +refs/heads/*:refs/remotes/origin/* > git config --local --remove-section credential # timeout=10 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision 0bd218173e74065806712e4dd656c911fc1e26bf (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 0bd218173e74065806712e4dd656c911fc1e26bf > git rev-list 0bd218173e74065806712e4dd656c911fc1e26bf # timeout=10 Parsing POMs ERROR: Failed to parse POMs hudson.maven.MavenEmbedderException: 1 problem was encountered while building the effective settings [FATAL] Non-readable settings /Users/Melon/.m2: /Users/Melon/.m2 (Is a directory) @ /Users/Melon/.m2at 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:410)
Caused by: hudson.maven.MavenEmbedderException: 1 problem was encountered while building the effective settings
[FATAL] Non-readable settings /Users/Melon/.m2: /Users/Melon/.m2 (Is a directory) @ /Users/Melon/.m2at 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 /Users/Melon/.m2: /Users/Melon/.m2 (Is a directory) @ /Users/Melon/.m2at org.apache.maven.settings.building.DefaultSettingsBuilder.build(DefaultSettingsBuilder.java:116) at hudson.maven.MavenEmbedder.getSettings(MavenEmbedder.java:259) ... 16 more
Finished: FAILURE
解决方案就是把 系统设置中关于Maven的高级选项-关于Settings in file system的都选择为 "Use default maven setting"
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于