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

   > 
   
   The compilation still fails after the above operations are performed.
   Then I found that the version of `rpm-maven-plugin` is not consistent. Is it 
caused by this problem?
   ```
   [INFO] Creating empty directory 
/opt/package/code/ambari-metrics/ambari-metrics-timelineservice/target/rpm/ambari-metrics-collector/buildroot/var/lib/ambari-metrics-collector
   [INFO] Creating spec file 
/opt/package/code/ambari-metrics/ambari-metrics-timelineservice/target/rpm/ambari-metrics-collector/SPECS/ambari-metrics-collector.spec
   [WARNING] error: License field must be present in package: (main package)
   [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 ..................................... SUCCESS [  8.346 
s]
   [INFO] Ambari Metrics Common .............................. SUCCESS [ 15.320 
s]
   [INFO] Ambari Metrics Hadoop Sink ......................... SUCCESS [  8.041 
s]
   [INFO] Ambari Metrics Flume Sink .......................... SUCCESS [  3.666 
s]
   [INFO] Ambari Metrics Kafka Sink .......................... SUCCESS [  4.242 
s]
   [INFO] Ambari Metrics Storm Sink .......................... SUCCESS [  3.506 
s]
   [INFO] Ambari Metrics Collector ........................... FAILURE [ 54.423 
s]
   [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:  01:38 min
   [INFO] Finished at: 2022-11-29T19:54:28+08:00
   [INFO] 
------------------------------------------------------------------------
   [ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.0.1:rpm 
(default-cli) on project ambari-metrics-timelineservice: RPM build execution 
returned: '1' executing '/bin/sh -c cd 
/opt/package/code/ambari-metrics/ambari-metrics-timelineservice/target/rpm/ambari-metrics-collector/SPECS
 && rpmbuild -bb --buildroot 
/opt/package/code/ambari-metrics/ambari-metrics-timelineservice/target/rpm/ambari-metrics-collector/buildroot
 --define '_topdir 
/opt/package/code/ambari-metrics/ambari-metrics-timelineservice/target/rpm/ambari-metrics-collector'
 --target noarch-redhat-linux ambari-metrics-collector.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
   [ERROR] 
   [ERROR] After correcting the problems, you can resume the build with the 
command
   [ERROR]   mvn <args> -rf :ambari-metrics-timelineservice
   ```


-- 
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