Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get vulnz-5.1.1.jar due to some issues during the build #128

Closed
Muskan-0618 opened this issue Jan 22, 2024 · 8 comments · Fixed by #130
Closed

Unable to get vulnz-5.1.1.jar due to some issues during the build #128

Muskan-0618 opened this issue Jan 22, 2024 · 8 comments · Fixed by #130

Comments

@Muskan-0618
Copy link

Muskan-0618 commented Jan 22, 2024

I am trying to create a local mirror of the NVD-data using vulnz tool.
When I am trying to build it using ./gradlew vulnz:build command, I am getting these messages:-

Task :open-vulnerability-store:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :vulnz:compileJava
Note: /Open-Vulnerability-Project/vulnz/src/main/java/io/github/jeremylong/vulnz/cli/commands/CveCommand.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :vulnz:spotbugsTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

Task :vulnz:spotbugsMain
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

BUILD SUCCESSFUL in 13s
35 actionable tasks: 34 executed, 1 up-to-date

And this is not generating the vulnz-5.1.1.jar in vulnz/build/libs directory.

Before this PR, these warnings and messages were there but still everything was working fine, but as this PR got merged, I am facing this issue.
Please help me out to resolve this issue.

jeremylong added a commit that referenced this issue Jan 22, 2024
resolves #128
updates copyright statement for current year
jeremylong added a commit that referenced this issue Jan 22, 2024
resolves #128
updates copyright statement for current year
@jeremylong
Copy link
Owner

sorry about that - should be fixed now.

@Muskan-0618
Copy link
Author

It's still not working. Inside the vulnz/build/libs directory, there are only three jars:- vulnz-javadoc.jar, vulnz-sources.jar, vulnz.jar.
vulnz-5.1.1.jar is not there.

@jeremylong
Copy link
Owner

On my system after running:

git checkout main
git pull origin main

I then got the following:

$ ./gradlew clean build

> Task :open-vulnerability-store:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :vulnz:compileJava
Note: /Users/jeremy/Projects/vuln-tools/vulnz/src/main/java/io/github/jeremylong/vulnz/cli/commands/CveCommand.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :vulnz:spotbugsMain
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

> Task :vulnz:spotbugsTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

BUILD SUCCESSFUL in 57s
60 actionable tasks: 52 executed, 8 up-to-date
<-------------> 0% WAITING
> IDLE
> IDLE
> IDLE
> IDLE
> IDLE
~/Projects/vuln-tools[main*]  ‹11.0›
$ ls -la vulnz/build/libs 
total 84984
drwxr-xr-x   5 jeremy  staff       160 Jan 22 18:33 .
drwxr-xr-x  16 jeremy  staff       512 Jan 22 18:33 ..
-rw-r--r--   1 jeremy  staff    455361 Jan 22 18:33 vulnz-5.1.1-javadoc.jar
-rw-r--r--   1 jeremy  staff     25563 Jan 22 18:33 vulnz-5.1.1-sources.jar
-rwxr--r--   1 jeremy  staff  43022376 Jan 22 18:33 vulnz-5.1.1.jar

@Muskan-0618
Copy link
Author

I tried the same, but it's not working. It is working on checking out the commit of 15th dec, otherwise it's not.

@Muskan-0618
Copy link
Author

Muskan-0618 commented Feb 5, 2024

Hi @jeremylong ,
I tried it multiple times but I am still getting only these jars - vulnz-javadoc.jar, vulnz-sources.jar, vulnz.jar
Although, this is working if I am checking out at this commit - 6a0cec5 (15th dec)

Could you please have a look at this issue?

@jeremylong
Copy link
Owner

It is incredible hard to debug something that I cannot replicate. When I run ./gradlew clean build I then see:

$ ls vulnz/build/libs
vulnz-5.1.1-javadoc.jar vulnz-5.1.1-sources.jar vulnz-5.1.1.jar

The vulnz-5.1.1.jar file is present.

@jeremylong
Copy link
Owner

sorry for the delay on this... pretty sure I figured out the problem. I missed adding a file - so it was local and things were working on my machine but would fail for others:

#136

This should be fixed now.

@Muskan-0618
Copy link
Author

Yes, now it's working fine. Thank you @jeremylong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants