timyuer commented on PR #75:
URL: https://github.com/apache/ambari-metrics/pull/75#issuecomment-1330443223

   @lucasbak 
   Fail to execute `mvn clean install rpm:rpm -DskipTests` in Centos7.
   
   ```bash
   [INFO] --- rpm-maven-plugin:2.1.4:rpm (default-cli) @ ambari-metrics ---
   [INFO] Creating directory 
/opt/package/code/ambari-metrics/target/rpm/ambari-metrics
   [INFO] Creating directory 
/opt/package/code/ambari-metrics/target/rpm/ambari-metrics/BUILD
   [INFO] Creating directory 
/opt/package/code/ambari-metrics/target/rpm/ambari-metrics/RPMS
   [INFO] Creating directory 
/opt/package/code/ambari-metrics/target/rpm/ambari-metrics/SOURCES
   [INFO] Creating directory 
/opt/package/code/ambari-metrics/target/rpm/ambari-metrics/SPECS
   [INFO] Creating directory 
/opt/package/code/ambari-metrics/target/rpm/ambari-metrics/SRPMS
   [INFO] Creating directory 
/opt/package/code/ambari-metrics/target/rpm/ambari-metrics/tmp-buildroot
   [INFO] Creating directory 
/opt/package/code/ambari-metrics/target/rpm/ambari-metrics/buildroot
   [INFO] Creating spec file 
/opt/package/code/ambari-metrics/target/rpm/ambari-metrics/SPECS/ambari-metrics.spec
   [INFO] error: line 4: Empty tag: Release:
   [INFO] Building target platforms: noarch-redhat-linux
   [INFO] Building for target noarch-redhat-linux
   [INFO] 
------------------------------------------------------------------------
   [INFO] Reactor Summary for ambari-metrics 2.0.0.0-SNAPSHOT:
   [INFO] 
   [INFO] ambari-metrics ..................................... FAILURE [  2.522 
s]
   [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 Grafana ............................. SKIPPED
   [INFO] Ambari Metrics Host Aggregator ..................... SKIPPED
   [INFO] Ambari Metrics Assembly ............................ SKIPPED
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time:  2.965 s
   [INFO] Finished at: 2022-11-29T13:12:56+08:00
   [INFO] 
------------------------------------------------------------------------
   [ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.4:rpm 
(default-cli) on project ambari-metrics: RPM build execution returned: '1' 
executing '/bin/sh -c cd 
'/opt/package/code/ambari-metrics/target/rpm/ambari-metrics/SPECS' && 
'rpmbuild' '-bb' '--target' 'noarch-redhat-linux' '--buildroot' 
'/opt/package/code/ambari-metrics/target/rpm/ambari-metrics/buildroot' 
'--define' '_topdir /opt/package/code/ambari-metrics/target/rpm/ambari-metrics' 
'--define' '_build_name_fmt 
%%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' '--define' '_builddir 
%{_topdir}/BUILD' '--define' '_rpmdir %{_topdir}/RPMS' '--define' '_sourcedir 
%{_topdir}/SOURCES' '--define' '_specdir %{_topdir}/SPECS' '--define' 
'_srcrpmdir %{_topdir}/SRPMS' 'ambari-metrics.spec'' -> [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/MojoExecutionException
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@ambari.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@ambari.apache.org
For additional commands, e-mail: commits-h...@ambari.apache.org

Reply via email to