Posts tagged resource
Accessing bundled resources in Java packages
This is sort of a continuation of a previous post about how to integrate your own Java classes into the Maven build lifecycle. This entry described how to generate files for inclusion in the final project artifact (ie. .jar
, .war
etc.). It took me some time to figure out how to access these files using Java’s resource mechanism so this post will summarize my findings.