Tim Moloney wrote:
I'd like to include resources from a jar file that I'm repackaging as
a bundle. The documentation for maven-bundle-plugin state that an
entire jar can be inlined or single files outside a jar can be
included in the resulting bundle. What I'd like to do is include
single files from a jar (e.g., LICENSE.txt).
If this functionality isn't there now, could it be implemented?
Something like the following would be so convenient.
<Include-Resource>
@foo.jar/META-INF/LICENSE.txt,
@foo.jar/META-INF/NOTICE.txt
</Include-Resource>
Thanks,
Tim
I was able to get the result that I needed by using the following.
<Include-Resource>
@foo.jar
<Include-Resource>
Unfortunately, this requires copying the jar file to the project
directory (which I don't know how to do in maven). I guess the
"@foo.jar/path/to/file" syntax originally suggested would have to find
foo.jar in the classpath.
Thanks,
Tim