【发布时间】:2013-10-04 21:25:50
【问题描述】:
我正在尝试通过在 Hudson 上构建一个非 maven java 项目,然后通过 Hudson-Sonar-plugin 运行声纳分析来构建和运行分析。
问题是,Sonar 假设该项目是一个 maven 项目,并在找不到 pom 文件时构建失败。
我该如何解决这个问题?
以下是来自 Hudson 的堆栈跟踪中的相关部分:
[workspace] $ mvn.bat -f D:\Hudson\jobs\BirdApp\workspace\pom.xml -e -B sonar:sonar -Dsonar.jdbc.url=jdbc:mysql://localhost:3306/sonar -Dsonar.host.url=http://orbuild01:9000 ******** ********
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] Non-readable POM D:\Hudson\jobs\BirdApp\workspace\pom.xml: D:\Hudson\jobs\BirdApp\workspace\pom.xml (The system cannot find the file specified) @
.........
Sonar analysis completed: FAILURE
[DEBUG] Skipping watched dependency update for build: BirdApp #8 due to result: FAILURE
Finished: FAILURE
我不确定您在我的问题中可能需要哪些其他信息,但请在评论中告诉我,我会添加它。
【问题讨论】: