Advertisement
NLinker

assembly plugin integration

Jan 10th, 2017
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.14 KB | None | 0 0
  1. <!-- dist-assembly.xml -->
  2. <?xml version='1.0' encoding='UTF-8'?>
  3. <assembly xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.          xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
  5.          xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
  6.   <id>distr</id>
  7.   <formats>
  8.     <format>zip</format>
  9.   </formats>
  10.   <dependencySets>
  11.     <dependencySet>
  12.       <useProjectArtifact>false</useProjectArtifact>
  13.       <outputDirectory>lib</outputDirectory>
  14.     </dependencySet>
  15.   </dependencySets>
  16.   <fileSets>
  17.     <fileSet>
  18.       <directory>${project.basedir}/bin</directory>
  19.       <includes>
  20.         <include>*.sh</include>
  21.       </includes>
  22.       <fileMode>755</fileMode>
  23.       <outputDirectory>bin</outputDirectory>
  24.     </fileSet>
  25.     <fileSet>
  26.       <directory>${project.basedir}/bin</directory>
  27.       <excludes>
  28.         <exclude>*.sh</exclude>
  29.       </excludes>
  30.       <outputDirectory>bin</outputDirectory>
  31.     </fileSet>
  32.     <fileSet>
  33.       <directory>${project.build.directory}/filtered-resources</directory>
  34.       <outputDirectory>config</outputDirectory>
  35.       <excludes>
  36.         <exclude>META-INF/**</exclude>
  37.       </excludes>
  38.     </fileSet>
  39.   </fileSets>
  40.   <files>
  41.     <file>
  42.       <source>${project.build.directory}/${project.build.finalName}-classes.jar</source>
  43.       <destName>vertigows-resolver-ws.jar</destName>
  44.       <outputDirectory>bin</outputDirectory>
  45.     </file>
  46.   </files>
  47. </assembly>
  48.  
  49. <!-- pom.xml -->
  50.   <build>
  51.     <plugins>
  52.       <plugin>
  53.         <groupId>org.apache.maven.plugins</groupId>
  54.         <artifactId>maven-assembly-plugin</artifactId>
  55.         <configuration>
  56.           <descriptors>
  57.             <descriptor>assembly/distr-assembly.xml</descriptor>
  58.           </descriptors>
  59.         </configuration>
  60.         <executions>
  61.           <execution>
  62.             <id>make-assembly</id>
  63.             <phase>package</phase>
  64.             <goals>
  65.               <goal>single</goal>
  66.             </goals>
  67.           </execution>
  68.         </executions>
  69.       </plugin>
  70.     </plugins>
  71.   </build>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement