bin.xml 3.2 KB
Newer Older
S
sewen 已提交
1 2 3
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
4
    <id>bin</id>
S
sewen 已提交
5 6
    <formats>
        <format>dir</format>
S
sewen 已提交
7 8
<!--        <format>tar.gz</format>
        <format>zip</format> -->
S
sewen 已提交
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
    </formats>

    <includeBaseDirectory>true</includeBaseDirectory>
    <baseDirectory>stratosphere-${project.version}</baseDirectory>
    
    <!-- copy all jar files and their dependencies -->
    <dependencySets>
        <dependencySet>
            <outputDirectory>lib</outputDirectory>
            <unpack>false</unpack>
            <useTransitiveDependencies>true</useTransitiveDependencies>
            <useProjectArtifact>false</useProjectArtifact>
            <useProjectAttachments>false</useProjectAttachments>

            <excludes>
24 25 26
              <exclude>**/*examples*.jar</exclude>
              <exclude>**/*javadoc*</exclude>
              <exclude>**/*sources*</exclude>
S
sewen 已提交
27 28
            </excludes>
        </dependencySet>
29
        
S
sewen 已提交
30 31 32
    </dependencySets>

    <fileSets>
33
    
S
sewen 已提交
34 35 36 37 38 39
    	<fileSet>
        <!-- copy start scripts -->
    		<directory>src/main/stratosphere-bin/bin</directory>
    		<outputDirectory>bin</outputDirectory>
    		<fileMode>0755</fileMode>
    	</fileSet>
40
    	
S
sewen 已提交
41 42 43 44 45 46
    	<fileSet>
        <!-- copy default configuration -->
    		<directory>src/main/stratosphere-bin/conf</directory>
    		<outputDirectory>conf</outputDirectory>
    		<fileMode>0644</fileMode>
    	</fileSet>
47
    	
S
sewen 已提交
48 49
    	<fileSet>
        <!-- create an empty log directory -->
50
    		<directory>src/main/stratosphere-bin/docs</directory>
S
sewen 已提交
51 52
    		<outputDirectory>log</outputDirectory>
    		<fileMode>0644</fileMode>
53 54 55 56 57 58 59 60 61 62
        		<excludes>
          			<exclude>*</exclude>
        		</excludes>
    	</fileSet>
    	
    	<fileSet>
        <!-- copy README file -->
    		<directory>src/main/stratosphere-bin/docs</directory>
    		<outputDirectory>docs</outputDirectory>
    		<fileMode>0644</fileMode>
S
sewen 已提交
63
    	</fileSet>
64
    	
S
sewen 已提交
65
    	<fileSet>
66 67
    	<!-- copy JavaDocs -->
    		<!--
68 69
    		<directory>../target/apidocs</directory
		-->
70 71 72 73 74
    		<directory>../target</directory>
    		<includes>
    			<include>stratosphere-*-javadoc.jar</include>
    		</includes>
    		<outputDirectory>docs/javadoc</outputDirectory>
S
sewen 已提交
75 76
    		<fileMode>0644</fileMode>
    	</fileSet>
77 78
    	
      	<fileSet>
S
sewen 已提交
79 80 81 82
        <!-- copy files for PACT web frontend -->
    		<directory>../pact/pact-clients/resources</directory>
    		<outputDirectory>resources</outputDirectory>
    		<fileMode>0644</fileMode>
83 84 85
        	<excludes>
          		<exclude>*etc/users</exclude>
        	</excludes>
S
sewen 已提交
86
    	</fileSet>
87 88
      
      	<fileSet>
S
sewen 已提交
89
        <!-- copy jar files of pact job examples -->
90 91 92 93 94 95 96 97 98 99
        	<directory>../pact/pact-examples/target</directory>
        	<outputDirectory>examples/pact/</outputDirectory>
        	<fileMode>0644</fileMode>
        	<includes>
          		<include>*.jar</include>
        	</includes>
        	<excludes>
          		<exclude>pact-examples-${project.version}.jar</exclude>
        	</excludes>
	    </fileSet>
S
sewen 已提交
100 101 102
    </fileSets>

</assembly>