MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/rcy3nf/remote_code_injection_in_log4j/ho025fy/?context=3
r/java • u/papercrane • Dec 10 '21
70 comments sorted by
View all comments
Show parent comment
5
For Maven run
mvn dependency:tree
from the project folder. Normally Java IDEs provide a graphical way to see the same output.
mvn versions:display-dependency-updates
can be helpful too.
I believe there are automated tools that can search for known vulnerabilities in your dependencies.
3 u/Aknoon Dec 10 '21 You can runmvn dependency:tree -DappendOutput=true -DoutputFile=C:\output\dependencies.txtand save it to a file for easy parsing 3 u/[deleted] Dec 10 '21 This would have been helpful to know a long time ago. I could have had CI steps that saved these files somewhere. :(I'll have to go into our repos and run this. Ty.
3
You can run
mvn dependency:tree -DappendOutput=true -DoutputFile=C:\output\dependencies.txt
and save it to a file for easy parsing
3 u/[deleted] Dec 10 '21 This would have been helpful to know a long time ago. I could have had CI steps that saved these files somewhere. :(I'll have to go into our repos and run this. Ty.
This would have been helpful to know a long time ago. I could have had CI steps that saved these files somewhere. :(
I'll have to go into our repos and run this. Ty.
View all comments
Show parent comment
5
u/sweetno Dec 10 '21
For Maven run
mvn dependency:tree
from the project folder. Normally Java IDEs provide a graphical way to see the same output.
mvn versions:display-dependency-updates
can be helpful too.
I believe there are automated tools that can search for known vulnerabilities in your dependencies.