Here is a really small example about using the JHades tool
Why am I posting this?
Because the example in the home page is a little bit outdated and if you search JHades for the maven dependency the first 4 links you hit get it wrong.
Maven Dependency
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.jhades</groupId> | |
<artifactId>jhades</artifactId> | |
<version>1.0.4</version> | |
</dependency> |
Java Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jhades.JHades; | |
new JHades() | |
.printClassLoaderNamess() | |
.printClasspath() | |
.overlappingJarsReport() | |
.multipleClassVersionsReport() | |
.findClassByName("org.jhades.SomeServiceImpl") |
If you have issues during tests. Just create a test where the test method has this code.
Hope this helps!
No hay comentarios:
Publicar un comentario