Tycho jenkins构建失败 - nullpointer

时间:2012-03-16 13:19:24

标签: eclipse-plugin jenkins tycho

我在Jenkins的Tycho构建上遇到了问题。在我的本地机器上,我已经成功建立。

我有两个项目p2和apll。在p2中,我只是将工件重新打包到具有格式良好的清单,pom等的eclipse-plugins。这个构建是可以的。

Apll构建在即将开始编译插件时失败。当我直接在我的插件pom上指出Jenkins时,我已经成功构建了。但是,当我从父pom开始时,它失败了。我的项目结构:

-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

核心pom

lib-feature - 来自p2插件的功能

产品 - 实现

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

和堆叠:

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

汤姆

2 个答案:

答案 0 :(得分:0)

这看起来像Tycho 0.14.0-SNAPSHOT中的错误,前一段时间已经是fixed。 您是否仍然使用过时的Tycho 0.14.0-SNAPSHOT版本?

Tycho 0.13.0和Tycho 0.14.1都不应该有这个问题。

答案 1 :(得分:0)

Jenkins的Maven作业类型一直在给NPE,但最近Jenkins更新已修复此问题,因此请尝试更新Jenkins以查看它是否已解决。