java - How to create zip target instead of jar in maven? -


Can someone help me create zip targets instead of jar in the Major? I tried several methods but Did not progress. The descriptor file given in the assembly path is as follows:

  & lt; Assembly & gt; & Lt; Formats & gt; & Lt; Format & gt; ZIP & lt; / Format & gt; & Lt; / Formats & gt; & Lt; Fileset & gt; & Lt; Fileset & gt; & Lt; Directory & gt; Src / main & lt; / Directory & gt; & Lt; / Fileset & gt; & Lt; / Fileset & gt; & Lt; / Assembly & gt; 

& lt; Plugins & gt; & Lt; Plugin & gt; & Lt; ArtifactId & gt; Maven-assembly-plug-in & lt; / ArtifactId> & Lt; Configuration & gt; & Lt; Descriptor & gt; & Lt; Descriptor & gt; Src / assembly / descriptor.xml & lt; / Narrator & gt; & Lt; / Narrator & gt; & Lt; / Configuration & gt; & Lt; / Plugin & gt; & Lt; / Plugins & gt; & Lt; / Create & gt;

Last output:

  [INFO] --- Maven-Jar-plugin: 2.4: jar (default-jar) @ sql1 --- [ INFO] Building Jar: C: \ Divakar \ mvn_project \ sql1 \ target \ sql1-0.1.jar [INFO] -------------------------- ---------------------------------------------- [INFO] Ready Success is required to bind the plugin in a special life silice phase via execution like this.  

:

After this you can call it mvn clean package .

.

Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -