简体   繁体   中英

Java: Finding out Dependency Version of Non-Maven

I am presently dealing with mavenizing our Java-projekts. I got the jars and the source but no where is listed which dependency version they are using.

I already tried to find some help here but unfortunatly I couldn't.

Greetings

This is a tedious task that I remember well. You can try the following:

  1. If you are lucky, there is a META-INF\\maven\\ directory inside the jar. Then you can grab the GAV from them.

  2. You can also take the SHA1 checksum and search for it in Maven repositories (these often have a search function for checksums)

  3. You can use the MANIFEST.MF . Implementation-Version is a good point to look for.

  4. You can compare the classes to the classes of various artifacts from MavenCentral to figure out which is the most similar.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM