Hello Samy, I think you can try to reset the version of ambari-logsearch using like: mvn versions:set -DnewVersion=3.0.0.0.0
Just like the log you provided, the version of ambari-logsearch not match the RegExp pattern rule. For RegExp '^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*' it can be split to five parts: 1.start with a number from 0 to 9 and a dot 2.follow a number from 0 to 9 and a dot 3.follow a number from 0 to 9 and a dot 4.follow a number from 0 to 9 and then a dot or a hyphen 5.follow zero or more other character So, version 3.(part 1) 0.(part2) 0.(part3) 0 need append a dot or a hyphen and then append other info if you like. Best Regards, Luxiang Wang ________________________________ From: Samy Doe <[email protected]> Sent: Tuesday, March 21, 2023 3:22 To: [email protected] <[email protected]> Subject: Error compiling Ambari Logsearch/Infra from github source Hello everyone, Since it seems to not be possible to open an issue on github, I want to share that if one git clones the content from (most recent version from today) and runs make deb on them, the result is a regex error message, this exact regex error. Only applies to Logsearch and Infra, not Metrics or Ambari. OS is Ubuntu 22.04 and Openjdk-8 Can anyone help me figure out the reason and the fix? root@masternode:~/ambari/ambari-logsearch# make deb mvn clean package -Dbuild-deb -DskipTests -Djdk.version="1.8" [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Ambari Logsearch Parent [pom] [INFO] Ambari Logsearch Web [jar] [INFO] Ambari Logsearch Log4j2 Appender [jar] [INFO] Ambari Logsearch Config Api [jar] [INFO] Ambari Logsearch Config JSON [jar] [INFO] Ambari Logsearch Config Solr [jar] [INFO] Ambari Logsearch Config Zookeeper [jar] [INFO] Ambari Logsearch Appender [jar] [INFO] Ambari Logsearch Config Local [jar] [INFO] Ambari Logsearch Log Feeder Plugin Api [jar] [INFO] Ambari Logsearch Log Feeder Container Registry [jar] [INFO] Ambari Logsearch Log Feeder [jar] [INFO] Ambari Logsearch Server [jar] [INFO] Ambari Logsearch Assembly [jar] [INFO] Ambari Logsearch Integration Test [jar] [INFO] Ambari Logsearch Docs [jar] [INFO] [INFO] -----------------< org.apache.ambari:ambari-logsearch >----------------- [INFO] Building Ambari Logsearch Parent 3.0.0.0 [1/16] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ ambari-logsearch --- [INFO] Deleting /root/ambari/ambari-logsearch (includes = [**/*.pyc], excludes = []) [INFO] [INFO] --- flatten-maven-plugin:1.0.0:clean (flatten.clean) @ ambari-logsearch --- [INFO] [INFO] --- build-helper-maven-plugin:1.8:parse-version (parse-version) @ ambari-logsearch --- [INFO] [INFO] --- build-helper-maven-plugin:1.8:regex-property (regex-property) @ ambari-logsearch --- [INFO] No match to regex '^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*' found in '3.0.0.0'. The initial value '3.0.0.0' is left as-is... [INFO] [INFO] --- build-helper-maven-plugin:1.8:regex-property (parse-package-version) @ ambari-logsearch --- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Ambari Logsearch Parent 3.0.0.0<http://3.0.0.0>: [INFO] [INFO] Ambari Logsearch Parent ............................ FAILURE [ 0.325 s] [INFO] Ambari Logsearch Web ............................... SKIPPED [INFO] Ambari Logsearch Log4j2 Appender ................... SKIPPED [INFO] Ambari Logsearch Config Api ........................ SKIPPED [INFO] Ambari Logsearch Config JSON ....................... SKIPPED [INFO] Ambari Logsearch Config Solr ....................... SKIPPED [INFO] Ambari Logsearch Config Zookeeper .................. SKIPPED [INFO] Ambari Logsearch Appender .......................... SKIPPED [INFO] Ambari Logsearch Config Local ...................... SKIPPED [INFO] Ambari Logsearch Log Feeder Plugin Api ............. SKIPPED [INFO] Ambari Logsearch Log Feeder Container Registry ..... SKIPPED [INFO] Ambari Logsearch Log Feeder ........................ SKIPPED [INFO] Ambari Logsearch Server ............................ SKIPPED [INFO] Ambari Logsearch Assembly .......................... SKIPPED [INFO] Ambari Logsearch Integration Test .................. SKIPPED [INFO] Ambari Logsearch Docs .............................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.532 s [INFO] Finished at: 2023-03-20T17:52:43Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:1.8:regex-property (parse-package-version) on project ambari-logsearch: No match to regex '^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*' found in '3.0.0.0'. -> [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 make: *** [Makefile:47: deb] Error 1
