radlan
radlan

Reputation: 2563

Using a jar as ressource with maven

I have the same problem as in question Reference jars inside a jar. I have a jar containing icons for my application. That jar resides in src/main/ressources. On build maven places this jar as is into the applications jar (so I have a jar inside a jar). Therefore I cannot reference the files in the icons.jar anymore.

What is the recommended approach or best practice to handle this situation?

Upvotes: 0

Views: 77

Answers (1)

user180100
user180100

Reputation:

I would use this jar on the classpath (as a dependency), you should be able to reference your icons from there. This is more or less what's done in webjars (see http://www.webjars.org/) with JS/Css/images

Upvotes: 3

Related Questions