Skip to content
Advertisement

zip some modules including target directory from multi-module maven project

I have a multi-module maven project with the below hierarchy and wanted to create a zip after the mvn build and curl or upload it to one private repository. I am using the maven-assembly-plugin but it is not including the required directory. Please can you suggest something?

JavaScript

I wanted to create a zip with subproject1 includes src, resources, and target folder. Kindly assist.

Advertisement

Answer

Using “jar -cf project.zip project-name” command, zip is getting created.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement