java - Maven tar target output folder -


I currently have a Maven project, as structured:

  -Part modules / -ld_module 1 / -scripts_directory / -src / -main / -java / -resources / -test / -child_module2 / -scripts_directory / -src / -main / -java / -resources / -test / -child_module3 / ... (above the hair module as the same structure)  

When this project is created, then each child makes a jar for the module and it is a Place in general directory Transmits; Every child copies all the dependency in the same directory; Copies the contents of the module of each child in another normal directory to scripts_directory ; And finally all your resources in another general directory

then the final structure is after installing mvn:

  / packages / mymavenapp / -conf / (All resources of each child's modules include resources) -Lib / (It includes all children module jars (compiled) and their dependencies) -Chil_am odule 1.jar- child_module2 Zer -ChildMule 3.Jere -Syping Jar -More dependency jar-script / / (All the children's scripts include all the contents in the directory) -Root_Chill 1_jar.pl-run_child2_jar.pl-run_child3_jar.pl  

I currently have the structure of this building working. I would like to push tar directory / packages / mymavenapp to mymavenapp.tar.gz and its nodes.

I know that I can have a shell script that troubles this directory, but wants to know that I can easily do it in the Maven Build cycle

Edit:

> The location of the last destination directory is not important, therefore the target directory

  mymavenapp /  

directory of the original module Inside the structure of mymavenapp / Mr. ie stays I mymavenapp / conf / ; mymavenapp / lib / ; mymavenapp / scripts /

You can use it in saperate build profile Build build with build profile The end of the Evolution Maven Build

The assembly plugin is very flexible and it takes a configuration file where you can define your input files and the tar file inside the location of that file and The location of the last tar file for example


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -