The entire project resource pack

 1     <build>
 2         <finalName>bootstrap</finalName>
 3         <sourceDirectory>${basedir}/src/main/</sourceDirectory>
 4         <filters>
 5             <filter>../conf/conf-pub.properties</filter>
 6         </filters>
 7         <plugins>
 8             <plugin>
 9                 <artifactId>Assembly-plugin-Maven </ the artifactId > 
10                  < Configuration > 
. 11                      < descriptorRefs > 
12 is                          <! - the default descriptorRef, maven-assembly-plugin can be built with several assembly descriptor: -> 
13                          <-!   bin: similar to the default package, the files in the bin directory will hit the bag -> 
14                          <-!   JAR-with-the Dependencies: will all depend extracted the package to the resultant [the demand just is All packages also depend] -> 
15                          <-!   src: only the files in the package source directory -> 
16                          <-!   project: the entire project will be packaged resources -> 
17                          < descriptorRef > JAR-with-the Dependencies</descriptorRef>
18                     </descriptorRefs>
19                 </configuration>
20                 <executions>
21                     <execution>
22                         <id>make-assembly</id>
23                         <phase>package</phase>
24                         <goals>
25                             <goal>single</goal>
26                         </goals>
27                     </execution>
28                 </executions>
29             </plugin>
30             <plugin>
31                 <groupId>org.apache.maven.plugins</groupId>
32                 <artifactId>maven-assembly-plugin</artifactId>
33                 <executions>
34                     <execution>
35                         <id>endv-package</id>
36                         <phase>package</phase>
37                         <goals>
38                             <goal>single</goal>
39                         </goals>
40                         <configuration>
41                             <descriptors>
42                                 <descriptor>${basedir}/assembly.xml</descriptor>
43                             </descriptors>
44                             <tarLongFileMode>gnu</tarLongFileMode>
45                         </configuration>
46                     </execution>
47                 </executions>
48             </plugin>
49         </plugins>
50         <resources>
51             <resource>
52                 <directory>src/main/resources</directory>
53                 <includes>
54                     <include>**/*</include>
55                 </includes>
56                 <filtering>true</filtering>
57             </resource>
58         </resources>
59     </build>

 

Guess you like

Origin www.cnblogs.com/endv/p/11206872.html