版本号格式导致的ambari-metrics编译报错
[INFO] ------------------------------------------------------------------------
[INFO] Building ambari-metrics 2.2.1.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:parse-version (parse-version) @ ambari-metrics ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:regex-property (regex-property) @ ambari-metrics ---
[INFO] No match to regex '^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*' found in '2.2.1.1'. The initial value '2.2.1.1' is left as-is...
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:regex-property (parse-package-version) @ ambari-metrics ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ambari-metrics .................................... FAILURE [1.604s]
[INFO] Ambari Metrics Common ............................. SKIPPED
[INFO] Ambari Metrics Hadoop Sink ........................ SKIPPED
[INFO] Ambari Metrics Flume Sink ......................... SKIPPED
[INFO] Ambari Metrics Kafka Sink ......................... SKIPPED
[INFO] Ambari Metrics Storm Sink ......................... SKIPPED
[INFO] Ambari Metrics Collector .......................... SKIPPED
[INFO] Ambari Metrics Monitor ............................ SKIPPED
[INFO] Ambari Metrics Assembly ........................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.994s
[INFO] Finished at: Wed Jun 22 14:19:26 CST 2016
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:1.8:regex-property (parse-package-version) on project ambari-metrics: No match to regex '^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*' found in '2.2.1.1'. -> [Help 1]
[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/MojoFailureException
报错信息提示版本号2.2.1.1 不符合版本号格式要求:
^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*
参照正则表达式设置正确的版本号格式,如2.2.1.1.0
更多关于Ambari版本号的问题,可以参考我的另外一篇文章:http://blog.csdn.net/royma_1990/article/details/51749981#t18。
在尝试编译ambari-metrics时遇到版本号2.2.1.1不符合规范的错误。根据正则表达式,应将版本号更改为2.2.1.1.0。欲了解更多Ambari版本号相关资讯,请参阅作者的其他文章。
733

被折叠的 条评论
为什么被折叠?



