I have a versioned ZIP file deployed in my artifact repository that I need to download, extract, and include as a resource with Maven.
I have been successful using the maven-dependency-plugin
to retrieve the artifact and extract it during the package
phase with the unpack
goal. I see the extracted ZIP where I want it in the build directory. I then have that unpacked directory included as a resource. I can see the directory getting included with the appropriate files inside of the source-jar/myProject-sources.jar
. I do not see this folder included in the final JAR myProject.jar
.
Any suggestions or examples on how to include this extracted resource would be appreciated.