kordamp / jarviz Goto Github PK
View Code? Open in Web Editor NEW☕️ JAR file analyzer
License: Apache License 2.0
☕️ JAR file analyzer
License: Apache License 2.0
Calculate checksums for local JARs and compare them with their remote counterpart published at Maven Central. GAV coordinates must be known.
When --gav
is used and the file is downloaded (cached) for the first time there's probably no need to check.
When other inputs are given (no explicit gav
) then files must be inspected for their matching /META-INF/maven/**/<artifactId>/pom.properties
entry, which will provide gav
coordinates. If no matching entry is found then there's no gav
thus causing a failure.
Is your feature request related to a problem? Please describe.
The problem is I'm reading the documentation and I don't get it. It's not clear how to use the tool
Describe the solution you'd like
A more detailed documentation would be appreciated
Describe alternatives you've considered
Make a video tutorial and post it on youtube
Additional context
Happy new year!!
Running for example jarviz module descriptor --file <JAR>
to analyze a local JAR file should not create an emtpy cache/jarviz
directory (used to store copies of remote files).
Copy/paste should do the job out of the box (for lazy people like me 💭 😄 )
$
Linux Mint 20.3 Una
openjdk version "1.8.0_265"
OpenJDK Runtime Environment (build 1.8.0_265-b01)
OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)
Run :
jbang jarviz@kordamp --help
Get the following output :
[jbang] [ERROR] No alias found with name 'jarviz'
[jbang] Run with --verbose for more details
Linux Mint 20.3 Una
openjdk version "1.8.0_265"
Is your feature request related to a problem? Please describe.
It would be great to automatically check if jars are valid at build time.
Describe the solution you'd like
Create a Maven Enforcer rule that checks the validity of jars.
Describe alternatives you've considered
The default lifecycle phase of Maven Enforcer is validate
while jars are created at package
phase.
So, it might be better to create a Maven plugin instead.
Additional context
today jarviz assumes single file, url or GAV.
would be nice if --classpath
or similar would be an option then you could do things like:
jarviz manifest show --classpath=
jbang info classpath env@jbangdev`
And easily get info about all jars referenced on the classpath rather than the single one.
jarviz module descriptor --classpath=`jbang info classpath env@jbangdev`
java.lang.module.FindException: Unable to derive module descriptor for /Users/manderse/.m2/repository/de/vandermeer/char-translation/0.0.2/char-translation-0.0.2.jar
Unable to derive module descriptor for /Users/manderse/.m2/repository/de/vandermeer/char-translation/0.0.2/char-translation-0.0.2.jar
I would have expected it would list char-translation-0.0.2.jar to not have module descriptor together with rest of the classpath entries.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.