简体   繁体   English

第谷詹金斯构建失败-nullpointer

[英]Tycho jenkins build fail - nullpointer

I have problems with Tycho build on Jenkins. 我在詹金斯上使用Tycho时遇到问题。 On my local machine i have success build. 在本地计算机上,我可以成功构建。

I have two projects p2 and apll. 我有两个项目p2和apll。 In p2 I simply repack artifacts to eclipse-plugins with well formated manifest, pom etc. This build is ok. 在p2中,我只是将工件重新打包到具有格式正确的清单,pom等的eclipse插件中。这种构建是可以的。

Apll build fails when is about to start compiling plug-ins. 当即将开始编译插件时,Apll构建失败。 When I point Jenkins directly on my plugin pom, I have success build. 当我将Jenkins直接指向我的插件pom时,我就成功构建了。 But when I start from parent pom it fails. 但是,当我从父pom开始时,它会失败。 My project structure: 我的项目结构:

-root
  |-core
    |-plugin1
    |-plugin1junit
    |-plugin2
    |-plugin2junit
    |-core-feature
  |-lib-feature
    |-nattable-feature
    |-chart-feature
  |-product

root - pom with tycho plugin and target platform conf, dependencys to p2 plugin //package pom root-带有tycho插件和目标平台conf的pom,对p2插件的依赖// package pom

core pom 核心pom

lib-feature - features from p2 plugins lib-feature-p2插件的功能

product - materialization 产品-实现

build result:
root - SUCCESS 
Core - SUCCESS
p2-feature - SUCCESS
nattable-feature - SUCCESS
chart-feature - SUCCESS
plugin1 - FAILURE 
... - FAILURE 

and stack: 并堆叠:

org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
    at org.apache.maven.lifecycle.internal.BuilderCommon.handleBuildError(BuilderCommon.java:128)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:95)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
    at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:122)
    at hudson.maven.Maven3Builder.call(Maven3Builder.java:74)
    at hudson.remoting.UserRequest.perform(UserRequest.java:118)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:287)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
    at hudson.maven.Maven3Builder$MavenExecutionListener.recordProjectStarted(Maven3Builder.java:368)
    at hudson.maven.Maven3Builder$MavenExecutionListener.projectStarted(Maven3Builder.java:358)
    at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:71)
    at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:78)
    ... 24 more

Tom 汤姆

Jenkins中的Maven作业类型一直在提供NPE,但这已在Jenkins的最新更新中得到解决,因此请尝试更新您的Jenkins以查看是否可以解决。

This looks like a bug in Tycho 0.14.0-SNAPSHOT that was fixed a while ago already. 这看起来像是Tycho 0.14.0-SNAPSHOT中的错误,该错误已在不久前修复 Are you by any chance still using an outdated Tycho 0.14.0-SNAPSHOT version? 您是否仍在使用过时的Tycho 0.14.0-SNAPSHOT版本?

Neither Tycho 0.13.0 nor Tycho 0.14.1 should have this problem. Tycho 0.13.0和Tycho 0.14.1都不应该有此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM