sbt-onejar icon indicating copy to clipboard operation
sbt-onejar copied to clipboard

include main/resources in the jar

Open stla opened this issue 11 years ago • 1 comments

Hello, I have a file in main/resources and I want to include it in the jar. It is not included when running one-jar. Is there a way to include it ?

stla avatar May 09 '14 14:05 stla

Hi Stla, You can include it by explicitly providing through java options.

java -Dlogback.configurationFile="config.xml" -jar one-jar.jar

I had the same issue and resolved it like the above line.

yadavan88 avatar Mar 09 '15 11:03 yadavan88