|
36 | 36 | <spark.jar.dir>scala-${scala.binary.version}</spark.jar.dir> |
37 | 37 | <spark.jar.basename>spark-assembly-${project.version}-hadoop${hadoop.version}.jar</spark.jar.basename> |
38 | 38 | <spark.jar>${project.build.directory}/${spark.jar.dir}/${spark.jar.basename}</spark.jar> |
39 | | - <deb.pkg.name>spark</deb.pkg.name> |
40 | | - <deb.install.path>/usr/share/spark</deb.install.path> |
41 | | - <deb.user>root</deb.user> |
42 | | - <deb.bin.filemode>744</deb.bin.filemode> |
43 | 39 | </properties> |
44 | 40 |
|
45 | 41 | <dependencies> |
46 | | - <!-- Promote Guava to compile scope in this module so it's included while shading. --> |
47 | | - <dependency> |
48 | | - <groupId>com.google.guava</groupId> |
49 | | - <artifactId>guava</artifactId> |
50 | | - <scope>compile</scope> |
51 | | - </dependency> |
52 | 42 | <dependency> |
53 | 43 | <groupId>org.apache.spark</groupId> |
54 | 44 | <artifactId>spark-core_${scala.binary.version}</artifactId> |
|
124 | 114 | <exclude>META-INF/*.RSA</exclude> |
125 | 115 | </excludes> |
126 | 116 | </filter> |
| 117 | + <filter> |
| 118 | + <!-- Exclude libgfortran, libgcc for license issues --> |
| 119 | + <artifact>org.jblas:jblas</artifact> |
| 120 | + <excludes> |
| 121 | + <!-- Linux amd64 is OK; not statically linked --> |
| 122 | + <exclude>lib/static/Linux/i386/**</exclude> |
| 123 | + <exclude>lib/static/Mac OS X/**</exclude> |
| 124 | + <exclude>lib/static/Windows/**</exclude> |
| 125 | + </excludes> |
| 126 | + </filter> |
127 | 127 | </filters> |
128 | 128 | </configuration> |
129 | 129 | <executions> |
|
133 | 133 | <goal>shade</goal> |
134 | 134 | </goals> |
135 | 135 | <configuration> |
136 | | - <relocations> |
137 | | - <relocation> |
138 | | - <pattern>com.google</pattern> |
139 | | - <shadedPattern>org.spark-project.guava</shadedPattern> |
140 | | - <includes> |
141 | | - <include>com.google.common.**</include> |
142 | | - </includes> |
143 | | - <excludes> |
144 | | - <exclude>com/google/common/base/Absent*</exclude> |
145 | | - <exclude>com/google/common/base/Optional*</exclude> |
146 | | - <exclude>com/google/common/base/Present*</exclude> |
147 | | - </excludes> |
148 | | - </relocation> |
149 | | - </relocations> |
150 | 136 | <transformers> |
151 | 137 | <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
152 | 138 | <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> |
|
237 | 223 | </plugins> |
238 | 224 | </build> |
239 | 225 | </profile> |
240 | | - <profile> |
241 | | - <id>deb</id> |
242 | | - <build> |
243 | | - <plugins> |
244 | | - <plugin> |
245 | | - <groupId>org.codehaus.mojo</groupId> |
246 | | - <artifactId>buildnumber-maven-plugin</artifactId> |
247 | | - <version>1.2</version> |
248 | | - <executions> |
249 | | - <execution> |
250 | | - <phase>validate</phase> |
251 | | - <goals> |
252 | | - <goal>create</goal> |
253 | | - </goals> |
254 | | - <configuration> |
255 | | - <shortRevisionLength>8</shortRevisionLength> |
256 | | - </configuration> |
257 | | - </execution> |
258 | | - </executions> |
259 | | - </plugin> |
260 | | - <plugin> |
261 | | - <groupId>org.vafer</groupId> |
262 | | - <artifactId>jdeb</artifactId> |
263 | | - <version>0.11</version> |
264 | | - <executions> |
265 | | - <execution> |
266 | | - <phase>package</phase> |
267 | | - <goals> |
268 | | - <goal>jdeb</goal> |
269 | | - </goals> |
270 | | - <configuration> |
271 | | - <deb>${project.build.directory}/${deb.pkg.name}_${project.version}-${buildNumber}_all.deb</deb> |
272 | | - <attach>false</attach> |
273 | | - <compression>gzip</compression> |
274 | | - <dataSet> |
275 | | - <data> |
276 | | - <src>${spark.jar}</src> |
277 | | - <type>file</type> |
278 | | - <mapper> |
279 | | - <type>perm</type> |
280 | | - <user>${deb.user}</user> |
281 | | - <group>${deb.user}</group> |
282 | | - <prefix>${deb.install.path}/jars</prefix> |
283 | | - </mapper> |
284 | | - </data> |
285 | | - <data> |
286 | | - <src>${basedir}/src/deb/RELEASE</src> |
287 | | - <type>file</type> |
288 | | - <mapper> |
289 | | - <type>perm</type> |
290 | | - <user>${deb.user}</user> |
291 | | - <group>${deb.user}</group> |
292 | | - <prefix>${deb.install.path}</prefix> |
293 | | - </mapper> |
294 | | - </data> |
295 | | - <data> |
296 | | - <src>${basedir}/../conf</src> |
297 | | - <type>directory</type> |
298 | | - <mapper> |
299 | | - <type>perm</type> |
300 | | - <user>${deb.user}</user> |
301 | | - <group>${deb.user}</group> |
302 | | - <prefix>${deb.install.path}/conf</prefix> |
303 | | - <filemode>744</filemode> |
304 | | - </mapper> |
305 | | - </data> |
306 | | - <data> |
307 | | - <src>${basedir}/../bin</src> |
308 | | - <type>directory</type> |
309 | | - <mapper> |
310 | | - <type>perm</type> |
311 | | - <user>${deb.user}</user> |
312 | | - <group>${deb.user}</group> |
313 | | - <prefix>${deb.install.path}/bin</prefix> |
314 | | - <filemode>${deb.bin.filemode}</filemode> |
315 | | - </mapper> |
316 | | - </data> |
317 | | - <data> |
318 | | - <src>${basedir}/../sbin</src> |
319 | | - <type>directory</type> |
320 | | - <mapper> |
321 | | - <type>perm</type> |
322 | | - <user>${deb.user}</user> |
323 | | - <group>${deb.user}</group> |
324 | | - <prefix>${deb.install.path}/sbin</prefix> |
325 | | - <filemode>744</filemode> |
326 | | - </mapper> |
327 | | - </data> |
328 | | - <data> |
329 | | - <src>${basedir}/../python</src> |
330 | | - <type>directory</type> |
331 | | - <mapper> |
332 | | - <type>perm</type> |
333 | | - <user>${deb.user}</user> |
334 | | - <group>${deb.user}</group> |
335 | | - <prefix>${deb.install.path}/python</prefix> |
336 | | - <filemode>744</filemode> |
337 | | - </mapper> |
338 | | - </data> |
339 | | - </dataSet> |
340 | | - </configuration> |
341 | | - </execution> |
342 | | - </executions> |
343 | | - </plugin> |
344 | | - </plugins> |
345 | | - </build> |
346 | | - </profile> |
347 | 226 | <profile> |
348 | 227 | <id>kinesis-asl</id> |
349 | 228 | <dependencies> |
|
0 commit comments