pom.xml
1 |
<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/maven-v4_0_0.xsd"> |
---|---|
2 |
<modelVersion>4.0.0</modelVersion> |
3 |
<groupId>org.dataone</groupId> |
4 |
<artifactId>d1_common_java</artifactId> |
5 |
<packaging>jar</packaging> |
6 |
<version>2.2.0-SNAPSHOT</version> |
7 |
<name>DataONE_Common_Java</name> |
8 |
<url>http://dataone.org</url> |
9 |
<description>DataONE Common Code with Service Interface Definitions</description> |
10 |
<properties>
|
11 |
<org.jibx.version>1.2.5</org.jibx.version> |
12 |
<d1_jibx_extensions.version>2.2.0-SNAPSHOT</d1_jibx_extensions.version> |
13 |
<d1_test_resources.version>2.2.0-SNAPSHOT</d1_test_resources.version> |
14 |
<org.apache.bcel.version>6.0-SNAPSHOT</org.apache.bcel.version> |
15 |
</properties>
|
16 |
<build>
|
17 |
<directory>target</directory> |
18 |
<sourceDirectory>src/main/java</sourceDirectory> |
19 |
<testSourceDirectory>src/test/java</testSourceDirectory> |
20 |
<outputDirectory>target/main-target</outputDirectory> |
21 |
<testOutputDirectory>target/test-target</testOutputDirectory> |
22 |
<resources>
|
23 |
<resource>
|
24 |
<directory>src/main/resources</directory> |
25 |
<filtering>true</filtering> |
26 |
<includes>
|
27 |
<include>buildInfo/buildInfo.properties</include> |
28 |
</includes>
|
29 |
</resource>
|
30 |
<resource>
|
31 |
<directory>src/main/resources</directory> |
32 |
<filtering>false</filtering> |
33 |
<includes>
|
34 |
<include>**/*.*</include> |
35 |
</includes>
|
36 |
</resource>
|
37 |
</resources>
|
38 |
<plugins>
|
39 |
<plugin>
|
40 |
<groupId>org.apache.maven.plugins</groupId> |
41 |
<artifactId>maven-compiler-plugin</artifactId> |
42 |
<configuration>
|
43 |
<source>1.8</source> |
44 |
<target>1.8</target> |
45 |
</configuration>
|
46 |
</plugin>
|
47 |
<plugin>
|
48 |
<groupId>org.codehaus.mojo</groupId> |
49 |
<artifactId>buildnumber-maven-plugin</artifactId> |
50 |
<executions>
|
51 |
<execution>
|
52 |
<phase>validate</phase> |
53 |
<goals>
|
54 |
<goal>create</goal> |
55 |
</goals>
|
56 |
</execution>
|
57 |
</executions>
|
58 |
<configuration>
|
59 |
<doCheck>false</doCheck> |
60 |
<doUpdate>false</doUpdate> |
61 |
</configuration>
|
62 |
</plugin>
|
63 |
<plugin>
|
64 |
<groupId>org.apache.maven.plugins</groupId> |
65 |
<artifactId>maven-jar-plugin</artifactId> |
66 |
<configuration>
|
67 |
<archive>
|
68 |
<manifestEntries>
|
69 |
<D1-version>${project.version}</D1-version> |
70 |
<D1-SCM-Revision>${buildNumber}</D1-SCM-Revision> |
71 |
<D1-SCM-Branch>${scmBranch}</D1-SCM-Branch> |
72 |
<D1-Build-TimeStamp>${timestamp}</D1-Build-TimeStamp> |
73 |
</manifestEntries>
|
74 |
</archive>
|
75 |
</configuration>
|
76 |
<executions>
|
77 |
<!-- make a test resources jar -->
|
78 |
<execution>
|
79 |
<goals>
|
80 |
<goal>test-jar</goal> |
81 |
</goals>
|
82 |
</execution>
|
83 |
</executions>
|
84 |
</plugin>
|
85 |
<plugin>
|
86 |
<groupId>org.apache.maven.plugins</groupId> |
87 |
<artifactId>maven-source-plugin</artifactId> |
88 |
<version>2.2.1</version> |
89 |
<executions>
|
90 |
<execution>
|
91 |
<id>attach-sources</id> |
92 |
<phase>package</phase> |
93 |
<goals>
|
94 |
<goal>jar-no-fork</goal> |
95 |
</goals>
|
96 |
</execution>
|
97 |
</executions>
|
98 |
</plugin>
|
99 |
|
100 |
<!-- take out the placeholder -->
|
101 |
<!-- need the placeholder element or else bad things happen when generating the classes it generated a class for the version so Identifier & Identifier1 no, i don't know why -->
|
102 |
|
103 |
<!--
|
104 |
<plugin>
|
105 |
<groupId>org.apache.maven.plugins</groupId>
|
106 |
<artifactId>maven-antrun-plugin</artifactId>
|
107 |
<executions>
|
108 |
<execution>
|
109 |
<id>ant-generate-jibx</id>
|
110 |
<phase>generate-sources</phase>
|
111 |
<configuration>
|
112 |
<tasks>
|
113 |
<property name="compile_classpath" refid="maven.compile.classpath"/>
|
114 |
<property name="runtime_classpath" refid="maven.runtime.classpath"/>
|
115 |
<ant antfile="buildDomain.xml" target="codegen"/>
|
116 |
</tasks>
|
117 |
</configuration>
|
118 |
<goals>
|
119 |
<goal>run</goal>
|
120 |
</goals>
|
121 |
</execution>
|
122 |
|
123 |
</executions>
|
124 |
<dependencies>
|
125 |
<dependency>
|
126 |
<groupId>org.apache.bcel</groupId>
|
127 |
<artifactId>bcel</artifactId>
|
128 |
<version>6.0-SNAPSHOT</version>
|
129 |
</dependency>
|
130 |
<dependency>
|
131 |
<groupId>ant</groupId>
|
132 |
<artifactId>ant-nodeps</artifactId>
|
133 |
<version>1.6.5</version>
|
134 |
</dependency>
|
135 |
<dependency>
|
136 |
<groupId>org.apache.ant</groupId>
|
137 |
<artifactId>ant-apache-oro</artifactId>
|
138 |
<version>1.8.4</version>
|
139 |
</dependency>
|
140 |
|
141 |
</dependencies>
|
142 |
</plugin>
|
143 |
-->
|
144 |
<plugin>
|
145 |
<artifactId>maven-clean-plugin</artifactId> |
146 |
<configuration>
|
147 |
<excludeDefaultDirectories>true</excludeDefaultDirectories> |
148 |
<filesets>
|
149 |
<fileset>
|
150 |
<directory>${project.build.directory}</directory> |
151 |
<excludes>
|
152 |
<exclude>**/*.jar</exclude> |
153 |
<exclude>**/.*</exclude> |
154 |
<exclude>**/.svn/*</exclude> |
155 |
</excludes>
|
156 |
<followSymlinks>false</followSymlinks> |
157 |
</fileset>
|
158 |
</filesets>
|
159 |
</configuration>
|
160 |
</plugin>
|
161 |
<plugin>
|
162 |
<groupId>org.jibx</groupId> |
163 |
<artifactId>maven-jibx-plugin</artifactId> |
164 |
<version>${org.jibx.version}</version> |
165 |
<configuration>
|
166 |
<schemaBindingDirectory>src/main/java</schemaBindingDirectory> |
167 |
<verbose>false</verbose> |
168 |
</configuration>
|
169 |
<executions>
|
170 |
<execution>
|
171 |
<goals>
|
172 |
<goal>bind</goal> |
173 |
</goals>
|
174 |
</execution>
|
175 |
</executions>
|
176 |
<dependencies>
|
177 |
<dependency>
|
178 |
<groupId>org.apache.bcel</groupId> |
179 |
<artifactId>bcel</artifactId> |
180 |
<version>${org.apache.bcel.version}</version> |
181 |
</dependency>
|
182 |
</dependencies>
|
183 |
</plugin>
|
184 |
<plugin>
|
185 |
<groupId>com.mycila.maven-license-plugin</groupId> |
186 |
<artifactId>maven-license-plugin</artifactId> |
187 |
<configuration>
|
188 |
<header>src/license-header.txt</header> |
189 |
</configuration>
|
190 |
</plugin>
|
191 |
<plugin>
|
192 |
<artifactId>maven-javadoc-plugin</artifactId> |
193 |
<version>2.9</version> |
194 |
<executions>
|
195 |
<execution>
|
196 |
<id>resource-bundles</id> |
197 |
<phase>package</phase> |
198 |
<goals>
|
199 |
<!-- produce source artifact for main project sources -->
|
200 |
<goal>resource-bundle</goal> |
201 |
</goals>
|
202 |
</execution>
|
203 |
</executions>
|
204 |
<configuration>
|
205 |
<!-- <additionalparam>-noqualifier org.dataone.*:java.lang.*</additionalparam> -->
|
206 |
<detectOfflineLinks>false</detectOfflineLinks> |
207 |
</configuration>
|
208 |
</plugin>
|
209 |
|
210 |
</plugins>
|
211 |
<pluginManagement>
|
212 |
<plugins>
|
213 |
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
|
214 |
<plugin>
|
215 |
<groupId>org.eclipse.m2e</groupId> |
216 |
<artifactId>lifecycle-mapping</artifactId> |
217 |
<version>1.0.0</version> |
218 |
<configuration>
|
219 |
<lifecycleMappingMetadata>
|
220 |
<pluginExecutions>
|
221 |
<pluginExecution>
|
222 |
<pluginExecutionFilter>
|
223 |
<groupId>
|
224 |
org.apache.maven.plugins |
225 |
</groupId>
|
226 |
<artifactId>
|
227 |
maven-antrun-plugin |
228 |
</artifactId>
|
229 |
<versionRange>
|
230 |
[1.3,) |
231 |
</versionRange>
|
232 |
<goals>
|
233 |
<goal>run</goal> |
234 |
</goals>
|
235 |
</pluginExecutionFilter>
|
236 |
<action>
|
237 |
<execute/> |
238 |
</action>
|
239 |
</pluginExecution>
|
240 |
<pluginExecution>
|
241 |
<pluginExecutionFilter>
|
242 |
<groupId>org.jibx</groupId> |
243 |
<artifactId>
|
244 |
maven-jibx-plugin |
245 |
</artifactId>
|
246 |
<versionRange>
|
247 |
[1.2.4,) |
248 |
</versionRange>
|
249 |
<goals>
|
250 |
<goal>bind</goal> |
251 |
</goals>
|
252 |
</pluginExecutionFilter>
|
253 |
<action>
|
254 |
<execute/> |
255 |
</action>
|
256 |
</pluginExecution>
|
257 |
</pluginExecutions>
|
258 |
</lifecycleMappingMetadata>
|
259 |
</configuration>
|
260 |
</plugin>
|
261 |
</plugins>
|
262 |
</pluginManagement>
|
263 |
</build>
|
264 |
<repositories>
|
265 |
<repository>
|
266 |
<id>sonatype.org</id> |
267 |
<url>https://repository.sonatype.org/content/shadows/centralm1</url> |
268 |
<releases>
|
269 |
<enabled>true</enabled> |
270 |
</releases>
|
271 |
<snapshots>
|
272 |
<enabled>false</enabled> |
273 |
</snapshots>
|
274 |
</repository>
|
275 |
<repository>
|
276 |
<id>Jibx Maven Repository</id> |
277 |
<url>http://jibx.sourceforge.net/maven/</url> |
278 |
</repository>
|
279 |
<repository>
|
280 |
<id>dataone.org</id> |
281 |
<url>http://maven.dataone.org/</url> |
282 |
<releases>
|
283 |
<enabled>true</enabled> |
284 |
</releases>
|
285 |
<snapshots>
|
286 |
<enabled>true</enabled> |
287 |
</snapshots>
|
288 |
</repository>
|
289 |
<!-- the apache snapshots repo is here only for the BCEL workaround -->
|
290 |
<!-- <repository>
|
291 |
<id>apache.snapshots</id>
|
292 |
<url>https://repository.apache.org/content/repositories/snapshots</url>
|
293 |
<snapshots>
|
294 |
<enabled>true</enabled>
|
295 |
<updatePolicy>always</updatePolicy>
|
296 |
</snapshots>
|
297 |
<releases>
|
298 |
<enabled>false</enabled>
|
299 |
</releases>
|
300 |
</repository> -->
|
301 |
</repositories>
|
302 |
<dependencies>
|
303 |
<dependency>
|
304 |
<groupId>org.apache.bcel</groupId> |
305 |
<artifactId>bcel</artifactId> |
306 |
<version>${org.apache.bcel.version}</version> |
307 |
</dependency>
|
308 |
<dependency>
|
309 |
<groupId>javax.mail</groupId> |
310 |
<artifactId>mail</artifactId> |
311 |
<version>1.4.1</version> |
312 |
<type>jar</type> |
313 |
<scope>compile</scope> |
314 |
</dependency>
|
315 |
<dependency>
|
316 |
<groupId>org.jibx</groupId> |
317 |
<artifactId>jibx-bind</artifactId> |
318 |
<version>${org.jibx.version}</version> |
319 |
<scope>provided</scope> |
320 |
</dependency>
|
321 |
<dependency>
|
322 |
<groupId>org.jibx</groupId> |
323 |
<artifactId>jibx-extras</artifactId> |
324 |
<version>${org.jibx.version}</version> |
325 |
<scope>provided</scope> |
326 |
</dependency>
|
327 |
<dependency>
|
328 |
<groupId>org.jibx</groupId> |
329 |
<artifactId>jibx-run</artifactId> |
330 |
<version>${org.jibx.version}</version> |
331 |
</dependency>
|
332 |
<dependency>
|
333 |
<groupId>org.jibx</groupId> |
334 |
<artifactId>jibx-schema</artifactId> |
335 |
<version>${org.jibx.version}</version> |
336 |
<scope>provided</scope> |
337 |
</dependency>
|
338 |
<dependency>
|
339 |
<groupId>org.jibx</groupId> |
340 |
<artifactId>jibx-tools</artifactId> |
341 |
<version>${org.jibx.version}</version> |
342 |
<scope>provided</scope> |
343 |
</dependency>
|
344 |
<dependency>
|
345 |
<groupId>org.jibx</groupId> |
346 |
<artifactId>maven-jibx-plugin</artifactId> |
347 |
<version>${org.jibx.version}</version> |
348 |
</dependency>
|
349 |
<!-- <dependency>
|
350 |
<groupId>org.apache.bcel</groupId>
|
351 |
<artifactId>bcel</artifactId>
|
352 |
<version>6.0-SNAPSHOT</version>
|
353 |
</dependency> -->
|
354 |
<dependency>
|
355 |
<groupId>joda-time</groupId> |
356 |
<artifactId>joda-time</artifactId> |
357 |
<version>2.1</version> |
358 |
</dependency>
|
359 |
<dependency>
|
360 |
<groupId>org.apache.maven.plugins</groupId> |
361 |
<artifactId>maven-compiler-plugin</artifactId> |
362 |
<version>2.3.1</version> |
363 |
<type>maven-plugin</type> |
364 |
<scope>compile</scope> |
365 |
</dependency>
|
366 |
<dependency>
|
367 |
<groupId>junit</groupId> |
368 |
<artifactId>junit</artifactId> |
369 |
<version>4.8.2</version> |
370 |
<type>jar</type> |
371 |
<scope>test</scope> |
372 |
</dependency>
|
373 |
<dependency>
|
374 |
<groupId>org.apache.maven.plugins</groupId> |
375 |
<artifactId>maven-jar-plugin</artifactId> |
376 |
<version>2.3.1</version> |
377 |
<type>maven-plugin</type> |
378 |
<scope>compile</scope> |
379 |
<exclusions>
|
380 |
<exclusion>
|
381 |
<groupId>commons-lang</groupId> |
382 |
<artifactId>commons-lang</artifactId> |
383 |
</exclusion>
|
384 |
</exclusions>
|
385 |
</dependency>
|
386 |
<dependency>
|
387 |
<groupId>org.apache.maven.plugins</groupId> |
388 |
<artifactId>maven-clean-plugin</artifactId> |
389 |
<version>2.4.1</version> |
390 |
<type>maven-plugin</type> |
391 |
<scope>compile</scope> |
392 |
</dependency>
|
393 |
|
394 |
<dependency>
|
395 |
<groupId>commons-fileupload</groupId> |
396 |
<artifactId>commons-fileupload</artifactId> |
397 |
<version>1.3.1</version> |
398 |
</dependency>
|
399 |
|
400 |
|
401 |
<dependency>
|
402 |
<groupId>org.apache.httpcomponents</groupId> |
403 |
<artifactId>httpmime</artifactId> |
404 |
<version>4.3.3</version> |
405 |
</dependency>
|
406 |
|
407 |
|
408 |
<dependency>
|
409 |
<groupId>org.apache.commons</groupId> |
410 |
<artifactId>commons-collections4</artifactId> |
411 |
<version>4.0</version> |
412 |
</dependency>
|
413 |
|
414 |
<dependency>
|
415 |
<groupId>org.apache.commons</groupId> |
416 |
<artifactId>commons-lang3</artifactId> |
417 |
<version>3.3.2</version> |
418 |
</dependency>
|
419 |
|
420 |
<dependency>
|
421 |
<groupId>commons-configuration</groupId> |
422 |
<artifactId>commons-configuration</artifactId> |
423 |
<version>1.7</version> |
424 |
<!-- later versions changes getList() to return List<Object> instead of List<String>
|
425 |
so users will need to us getStringArray instead (refactor) -->
|
426 |
</dependency>
|
427 |
|
428 |
<dependency>
|
429 |
<groupId>commons-io</groupId> |
430 |
<artifactId>commons-io</artifactId> |
431 |
<version>2.4</version> |
432 |
</dependency>
|
433 |
|
434 |
<dependency>
|
435 |
<groupId>commons-beanutils</groupId> |
436 |
<artifactId>commons-beanutils</artifactId> |
437 |
<version>1.9.2</version> |
438 |
</dependency>
|
439 |
|
440 |
<dependency>
|
441 |
<groupId>javax.servlet</groupId> |
442 |
<artifactId>servlet-api</artifactId> |
443 |
<version>2.5</version> |
444 |
<type>jar</type> |
445 |
<scope>provided</scope> |
446 |
</dependency>
|
447 |
<!--
|
448 |
<dependency>
|
449 |
<groupId>qdox</groupId>
|
450 |
<artifactId>qdox</artifactId>
|
451 |
<version>1.6.1</version>
|
452 |
</dependency>
|
453 |
-->
|
454 |
<dependency>
|
455 |
<groupId>org.dataone</groupId> |
456 |
<artifactId>d1_jibx_extensions</artifactId> |
457 |
<version>${d1_jibx_extensions.version}</version> |
458 |
<type>jar</type> |
459 |
<scope>compile</scope> |
460 |
</dependency>
|
461 |
<dependency>
|
462 |
<groupId>org.dataone</groupId> |
463 |
<artifactId>d1_test_resources</artifactId> |
464 |
<version>${d1_test_resources.version}</version> |
465 |
<type>jar</type> |
466 |
<scope>test</scope> |
467 |
</dependency>
|
468 |
<dependency>
|
469 |
<groupId>org.apache.ant</groupId> |
470 |
<artifactId>ant</artifactId> |
471 |
<version>1.8.4</version> |
472 |
<scope>test</scope> |
473 |
</dependency>
|
474 |
</dependencies>
|
475 |
<licenses>
|
476 |
<license>
|
477 |
<name>Apache License, Version 2.0</name> |
478 |
<url>LICENSE.txt</url> |
479 |
</license>
|
480 |
</licenses>
|
481 |
<scm>
|
482 |
<url>https://repository.dataone.org/software/cicore</url> |
483 |
<connection>scm:svn:https://repository.dataone.org/software/cicore</connection> |
484 |
<developerConnection>scm:svn:https://repository.dataone.org/software/cicore</developerConnection> |
485 |
<tag>HEAD</tag> |
486 |
</scm>
|
487 |
<reporting>
|
488 |
<plugins>
|
489 |
<plugin>
|
490 |
<groupId>org.apache.maven.plugins</groupId> |
491 |
<artifactId>maven-javadoc-plugin</artifactId> |
492 |
</plugin>
|
493 |
</plugins>
|
494 |
</reporting>
|
495 |
</project>
|