【发布时间】:2017-07-03 14:24:50
【问题描述】:
当 Jenkins 作业执行 Maven 源代码时,控制台中显示以下错误并且作业失败。由于项目有很多模块。我无法修改 pom.xml 文件以通过硬编码版本来修复错误。不知何故我想通过添加某种配置来解决 Jenkins 方面的错误。
[ERROR] 'dependencies.dependency.version' for org.apache.lucene:lucene-core:jar must be a valid version but is '${lucene.version}'. @ org.helloproject.search:customer-impl:[unknown-version], /var/lib/jenkins/workspace/HelloProject/search/customer-impl/impl/pom.xml, line 182, column 16
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE
【问题讨论】: