gpt4 book ai didi

java - Jenkins 似乎无法构建 java Artifact 。更多信息包含在 github gist [Pastebin] 中

转载 作者:太空宇宙 更新时间:2023-11-04 06:13:25 24 4
gpt4 key购买 nike

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

其中一次构建尝试有大量控制台输出,因此我将我的尝试及其输出发布在 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

关于java - Jenkins 似乎无法构建 java Artifact 。更多信息包含在 github gist [Pastebin] 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28412041/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com