java - How to access file inside maven shaded jar -
i'm using maven shade make shaded .jar file jetty project. project includes resource files (text property files) i'd read.
how access files inside said .jar file?
the current folder structure inside jar when viewed file extraction tool following:
-com -some -domain -accessfilefromhere.class -fileiwanttoaccess.sql
i want access files in combined jar files root named fileiwanttoaccess.sql
. want access file java class accessfilefromhere.class
created accessfilefromhere.java
.
the question asked here accessing jar file: access file in jar file?
can't used not using shaded jar file.
a jar jar. classloader doesn't make difference how jar created, either or without shading, maven, ant, etc... "access file in jar file" contains correct answer.
Comments
Post a Comment