-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
228 lines (214 loc) · 9.83 KB
/
pom.xml
File metadata and controls
228 lines (214 loc) · 9.83 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>edu.mit.ll</groupId>
<artifactId>d4m_api_java</artifactId>
<version>2.6.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>d4m_api_java</name>
<description>Java connector between Accumulo and D4M Matlab library.</description>
<url>http://www.mit.edu/~kepner/D4M/</url>
<organization>
<name>MIT Lincoln Laboratory</name>
<url>https://www.ll.mit.edu/</url>
</organization>
<licenses>
<license>
<name>GNU General Public License, Version 3</name>
<url>https://www.gnu.org/licenses/gpl.html</url>
<comments>Yep, we're open source. Please cite where credit is due.</comments>
</license>
</licenses>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<DBinit.path.libextFolder>libext/</DBinit.path.libextFolder>
<DBinit.path.template>build_DBinit.m</DBinit.path.template>
<DBinit.path.outputFile>DBinit.m</DBinit.path.outputFile>
<DBinit.path.libextZip>libext-${project.version}.zip</DBinit.path.libextZip>
</properties>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/build_DBinit.bash</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>**/build_DBinit.bash</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source> <!-- Compile against JDK 1.7 -->
<target>1.7</target>
</configuration>
</plugin>
<!--Output test results to files so that they can be read by continuous integration servers-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.17</version>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<reportsDirectory>shippable/testresults</reportsDirectory>
<!--<argLine>-agentlib:jdwp=transport=dt_socket,server=n,address=127.0.0.1:5005,suspend=y</argLine>-->
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit4</artifactId>
<version>2.17</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<!-- Copy all original dependency JARs (including recursive dependencies) into target/libext
Note that the original JARs will have overlapping code, e.g.,
explicit deps accumulo-core and hadoop-hdfs may have a transitive dep commons-math. The commons-math dep is stored twice.
To store the dep once, use the build-single method. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.9</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/libext</outputDirectory>
<type>jar</type>
<includeScope>runtime</includeScope> <!-- Don't include the test scope - we don't need those classes for dependencies. -->
<!--<includeScope>compile</includeScope> Only adds the dep jdk-tools.jar, which has useless stuff provided by any jdk installation. -->
</configuration>
</execution>
</executions>
</plugin>
<plugin> <!-- Create a super-JAR out of the JARs for every dependncy in target/libext -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.5.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>${project.build.outputDirectory}/building/libext_assembly.xml</descriptor>
</descriptors>
<outputDirectory>${project.build.directory}</outputDirectory>
<finalName>libext-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
</executions>
</plugin>
<!-- Ensure this is the last step before the linux-specific profile for the message to be seen by non-linux users. -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<chmod file="${project.build.outputDirectory}/building/build_DBinit/build_DBinit.bash" perm="u+x"/>
<echo>If you are on linux, DBinit will build automatically.</echo>
<echo>If not building on linux, you may not be able to build DBinit.m.</echo>
<echo>Try and execute the following script once: (do not move the file)</echo>
<echo> ${project.build.outputDirectory}/building/build_DBinit/build_DBinit.bash</echo>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>linux-build-DBinit</id>
<activation>
<os>
<family>unix</family>
</os>
</activation>
<build>
<plugins>
<!-- Create DBinit.m on linux systems. -->
<plugin>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<version>1.3.2</version>
<executions>
<execution>
<id>Build DBinit</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${project.build.outputDirectory}/building/build_DBinit/build_DBinit.bash</executable>
<workingDirectory>${project.build.outputDirectory}</workingDirectory>
<!--<arguments>
<argument>${project.build.finalName}</argument>
<argument>../../libext/</argument>
<argument>build_DBinit.m</argument>
<argument>DBinit.m</argument>
</arguments>-->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>org.apache.accumulo</groupId>
<artifactId>accumulo-core</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.accumulo</groupId>
<artifactId>accumulo-minicluster</artifactId>
<version>1.6.1</version>
<scope>test</scope>
</dependency>
<!-- Used by some matlab JSON functions. -->
<dependency>
<groupId>org.json</groupId>
<artifactId>org.json</artifactId>
<version>chargebee-1.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>