[ 
https://issues.apache.org/jira/browse/AMBARI-25779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lei Yao resolved AMBARI-25779.
------------------------------
    Resolution: Fixed

> Ambari server spi build error
> -----------------------------
>
>                 Key: AMBARI-25779
>                 URL: https://issues.apache.org/jira/browse/AMBARI-25779
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Lei Yao
>            Assignee: Lei Yao
>            Priority: Major
>             Fix For: 2.8.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> {code:java}
> [INFO] --- rpm-maven-plugin:2.1.4:rpm (default-cli) @ ambari-server-spi ---
> [INFO] Directory 
> /root/ambari/ambari/ambari-server-spi/target/rpm/ambari-server-spi/BUILD 
> already exists. Deleting all contents.
> [INFO] Directory 
> /root/ambari/ambari/ambari-server-spi/target/rpm/ambari-server-spi/RPMS 
> already exists. Deleting all contents.
> [INFO] Directory 
> /root/ambari/ambari/ambari-server-spi/target/rpm/ambari-server-spi/SOURCES 
> already exists. Deleting all contents.
> [INFO] Directory 
> /root/ambari/ambari/ambari-server-spi/target/rpm/ambari-server-spi/SPECS 
> already exists. Deleting all contents.
> [INFO] Directory 
> /root/ambari/ambari/ambari-server-spi/target/rpm/ambari-server-spi/SRPMS 
> already exists. Deleting all contents.
> [INFO] Directory 
> /root/ambari/ambari/ambari-server-spi/target/rpm/ambari-server-spi/tmp-buildroot
>  already exists. Deleting all contents.
> [INFO] Directory 
> /root/ambari/ambari/ambari-server-spi/target/rpm/ambari-server-spi/buildroot 
> already exists. Deleting all contents.
> [INFO] Creating spec file 
> /root/ambari/ambari/ambari-server-spi/target/rpm/ambari-server-spi/SPECS/ambari-server-spi.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:
> [INFO] 
> [INFO] Ambari Server SPI 3.0.0.0-SNAPSHOT ................. FAILURE [  6.598 
> s]
> [INFO] Ambari Service Advisor 1.0.0.0-SNAPSHOT ............ SKIPPED
> [INFO] Ambari Server 3.0.0.0-SNAPSHOT ..................... SKIPPED
> [INFO] Ambari Functional Tests 3.0.0.0-SNAPSHOT ........... SKIPPED
> [INFO] Ambari Agent 3.0.0.0-SNAPSHOT ...................... SKIPPED
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  7.262 s
> [INFO] Finished at: 2022-11-16T20:16:31+08:00
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.4:rpm 
> (default-cli) on project ambari-server-spi: RPM build execution returned: '1' 
> executing '/bin/sh -c cd 
> '/root/ambari/ambari/ambari-server-spi/target/rpm/ambari-server-spi/SPECS' && 
> 'rpmbuild' '-bb' '--target' 'noarch-redhat-linux' '--buildroot' 
> '/root/ambari/ambari/ambari-server-spi/target/rpm/ambari-server-spi/buildroot'
>  '--define' '_topdir 
> /root/ambari/ambari/ambari-server-spi/target/rpm/ambari-server-spi' 
> '--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-server-spi.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
> {code}
> This issue seems caused by rpm-maven-plugin upgrade  from 2.0.1 to 2.1.4 in 
> https://github.com/apache/ambari/pull/3492



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to