stevespringett / nist-data-mirror

A simple Java command-line utility to mirror the CVE JSON data from NIST.
Apache License 2.0
206 stars 93 forks source link

GitHub action - Unable to access jarfile nist-data-mirror.jar #131

Open aris-karaiskos-deltatre opened 2 years ago

aris-karaiskos-deltatre commented 2 years ago

Hi, i am trying to incorporate the commands into a GitHub actions script but i am getting the "Unable to access jarfile nist-data-mirror.jar" error, did anyone manage to run it on GitHub actions please?

    - name: build the .jar file
      run: |
        mkdir  mirror-dir
        mvn clean package
        java -jar nist-data-mirror.jar mirror-dir
        ls -al    
      shell: bash
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  32.450 s
[INFO] Finished at: 2022-06-03T13:03:31Z
[INFO] ------------------------------------------------------------------------
Error: Unable to access jarfile nist-data-mirror.jar
aikebah commented 2 years ago

Maven builds artifacts in the target subfolder, so I suspect you get a working setup when you change the invocation to java -jar target/nist-data-mirror.jar mirror-dir