I\'m trying to have a Project B pull down (and unpack) a ZIP built by Project A and deployed to a remote repository.
The ZIP is cre
Welcome to Stack Overflow :).
You are on the right way. Your real problem is using a zip.
The following configuration is ok and work great for me. It's an old one (2 years ago), and I'm not sure that match the best practices. But I Know that's working.
This allow me to share some resources between projects, especially for unit tests.
pom.xml
com.mycompany
cfg_dev
1.1.0
org.apache.maven.plugins
maven-assembly-plugin
cfg-main-resources
single
package
/src/main/assembly/resources.xml
Assembly descriptor : It will produce this artifact : cfg_dev-1.1.0-resources.zip Please, note that
the "classifier" is resources (like assembly name)
resources zip false src/main/resources
pom.xml
Please, note that
the dependency "classifier" is resources (like previous assembly name)
com.mycompany
cfg_dev
${project.version}
resources
zip
test
....
src/test/resources
true
${project.build.directory}/test-resources
true
org.apache.maven.plugins
maven-dependency-plugin
unpack-cfg-test-resources
unpack-dependencies
generate-test-resources
${project.build.directory}/test-resources
cfg_dev
${project.groupId}
true
pom
test
I hope this is clear and that will help you :)