我有一个Hudson工作,用于对Maven项目进行Sonar统计。
Sonar插件的执行失败,并显示以下跟踪信息:
[workspace] $ /hudson/hudson1/hudson/tools/maven-3.0.4/bin/mvn -f /hudson/hudson1/hudson/jobs/15_20_NX_Core_Quality/workspace/pom.xml -e -B sonar:sonar -Dsonar.jdbc.password= -Dsonar.forceAnalysis=true -Dsonar.login=admin -Dsonar.password=admin -Dsonar.jdbc.driver=net.sourceforge.jtds.jdbc.Driver -Dsonar.jdbc.url=jdbc:jtds:sqlserver://VX16:1433;databaseName=Sonar2;SelectMethod=Cursor ******** -Dsonar.host.url=http://localhost:8080/sonar ******** ********[INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] NX Core [INFO] core-entity [INFO] core-logic [INFO] core-ui [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building NX Core 1.22.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no dependency information available [WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 [INFO] [INFO] --- sonar-maven-plugin:2.7.1:sonar (default-cli) @ core --- [INFO] User cache: /home/jetty/.sonar/cache [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] NX Core ........................................... FAILURE [1.414s] [INFO] core-entity ....................................... SKIPPED [INFO] core-logic ........................................ SKIPPED [INFO] core-ui ........................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.490s [INFO] Finished at: Wed Oct 28 14:10:38 CET 2015 [INFO] Final Memory: 14M/303M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar (default-cli) on project core: Fail to download libraries from server: Status returned by url : 'http://localhost:8080/sonar/batch_bootstrap/index' is invalid : 404 -> [Help 1] Sonar analysis completed: FAILURE Finished: FAILURE
插件执行失败已经8天了,自那时起,pom和项目都没有更改。
sonar系统规格
系统日期, 星期三十10月28日14:34:36 CET 2015 JVM供应商,Oracle Corporation JVM名称,Java HotSpot(TM) 64-Bit Server VM JVM版本,23.6-b04 Java版本,1.7.0_10-b18 Java主目录,/usr/lib/jvm/jdk1.7.0_10/jre JIT编译器,- 应用服务器容器,Apache Tomcat/7.0.35 用户名,tomcat7 用户时区,Europe/Zurich 操作系统,Linux / amd64 / 3.2.0-92-generic 处理器,4 系统类路径,/tomcat/tomcat7/bin/bootstrap.jar:/tomcat/tomcat7/bin/tomcat-juli.jar 引导类路径,/usr/lib/jvm/jdk1.7.0_10/jre/lib/resources.jar:/usr/lib/jvm/jdk1.7.0_10/jre/lib/rt.jar:/usr/lib/jvm/jdk1.7.0_10/jre/lib/sunrsasign.jar:/usr/lib/jvm/jdk1.7.0_10/jre/lib/jsse.jar:/usr/lib/jvm/jdk1.7.0_10/jre/lib/jce.jar:/usr/lib/jvm/jdk1.7.0_10/jre/lib/charsets.jar:/usr/lib/jvm/jdk1.7.0_10/jre/lib/jfr.jar:/usr/lib/jvm/jdk1.7.0_10/jre/classes 库路径,/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 服务器ID,- 版本,3.4.1 开始时间,星期三十10月28日14:09:46 CET 2015 数据库,Microsoft SQL Server 10.50.2500 数据库URL,jdbc:jtds:sqlserver://VX16:1433/Sonar2 数据库用户名,sa 数据库驱动程序,jTDS Type 4 JDBC Driver for MS SQL Server and Sybase 1.2.4 数据库驱动程序类,net.sourceforge.jtds.jdbc.Driver 数据库方言(Hibernate),mssql (org.sonar.core.persistence.dialect.MsSql$MsSqlDialect) Hibernate默认模式,- 外部用户身份验证,- 自动创建用户,- 允许用户注册,- 强制身份验证,- 总内存,445 MB 空闲内存,219 MB 最大内存,954 MB 堆,init = 262973312(256809K) used = 225130168(219853K) committed = 445120512(434688K) max = 954466304(932096K) 非堆,init = 24313856(23744K) used = 80584792(78696K) committed = 80805888(78912K) max = 136314880(133120K) 系统负载平均值(最后一分钟),8.0% 加载的类数(当前/总数/未加载),13535 / 13535 / 0 启动时间,2015-10-28T14:09:37.964+0100 线程数(总数/峰值/守护程序),23 / 23 / 21 Checkstyle,1.1 Cobertura,1.1 Findbugs,1.1 JaCoCo,1.1 Java,1.1 PMD,1.1 Squid for Java,1.1 Surefire,1.1 SONAR_HOME,/tomcat/sonar awt.toolkit,sun.awt.X11.XToolkit catalina.base,/tomcat/tomcat7 catalina.home,/tomcat/tomcat7 catalina.useNaming,true common.loader,"${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar" file.encoding,UTF-8 file.encoding.pkg,sun.io
任何帮助都受到赞赏。
谢谢。
http://localhost:8080/sonar/batch_bootstrap/index'
返回404,即该URL不存在。 - Tunaki