License Public Domain
Lines 21
Keywords
assembly (1) build (2) maven (5) zip (5)
Permissions
Owner: monkey103
Viewable by Everyone
Editable by All Siafoo Users
Hide
Stay up to dateembedded code automagically updates, each snippet and article has a feed Join Siafoo Now or Learn More

Maven - build and install zip artifacts Atom Feed 0

In Brief It's important to attach it to the package phase. Installs zip, tar.gz etc. to the repo.... more
# 's
 1        <build>
2 <plugins>
3 <plugin>
4 <artifactId>maven-assembly-plugin</artifactId>
5 <version>2.2-beta-5</version>
6 <executions>
7 <execution>
8 <phase>package</phase>
9 <goals>
10 <goal>single</goal>
11 </goals>
12 <configuration>
13 <descriptorRefs>
14 <descriptorRef>src</descriptorRef>
15 </descriptorRefs>
16 </configuration>
17 </execution>
18 </executions>
19 </plugin>
20 </plugins>
21 </build>

It's important to attach it to the package phase. Installs zip, tar.gz etc. to the repo.

The descriptor is a ready-made descriptor available in Maven 2.2