bin.xml 4.5 KB
Newer Older
S
sewen 已提交
1 2 3 4 5 6 7 8 9 10 11 12
<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">
	<id>bin</id>
	<formats>
		<format>dir</format>
		<!--
		<format>tar.gz</format>
		<format>zip</format>
		-->
	</formats>
S
sewen 已提交
13

S
sewen 已提交
14 15
	<includeBaseDirectory>true</includeBaseDirectory>
	<baseDirectory>stratosphere-${project.version}</baseDirectory>
S
sewen 已提交
16

S
sewen 已提交
17 18 19 20 21 22 23 24
	<!-- copy all jar files and their dependencies -->
	<dependencySets>
		<dependencySet>
			<outputDirectory>lib</outputDirectory>
			<unpack>false</unpack>
			<useTransitiveDependencies>true</useTransitiveDependencies>
			<useProjectArtifact>false</useProjectArtifact>
			<useProjectAttachments>false</useProjectAttachments>
25 26 27
			<useTransitiveFiltering>true</useTransitiveFiltering>
			
			<excludes>
28
				<!--
29 30 31
				<exclude>**/*examples*.jar</exclude>
				<exclude>**/*javadoc*</exclude>
				<exclude>**/*sources*</exclude>
32
				-->
33 34 35 36 37 38
<!-- 				<exclude>eu.stratosphere:pact-clients:**</exclude> -->
				<!--
				  This is a hardcoded exclude-list containing all libraries that are exclusively used in pact-clients.
          The previous command did not work because it also excludes libraries that should be in lib, such as commons-io.
				-->
        <exclude>commons-fileupload:commons-fileupload</exclude>
39
        <exclude>org.eclipse.jetty:jetty-*</exclude>
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
			</excludes>
		</dependencySet>
		
		<dependencySet>
			<outputDirectory>lib_clients</outputDirectory>
			<unpack>false</unpack>
			<useTransitiveDependencies>true</useTransitiveDependencies>
			<useProjectArtifact>false</useProjectArtifact>
			<useProjectAttachments>false</useProjectAttachments>
			<useTransitiveFiltering>true</useTransitiveFiltering>
			
			<includes>
				<include>eu.stratosphere:pact-clients:**</include>
			</includes>
			
55
			<!--
S
sewen 已提交
56 57 58 59 60
			<excludes>
				<exclude>**/*examples*.jar</exclude>
				<exclude>**/*javadoc*</exclude>
				<exclude>**/*sources*</exclude>
			</excludes>
61
			-->
S
sewen 已提交
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
		</dependencySet>
	</dependencySets>

	<fileSets>

		<fileSet>
			<!-- copy start scripts -->
			<directory>src/main/stratosphere-bin/bin</directory>
			<outputDirectory>bin</outputDirectory>
			<fileMode>0755</fileMode>
		</fileSet>

		<fileSet>
			<!-- copy default configuration -->
			<directory>src/main/stratosphere-bin/conf</directory>
			<outputDirectory>conf</outputDirectory>
			<fileMode>0644</fileMode>
		</fileSet>

		<fileSet>
			<!-- create an empty log directory -->
83
			<directory>src/main/stratosphere-bin/</directory>
S
sewen 已提交
84 85 86
			<outputDirectory>log</outputDirectory>
			<fileMode>0644</fileMode>
			<excludes>
87
				<exclude>**/*</exclude>
S
sewen 已提交
88 89 90 91 92
			</excludes>
		</fileSet>

		<fileSet>
			<!-- create an empty dropin-lib directory -->
93
			<directory>src/main/stratosphere-bin/</directory>
S
sewen 已提交
94 95 96
			<outputDirectory>lib/dropin</outputDirectory>
			<fileMode>0644</fileMode>
			<excludes>
97
				<exclude>**/*</exclude>
S
sewen 已提交
98 99 100 101
			</excludes>
		</fileSet>

		<fileSet>
102 103 104
			<!-- copy *.txt files -->
			<directory>src/main/stratosphere-bin/</directory>
			<outputDirectory></outputDirectory>
S
sewen 已提交
105
			<fileMode>0644</fileMode>
106 107 108
			<includes>
				<include>*.txt</include>
			</includes>
S
sewen 已提交
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
		</fileSet>

		<fileSet>
			<!-- copy JavaDocs -->
			<!-- <directory>../target/apidocs</directory -->
			<directory>../target</directory>
			<includes>
				<include>stratosphere-*-javadoc.jar</include>
			</includes>
			<outputDirectory>docs/javadoc</outputDirectory>
			<fileMode>0644</fileMode>
		</fileSet>

		<fileSet>
			<!-- copy files for PACT web frontend -->
			<directory>../pact/pact-clients/resources</directory>
			<outputDirectory>resources</outputDirectory>
			<fileMode>0644</fileMode>
			<excludes>
				<exclude>*etc/users</exclude>
			</excludes>
		</fileSet>

		<fileSet>
			<!-- copy jar files of pact job examples -->
			<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>
144 145 146 147 148 149 150 151 152 153 154 155 156

		<fileSet>
			<!-- copy jar files of pact job examples -->
			<directory>../pact-scala/pact-scala-examples/target</directory>
			<outputDirectory>examples/pact-scala/</outputDirectory>
			<fileMode>0644</fileMode>
			<includes>
				<include>*.jar</include>
			</includes>
			<excludes>
				<exclude>pact-scala-examples-${project.version}.jar</exclude>
			</excludes>
		</fileSet>
S
sewen 已提交
157
	</fileSets>
S
sewen 已提交
158 159

</assembly>