Hudson 2.0.1和Maven 2.2.1并且找不到符号错误

时间:2011-06-30 05:48:49

标签: java maven-2 hudson symbols

在进行一些研究时,我发现这个Old Post带有一个指向Hudson问题跟踪器网站的链接,其中包含一些几乎相同的问题的信息,这些信息声称已针对当前版本的Hudson 2.0.1和Maven进行修复2.2.1我正在使用。

似乎当我尝试在Hudson上运行我的测试时,我得到一个“找不到符号错误”没有它在eclipse中正常运行导致我认为它可能与Hudson和Maven有关,但我不确定

这是我的堆栈跟踪,我相信的部分(在阅读上一篇文章后)是相关的或以某种方式相关

[WARNING] 
************ WARNING ************

This Maven runtime contains a LifecycleExecutor component with an incomplete configuration.

LifecycleExecutor class: org.apache.maven.lifecycle.LifecycleExecutorInterceptor
Missing component requirement: org.apache.maven.project.MavenProjectBuilder

NOTE: This seems to be a third-party Maven derivative you are using. If so, please
notify the developers for this derivative project of the problem. The Apache Maven team is not
responsible for maintaining the integrity of third-party component overrides.


[WARNING] 
************ WARNING ************

This Maven runtime contains a LifecycleExecutor component with an incomplete configuration.

LifecycleExecutor class: org.apache.maven.lifecycle.LifecycleExecutorInterceptor
Missing component requirement: org.apache.maven.project.interpolation.ModelInterpolator

NOTE: This seems to be a third-party Maven derivative you are using. If so, please
notify the developers for this derivative project of the problem. The Apache Maven team is not
responsible for maintaining the integrity of third-party component overrides.


[WARNING] 
************ WARNING ************

This Maven runtime contains a LifecycleExecutor component with an incomplete configuration.

LifecycleExecutor class: org.apache.maven.lifecycle.LifecycleExecutorInterceptor
Missing component requirement: org.apache.maven.ConfigurationInterpolator

NOTE: This seems to be a third-party Maven derivative you are using. If so, please
notify the developers for this derivative project of the problem. The Apache Maven team is not
responsible for maintaining the integrity of third-party component overrides.


[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Lonely Planet Code Test
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting file set: /var/lib/hudson/jobs/Lonely Planet Coding Tests/workspace/trunk/com.lonelyplanet.codetest.wkallan/target (included: [**], excluded: [])
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 1 source file to /var/lib/hudson/jobs/Lonely Planet Coding Tests/workspace/trunk/com.lonelyplanet.codetest.wkallan/target/classes
[HUDSON] Archiving /var/lib/hudson/jobs/Lonely Planet Coding Tests/workspace/trunk/com.lonelyplanet.codetest.wkallan/pom.xml to /var/lib/hudson/jobs/Lonely Planet Coding Tests/modules/com.lonelyplanet.codetest.wkallan$com.lonelyplanet.codetest.wkallan/builds/2011-06-30_13-40-15/archive/com.lonelyplanet.codetest.wkallan/com.lonelyplanet.codetest.wkallan/0.0.1-SNAPSHOT/pom.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/var/lib/hudson/jobs/Lonely Planet Coding Tests/workspace/trunk/com.lonelyplanet.codetest.wkallan/src/main/java/com/lonelyplanet/codetest/wkallan/ContentGenerator.java:[30,15] cannot find symbol
symbol  : method format(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)
location: class java.lang.String

2 个答案:

答案 0 :(得分:3)

说真的,我支持丹尼尔的建议。转移到詹金斯。几乎所有的Hudson开发人员都转移到了Jenkins,并且不支持或开发Hudson,因为它与Oracle分离。 我已将哈德森迁移到詹金斯。迁移通常是无缝的。 使用Jenkins的好处在于他们每周(基于迭代)发布版本,他们倾向于修复 很多 比Oracle更多的东西。

我不是想在这里开始一场火焰战,这只是我个人的看法。只是建议。 : - )

答案 1 :(得分:0)

您的Hudson服务器可以使用古老的jdk 1.4运行吗?在{5}中添加了format中的java.lang.String方法。您还应该检查是否为pom中的源1.5配置了maven编译器插件。 Maven 2中的默认值为1.4甚至1.3。