IBM / codenet-minerva-code-analyzer

Java source code (and/or binary) to JSON based system dependency graph generator.
Apache License 2.0
4 stars 6 forks source link

Suggestion: use library dependencies from local repository (~/.m2/repository) as preferred alternative to `.library-dependencies` #33

Closed scottkurz closed 2 weeks ago

scottkurz commented 4 months ago

Copying dependencies to .library-dependencies takes up space and now requires an extra .gitignore or possible clean action.

Since this tool is already Maven-aware could it simply build whatever "classpath" it's using this directory for and point to the JARs in the local ~/.m2/repository. This may require some piece of the Maven lifecycle to have run to download those deps but this is probably already happening.

sinha108 commented 4 months ago

@scottkurz: The .library-dependencies directory is now removed at the end of the analysis run, so it exists only temporarily while the analysis is running (also the directory has been renamed to _library_dependencies); this should avoid the space/clenaup issues you mentioned.

scottkurz commented 2 weeks ago

Running into issues (probably permissions) on Windows..opened https://github.com/IBM/codenet-minerva-code-analyzer/issues/74