-
Notifications
You must be signed in to change notification settings - Fork 12
/
README
70 lines (48 loc) · 2.58 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
===============================
Introduction
===============================
cascading.utils is an open source set of utilities for Cascading workflows that we
use here at Scale Unlimited for the Bixo Java web mining toolkit and other projects.
There are classes that wrap Cascading Tuples with "datum" objects, a few utility classes
such as TupleLogger and SplitterAssembly, some classes to help monitor running
workflows, etc.
cascading.utils is licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
===============================
Building
===============================
You need Apache Ant 1.7 or higher.
To get a list of valid targets:
% cd <project directory>
% ant -p
To clean and build a jar (which also runs all tests):
% ant clean jar
Note that "ant clean jar" will currently fail, due to a bug in the maven ant task
plugin used for managing dependencies. After it does, execute the following commands
in order to replace the corrupt pom in your local Maven repository:
% rm ~/.m2/repository/net/java/jvnet-parent/1/jvnet-parent-1.pom
% mvn eclipse:eclipse
% ant clean jar
After this, subsequent builds should all succeed.
To create Eclipse project files:
% ant eclipse
Then, from Eclipse follow the standard procedure to import an existing Java project
into your Workspace.
NOTE: Invalid 3rd Pary Jars
Sometimes during a build you'll run into this kind of error:
[javac] error: error reading /Users/kenkrugler/.m2/repository/asm/asm/3.1/asm-3.1.jar; error in opening zip file
[javac] error: error reading /Users/kenkrugler/.m2/repository/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar; error in opening zip file
[javac] error: error reading /Users/kenkrugler/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar; error in opening zip file
The issue is that some Maven repositories return redirect results when a download
is requested (e.g. glassfish is one of these). When that happens, the maven-ant
task we're using fails, and creates a jar that's actually the HTML redirect page.
The solution is to (a) delete all of the directories in your local maven repo that
contain invalid jars, and then (b) run `mvn eclipse` to trigger the download
of the jars using standard Maven, which correctly handles redirects.
E.g. for the above, I did:
rm -rf ~/.m2/repository/asm/asm/3.1/
rm -rf ~/.m2/repository/org/codehaus/jettison/jettison/1.1/
rm -rf ~/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/
mvn eclipse