Github user DimDroll commented on the issue:

    https://github.com/apache/metron/pull/775
  
    @ottobackwards , true, it does not fail the rpm build as it ends with:
    ```
    [INFO] 
------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] 
------------------------------------------------------------------------
    [INFO] Total time: 18.284 s
    [INFO] Finished at: 2017-10-11T08:52:01-04:00
    [INFO] Final Memory: 23M/299M
    [INFO] 
------------------------------------------------------------------------
    
    ```
    However there are no RPMs in respective folders and when I scroll up I can 
see:
    ```
    /var/tmp/rpm-tmp.qHTcZj: line 58: npm: command not found
    error: Bad exit status from /var/tmp/rpm-tmp.qHTcZj (%install)
        Macro %_prerelease has empty body
        Macro %_prerelease has empty body
        Bad exit status from /var/tmp/rpm-tmp.qHTcZj (%install)
    
    RPM build errors:
    ```
    I replicate it using:
    1. Clone repo.
    2. cd metron
    3. mvn clean package -DskipTests -T 2C -P HDP-2.5.0.0,mpack
    4. cd metron-deployment/packaging/docker/rpm-docker
    5. mvn clean install -DskipTests -PHDP-2.5.0.0
    If finishes build with success as shown above, but with the error shown 
above. Attached full log
    
[rpm_build_failure.txt](https://github.com/apache/metron/files/1376787/rpm_build_failure.txt)
    
    
    



---

Reply via email to