Jenkins 似乎无法构建 java 工件。 github 要点 [Pastebin] 中包含的更多信息

Jenkins can't seem to build a java artifact. More information contained in a github gist [Pastebin]

在 Ubuntu 14.04 上通过 Apt 安装的新 Jenkins 不会构建 Maven 工件。看来我似乎无法说服它找到配置

其中一次构建尝试有大量控制台输出,因此我将我的尝试及其输出发布在 gist

OTHER INFORMATION

Maven Configuration in Jenkins
http://i.imgur.com/LaHimRr.png

More Maven Configuration
http://i.imgur.com/geflDPA.png

JDK Configuration
http://i.imgur.com/UbD5LWQ.png

root@ci:/etc/maven# java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
root@ci:/etc/maven# mvn -v
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.8.0_25, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-44-generic", arch: "amd64", family: "unix"
root@ci:/etc/maven# git --version
git version 1.9.1

Jenkins Project Job

控制台输出

Started by user Robert
Building in workspace /var/lib/jenkins/jobs/Network Utilities - Master Builds/workspace
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://github.com/olivervscreeper/NetworkUtilities.git # timeout=10
Fetching upstream changes from https://github.com/olivervscreeper/NetworkUtilities.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress https://github.com/olivervscreeper/NetworkUtilities.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 0776d5c1ad6594cdca17480295f11ab6b7629c62 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 0776d5c1ad6594cdca17480295f11ab6b7629c62
 > git rev-list 0776d5c1ad6594cdca17480295f11ab6b7629c62 # timeout=10
Parsing POMs
ERROR: Failed to parse POMs
hudson.maven.MavenEmbedderException: 2 problems were encountered while building the effective settings
[FATAL] Non-readable settings /usr/share/maven/conf: /usr/share/maven/conf (Is a directory) @ /usr/share/maven/conf
[FATAL] Non-readable settings /usr/share/maven/conf: /usr/share/maven/conf (Is a directory) @ /usr/share/maven/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:1294)
    at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1097)
    at hudson.FilePath.act(FilePath.java:981)
    at hudson.FilePath.act(FilePath.java:959)
    at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:959)
    at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:679)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
    at hudson.model.Run.execute(Run.java:1759)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
    at hudson.model.ResourceController.execute(ResourceController.java:89)
    at hudson.model.Executor.run(Executor.java:240)
Caused by: hudson.maven.MavenEmbedderException: 2 problems were encountered while building the effective settings
[FATAL] Non-readable settings /usr/share/maven/conf: /usr/share/maven/conf (Is a directory) @ /usr/share/maven/conf
[FATAL] Non-readable settings /usr/share/maven/conf: /usr/share/maven/conf (Is a directory) @ /usr/share/maven/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: 2 problems were encountered while building the effective settings
[FATAL] Non-readable settings /usr/share/maven/conf: /usr/share/maven/conf (Is a directory) @ /usr/share/maven/conf
[FATAL] Non-readable settings /usr/share/maven/conf: /usr/share/maven/conf (Is a directory) @ /usr/share/maven/conf

    at org.apache.maven.settings.building.DefaultSettingsBuilder.build(DefaultSettingsBuilder.java:116)
    at hudson.maven.MavenEmbedder.getSettings(MavenEmbedder.java:259)
    ... 16 more
Finished: FAILURE

在 irc.esper.net 上的 #Jenkins 中发现了响应。答案是专门定义位于的文件。

/usr/share/maven/conf/settings.xml