Project

General

Profile

« Previous | Next » 

Revision 7628

Added by Jing Tao over 11 years ago

Add a new module for sharing the between the metacat and metacat-index.

View differences:

metacat-common/target/surefire-reports/TEST-edu.ucsb.nceas.metacat.common.AppTest.xml
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<testsuite failures="0" time="0.018" errors="0" skipped="0" tests="1" name="edu.ucsb.nceas.metacat.common.AppTest">
3
  <properties>
4
    <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
5
    <property name="sun.boot.library.path" value="/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/jre/lib"/>
6
    <property name="java.vm.version" value="23.7-b01"/>
7
    <property name="gopherProxySet" value="false"/>
8
    <property name="java.vm.vendor" value="Oracle Corporation"/>
9
    <property name="java.vendor.url" value="http://java.oracle.com/"/>
10
    <property name="path.separator" value=":"/>
11
    <property name="java.vm.name" value="Java HotSpot(TM) 64-Bit Server VM"/>
12
    <property name="file.encoding.pkg" value="sun.io"/>
13
    <property name="user.country" value="US"/>
14
    <property name="sun.java.launcher" value="SUN_STANDARD"/>
15
    <property name="sun.os.patch.level" value="unknown"/>
16
    <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
17
    <property name="user.dir" value="/Users/tao/projects/metacat/metacat-common"/>
18
    <property name="java.runtime.version" value="1.7.0_17-b02"/>
19
    <property name="java.awt.graphicsenv" value="sun.awt.CGraphicsEnvironment"/>
20
    <property name="basedir" value="/Users/tao/projects/metacat/metacat-common"/>
21
    <property name="java.endorsed.dirs" value="/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/jre/lib/endorsed"/>
22
    <property name="os.arch" value="x86_64"/>
23
    <property name="surefire.real.class.path" value="/Users/tao/projects/metacat/metacat-common/target/surefire/surefirebooter3741387489309197284.jar"/>
24
    <property name="java.io.tmpdir" value="/var/folders/wm/181tn94s679c1kzbvk2l1szr0000gp/T/"/>
25
    <property name="line.separator" value="
26
"/>
27
    <property name="java.vm.specification.vendor" value="Oracle Corporation"/>
28
    <property name="os.name" value="Mac OS X"/>
29
    <property name="sun.jnu.encoding" value="UTF-8"/>
30
    <property name="java.library.path" value="/Users/tao/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:."/>
31
    <property name="surefire.test.class.path" value="/Users/tao/projects/metacat/metacat-common/target/test-classes:/Users/tao/projects/metacat/metacat-common/target/classes:/Users/tao/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/Users/tao/.m2/repository/org/apache/solr/solr-core/3.4.0/solr-core-3.4.0.jar:/Users/tao/.m2/repository/org/apache/solr/solr-solrj/3.4.0/solr-solrj-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-core/3.4.0/lucene-core-3.4.0.jar:/Users/tao/.m2/repository/org/apache/zookeeper/zookeeper/3.3.1/zookeeper-3.3.1.jar:/Users/tao/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar:/Users/tao/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.7/wstx-asl-3.2.7.jar:/Users/tao/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/tao/.m2/repository/org/apache/solr/solr-noggit/3.4.0/solr-noggit-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-analyzers/3.4.0/lucene-analyzers-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-highlighter/3.4.0/lucene-highlighter-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-memory/3.4.0/lucene-memory-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-misc/3.4.0/lucene-misc-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-queries/3.4.0/lucene-queries-3.4.0.jar:/Users/tao/.m2/repository/jakarta-regexp/jakarta-regexp/1.4/jakarta-regexp-1.4.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-spatial/3.4.0/lucene-spatial-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-spellchecker/3.4.0/lucene-spellchecker-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-grouping/3.4.0/lucene-grouping-3.4.0.jar:/Users/tao/.m2/repository/org/apache/solr/solr-commons-csv/3.4.0/solr-commons-csv-3.4.0.jar:/Users/tao/.m2/repository/org/apache/geronimo/specs/geronimo-stax-api_1.0_spec/1.0.1/geronimo-stax-api_1.0_spec-1.0.1.jar:/Users/tao/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/Users/tao/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar:/Users/tao/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar:/Users/tao/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar:/Users/tao/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar:/Users/tao/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar:/Users/tao/.m2/repository/org/apache/velocity/velocity/1.6.4/velocity-1.6.4.jar:/Users/tao/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/Users/tao/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar:/Users/tao/.m2/repository/org/apache/velocity/velocity-tools/2.0/velocity-tools-2.0.jar:/Users/tao/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/Users/tao/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/Users/tao/.m2/repository/commons-chain/commons-chain/1.1/commons-chain-1.1.jar:/Users/tao/.m2/repository/commons-validator/commons-validator/1.3.1/commons-validator-1.3.1.jar:/Users/tao/.m2/repository/dom4j/dom4j/1.1/dom4j-1.1.jar:/Users/tao/.m2/repository/sslext/sslext/1.2-0/sslext-1.2-0.jar:/Users/tao/.m2/repository/org/apache/struts/struts-core/1.3.8/struts-core-1.3.8.jar:/Users/tao/.m2/repository/antlr/antlr/2.7.2/antlr-2.7.2.jar:/Users/tao/.m2/repository/org/apache/struts/struts-taglib/1.3.8/struts-taglib-1.3.8.jar:/Users/tao/.m2/repository/org/apache/struts/struts-tiles/1.3.8/struts-tiles-1.3.8.jar:/Users/tao/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:/Users/tao/.m2/repository/org/slf4j/slf4j-jdk14/1.6.1/slf4j-jdk14-1.6.1.jar:/Users/tao/.m2/repository/org/apache/solr/solr-test-framework/3.4.0/solr-test-framework-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-test-framework/3.4.0/lucene-test-framework-3.4.0.jar:/Users/tao/.m2/repository/org/apache/ant/ant-junit/1.7.1/ant-junit-1.7.1.jar:/Users/tao/.m2/repository/org/apache/ant/ant/1.7.1/ant-1.7.1.jar:/Users/tao/.m2/repository/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar:/Users/tao/.m2/repository/org/dataone/d1_common_java/1.2.0-SNAPSHOT/d1_common_java-1.2.0-SNAPSHOT.jar:/Users/tao/.m2/repository/javax/mail/mail/1.4.1/mail-1.4.1.jar:/Users/tao/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/Users/tao/.m2/repository/org/jibx/jibx-bind/1.2.4.5/jibx-bind-1.2.4.5.jar:/Users/tao/.m2/repository/bcel/bcel/5.1/bcel-5.1.jar:/Users/tao/.m2/repository/regexp/regexp/1.2/regexp-1.2.jar:/Users/tao/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:/Users/tao/.m2/repository/com/thoughtworks/qdox/qdox/1.12/qdox-1.12.jar:/Users/tao/.m2/repository/org/jibx/jibx-extras/1.2.4.5/jibx-extras-1.2.4.5.jar:/Users/tao/.m2/repository/org/jdom/jdom/1.1.3/jdom-1.1.3.jar:/Users/tao/.m2/repository/org/jibx/jibx-run/1.2.4.5/jibx-run-1.2.4.5.jar:/Users/tao/.m2/repository/xpp3/xpp3/1.1.3.4.O/xpp3-1.1.3.4.O.jar:/Users/tao/.m2/repository/org/jibx/jibx-schema/1.2.4.5/jibx-schema-1.2.4.5.jar:/Users/tao/.m2/repository/org/jibx/jibx-tools/1.2.4.5/jibx-tools-1.2.4.5.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.core.contenttype/3.4.100.v20110423-0524/org.eclipse.core.contenttype-3.4.100.v20110423-0524.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.core.jobs/3.5.100.v20110404/org.eclipse.core.jobs-3.5.100.v20110404.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.core.resources/3.7.100.v20110510-0712/org.eclipse.core.resources-3.7.100.v20110510-0712.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.core.runtime/3.7.0.v20110110/org.eclipse.core.runtime-3.7.0.v20110110.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.equinox.common/3.6.0.v20110523/org.eclipse.equinox.common-3.6.0.v20110523.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.equinox.preferences/3.4.0.v20110502/org.eclipse.equinox.preferences-3.4.0.v20110502.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.jdt.core/3.7.0.v_B61/org.eclipse.jdt.core-3.7.0.v_B61.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.osgi/3.7.0.v20110613/org.eclipse.osgi-3.7.0.v20110613.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.text/3.5.100.v20110505-0800/org.eclipse.text-3.5.100.v20110505-0800.jar:/Users/tao/.m2/repository/org/jibx/maven-jibx-plugin/1.2.4.5/maven-jibx-plugin-1.2.4.5.jar:/Users/tao/.m2/repository/org/apache/maven/maven-plugin-api/2.2.1/maven-plugin-api-2.2.1.jar:/Users/tao/.m2/repository/org/apache/maven/maven-project/2.2.1/maven-project-2.2.1.jar:/Users/tao/.m2/repository/org/apache/maven/maven-settings/2.2.1/maven-settings-2.2.1.jar:/Users/tao/.m2/repository/org/apache/maven/maven-profile/2.2.1/maven-profile-2.2.1.jar:/Users/tao/.m2/repository/org/apache/maven/maven-artifact-manager/2.2.1/maven-artifact-manager-2.2.1.jar:/Users/tao/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar:/Users/tao/.m2/repository/org/apache/maven/maven-plugin-registry/2.2.1/maven-plugin-registry-2.2.1.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar:/Users/tao/.m2/repository/joda-time/joda-time/2.1/joda-time-2.1.jar:/Users/tao/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/2.3.1/maven-compiler-plugin-2.3.1.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.jar:/Users/tao/.m2/repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar:/Users/tao/.m2/repository/org/apache/maven/maven-artifact/2.0.6/maven-artifact-2.0.6.jar:/Users/tao/.m2/repository/org/apache/maven/maven-core/2.0.6/maven-core-2.0.6.jar:/Users/tao/.m2/repository/org/apache/maven/wagon/wagon-file/1.0-beta-2/wagon-file-1.0-beta-2.jar:/Users/tao/.m2/repository/org/apache/maven/maven-plugin-parameter-documenter/2.0.6/maven-plugin-parameter-documenter-2.0.6.jar:/Users/tao/.m2/repository/org/apache/maven/wagon/wagon-http-lightweight/1.0-beta-2/wagon-http-lightweight-1.0-beta-2.jar:/Users/tao/.m2/repository/org/apache/maven/wagon/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.jar:/Users/tao/.m2/repository/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar:/Users/tao/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/Users/tao/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar:/Users/tao/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar:/Users/tao/.m2/repository/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar:/Users/tao/.m2/repository/org/apache/maven/maven-repository-metadata/2.0.6/maven-repository-metadata-2.0.6.jar:/Users/tao/.m2/repository/org/apache/maven/maven-error-diagnostics/2.0.6/maven-error-diagnostics-2.0.6.jar:/Users/tao/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar:/Users/tao/.m2/repository/org/apache/maven/wagon/wagon-ssh-external/1.0-beta-2/wagon-ssh-external-1.0-beta-2.jar:/Users/tao/.m2/repository/org/apache/maven/wagon/wagon-ssh-common/1.0-beta-2/wagon-ssh-common-1.0-beta-2.jar:/Users/tao/.m2/repository/org/apache/maven/maven-plugin-descriptor/2.0.6/maven-plugin-descriptor-2.0.6.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar:/Users/tao/.m2/repository/org/apache/maven/maven-monitor/2.0.6/maven-monitor-2.0.6.jar:/Users/tao/.m2/repository/org/apache/maven/wagon/wagon-ssh/1.0-beta-2/wagon-ssh-1.0-beta-2.jar:/Users/tao/.m2/repository/com/jcraft/jsch/0.1.27/jsch-0.1.27.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-compiler-api/1.8/plexus-compiler-api-1.8.jar:/Users/tao/.m2/repository/org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-compiler-manager/1.8/plexus-compiler-manager-1.8.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/1.8/plexus-compiler-javac-1.8.jar:/Users/tao/.m2/repository/org/apache/maven/plugins/maven-jar-plugin/2.3.1/maven-jar-plugin-2.3.1.jar:/Users/tao/.m2/repository/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.jar:/Users/tao/.m2/repository/org/apache/maven/maven-archiver/2.4.1/maven-archiver-2.4.1.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0/plexus-archiver-1.0.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-io/1.0/plexus-io-1.0.jar:/Users/tao/.m2/repository/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar:/Users/tao/.m2/repository/org/apache/httpcomponents/httpmime/4.1.3/httpmime-4.1.3.jar:/Users/tao/.m2/repository/org/apache/httpcomponents/httpcore/4.1.4/httpcore-4.1.4.jar:/Users/tao/.m2/repository/org/apache/httpcomponents/httpclient/4.1.3/httpclient-4.1.3.jar:/Users/tao/.m2/repository/commons-configuration/commons-configuration/1.7/commons-configuration-1.7.jar:/Users/tao/.m2/repository/org/dataone/d1_jibx_extensions/1.2.0-SNAPSHOT/d1_jibx_extensions-1.2.0-SNAPSHOT.jar:"/>
32
    <property name="java.specification.name" value="Java Platform API Specification"/>
33
    <property name="java.class.version" value="51.0"/>
34
    <property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
35
    <property name="os.version" value="10.8.2"/>
36
    <property name="http.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
37
    <property name="user.home" value="/Users/tao"/>
38
    <property name="user.timezone" value=""/>
39
    <property name="java.awt.printerjob" value="sun.lwawt.macosx.CPrinterJob"/>
40
    <property name="java.specification.version" value="1.7"/>
41
    <property name="file.encoding" value="UTF-8"/>
42
    <property name="user.name" value="tao"/>
43
    <property name="java.class.path" value="/Users/tao/projects/metacat/metacat-common/target/test-classes:/Users/tao/projects/metacat/metacat-common/target/classes:/Users/tao/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/Users/tao/.m2/repository/org/apache/solr/solr-core/3.4.0/solr-core-3.4.0.jar:/Users/tao/.m2/repository/org/apache/solr/solr-solrj/3.4.0/solr-solrj-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-core/3.4.0/lucene-core-3.4.0.jar:/Users/tao/.m2/repository/org/apache/zookeeper/zookeeper/3.3.1/zookeeper-3.3.1.jar:/Users/tao/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar:/Users/tao/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.7/wstx-asl-3.2.7.jar:/Users/tao/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/tao/.m2/repository/org/apache/solr/solr-noggit/3.4.0/solr-noggit-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-analyzers/3.4.0/lucene-analyzers-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-highlighter/3.4.0/lucene-highlighter-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-memory/3.4.0/lucene-memory-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-misc/3.4.0/lucene-misc-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-queries/3.4.0/lucene-queries-3.4.0.jar:/Users/tao/.m2/repository/jakarta-regexp/jakarta-regexp/1.4/jakarta-regexp-1.4.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-spatial/3.4.0/lucene-spatial-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-spellchecker/3.4.0/lucene-spellchecker-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-grouping/3.4.0/lucene-grouping-3.4.0.jar:/Users/tao/.m2/repository/org/apache/solr/solr-commons-csv/3.4.0/solr-commons-csv-3.4.0.jar:/Users/tao/.m2/repository/org/apache/geronimo/specs/geronimo-stax-api_1.0_spec/1.0.1/geronimo-stax-api_1.0_spec-1.0.1.jar:/Users/tao/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/Users/tao/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar:/Users/tao/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar:/Users/tao/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar:/Users/tao/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar:/Users/tao/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar:/Users/tao/.m2/repository/org/apache/velocity/velocity/1.6.4/velocity-1.6.4.jar:/Users/tao/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/Users/tao/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar:/Users/tao/.m2/repository/org/apache/velocity/velocity-tools/2.0/velocity-tools-2.0.jar:/Users/tao/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/Users/tao/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/Users/tao/.m2/repository/commons-chain/commons-chain/1.1/commons-chain-1.1.jar:/Users/tao/.m2/repository/commons-validator/commons-validator/1.3.1/commons-validator-1.3.1.jar:/Users/tao/.m2/repository/dom4j/dom4j/1.1/dom4j-1.1.jar:/Users/tao/.m2/repository/sslext/sslext/1.2-0/sslext-1.2-0.jar:/Users/tao/.m2/repository/org/apache/struts/struts-core/1.3.8/struts-core-1.3.8.jar:/Users/tao/.m2/repository/antlr/antlr/2.7.2/antlr-2.7.2.jar:/Users/tao/.m2/repository/org/apache/struts/struts-taglib/1.3.8/struts-taglib-1.3.8.jar:/Users/tao/.m2/repository/org/apache/struts/struts-tiles/1.3.8/struts-tiles-1.3.8.jar:/Users/tao/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:/Users/tao/.m2/repository/org/slf4j/slf4j-jdk14/1.6.1/slf4j-jdk14-1.6.1.jar:/Users/tao/.m2/repository/org/apache/solr/solr-test-framework/3.4.0/solr-test-framework-3.4.0.jar:/Users/tao/.m2/repository/org/apache/lucene/lucene-test-framework/3.4.0/lucene-test-framework-3.4.0.jar:/Users/tao/.m2/repository/org/apache/ant/ant-junit/1.7.1/ant-junit-1.7.1.jar:/Users/tao/.m2/repository/org/apache/ant/ant/1.7.1/ant-1.7.1.jar:/Users/tao/.m2/repository/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar:/Users/tao/.m2/repository/org/dataone/d1_common_java/1.2.0-SNAPSHOT/d1_common_java-1.2.0-SNAPSHOT.jar:/Users/tao/.m2/repository/javax/mail/mail/1.4.1/mail-1.4.1.jar:/Users/tao/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/Users/tao/.m2/repository/org/jibx/jibx-bind/1.2.4.5/jibx-bind-1.2.4.5.jar:/Users/tao/.m2/repository/bcel/bcel/5.1/bcel-5.1.jar:/Users/tao/.m2/repository/regexp/regexp/1.2/regexp-1.2.jar:/Users/tao/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar:/Users/tao/.m2/repository/com/thoughtworks/qdox/qdox/1.12/qdox-1.12.jar:/Users/tao/.m2/repository/org/jibx/jibx-extras/1.2.4.5/jibx-extras-1.2.4.5.jar:/Users/tao/.m2/repository/org/jdom/jdom/1.1.3/jdom-1.1.3.jar:/Users/tao/.m2/repository/org/jibx/jibx-run/1.2.4.5/jibx-run-1.2.4.5.jar:/Users/tao/.m2/repository/xpp3/xpp3/1.1.3.4.O/xpp3-1.1.3.4.O.jar:/Users/tao/.m2/repository/org/jibx/jibx-schema/1.2.4.5/jibx-schema-1.2.4.5.jar:/Users/tao/.m2/repository/org/jibx/jibx-tools/1.2.4.5/jibx-tools-1.2.4.5.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.core.contenttype/3.4.100.v20110423-0524/org.eclipse.core.contenttype-3.4.100.v20110423-0524.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.core.jobs/3.5.100.v20110404/org.eclipse.core.jobs-3.5.100.v20110404.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.core.resources/3.7.100.v20110510-0712/org.eclipse.core.resources-3.7.100.v20110510-0712.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.core.runtime/3.7.0.v20110110/org.eclipse.core.runtime-3.7.0.v20110110.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.equinox.common/3.6.0.v20110523/org.eclipse.equinox.common-3.6.0.v20110523.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.equinox.preferences/3.4.0.v20110502/org.eclipse.equinox.preferences-3.4.0.v20110502.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.jdt.core/3.7.0.v_B61/org.eclipse.jdt.core-3.7.0.v_B61.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.osgi/3.7.0.v20110613/org.eclipse.osgi-3.7.0.v20110613.jar:/Users/tao/.m2/repository/org/jibx/config/3rdparty/org/eclipse/org.eclipse.text/3.5.100.v20110505-0800/org.eclipse.text-3.5.100.v20110505-0800.jar:/Users/tao/.m2/repository/org/jibx/maven-jibx-plugin/1.2.4.5/maven-jibx-plugin-1.2.4.5.jar:/Users/tao/.m2/repository/org/apache/maven/maven-plugin-api/2.2.1/maven-plugin-api-2.2.1.jar:/Users/tao/.m2/repository/org/apache/maven/maven-project/2.2.1/maven-project-2.2.1.jar:/Users/tao/.m2/repository/org/apache/maven/maven-settings/2.2.1/maven-settings-2.2.1.jar:/Users/tao/.m2/repository/org/apache/maven/maven-profile/2.2.1/maven-profile-2.2.1.jar:/Users/tao/.m2/repository/org/apache/maven/maven-artifact-manager/2.2.1/maven-artifact-manager-2.2.1.jar:/Users/tao/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar:/Users/tao/.m2/repository/org/apache/maven/maven-plugin-registry/2.2.1/maven-plugin-registry-2.2.1.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar:/Users/tao/.m2/repository/joda-time/joda-time/2.1/joda-time-2.1.jar:/Users/tao/.m2/repository/org/apache/maven/plugins/maven-compiler-plugin/2.3.1/maven-compiler-plugin-2.3.1.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-9-stable-1/plexus-container-default-1.0-alpha-9-stable-1.jar:/Users/tao/.m2/repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar:/Users/tao/.m2/repository/org/apache/maven/maven-artifact/2.0.6/maven-artifact-2.0.6.jar:/Users/tao/.m2/repository/org/apache/maven/maven-core/2.0.6/maven-core-2.0.6.jar:/Users/tao/.m2/repository/org/apache/maven/wagon/wagon-file/1.0-beta-2/wagon-file-1.0-beta-2.jar:/Users/tao/.m2/repository/org/apache/maven/maven-plugin-parameter-documenter/2.0.6/maven-plugin-parameter-documenter-2.0.6.jar:/Users/tao/.m2/repository/org/apache/maven/wagon/wagon-http-lightweight/1.0-beta-2/wagon-http-lightweight-1.0-beta-2.jar:/Users/tao/.m2/repository/org/apache/maven/wagon/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.jar:/Users/tao/.m2/repository/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar:/Users/tao/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/Users/tao/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar:/Users/tao/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar:/Users/tao/.m2/repository/org/apache/maven/wagon/wagon-provider-api/1.0-beta-2/wagon-provider-api-1.0-beta-2.jar:/Users/tao/.m2/repository/org/apache/maven/maven-repository-metadata/2.0.6/maven-repository-metadata-2.0.6.jar:/Users/tao/.m2/repository/org/apache/maven/maven-error-diagnostics/2.0.6/maven-error-diagnostics-2.0.6.jar:/Users/tao/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar:/Users/tao/.m2/repository/org/apache/maven/wagon/wagon-ssh-external/1.0-beta-2/wagon-ssh-external-1.0-beta-2.jar:/Users/tao/.m2/repository/org/apache/maven/wagon/wagon-ssh-common/1.0-beta-2/wagon-ssh-common-1.0-beta-2.jar:/Users/tao/.m2/repository/org/apache/maven/maven-plugin-descriptor/2.0.6/maven-plugin-descriptor-2.0.6.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar:/Users/tao/.m2/repository/org/apache/maven/maven-monitor/2.0.6/maven-monitor-2.0.6.jar:/Users/tao/.m2/repository/org/apache/maven/wagon/wagon-ssh/1.0-beta-2/wagon-ssh-1.0-beta-2.jar:/Users/tao/.m2/repository/com/jcraft/jsch/0.1.27/jsch-0.1.27.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-compiler-api/1.8/plexus-compiler-api-1.8.jar:/Users/tao/.m2/repository/org/apache/maven/maven-toolchain/1.0/maven-toolchain-1.0.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-compiler-manager/1.8/plexus-compiler-manager-1.8.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-compiler-javac/1.8/plexus-compiler-javac-1.8.jar:/Users/tao/.m2/repository/org/apache/maven/plugins/maven-jar-plugin/2.3.1/maven-jar-plugin-2.3.1.jar:/Users/tao/.m2/repository/org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.jar:/Users/tao/.m2/repository/org/apache/maven/maven-archiver/2.4.1/maven-archiver-2.4.1.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0/plexus-archiver-1.0.jar:/Users/tao/.m2/repository/org/codehaus/plexus/plexus-io/1.0/plexus-io-1.0.jar:/Users/tao/.m2/repository/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar:/Users/tao/.m2/repository/org/apache/httpcomponents/httpmime/4.1.3/httpmime-4.1.3.jar:/Users/tao/.m2/repository/org/apache/httpcomponents/httpcore/4.1.4/httpcore-4.1.4.jar:/Users/tao/.m2/repository/org/apache/httpcomponents/httpclient/4.1.3/httpclient-4.1.3.jar:/Users/tao/.m2/repository/commons-configuration/commons-configuration/1.7/commons-configuration-1.7.jar:/Users/tao/.m2/repository/org/dataone/d1_jibx_extensions/1.2.0-SNAPSHOT/d1_jibx_extensions-1.2.0-SNAPSHOT.jar:"/>
44
    <property name="java.vm.specification.version" value="1.7"/>
45
    <property name="sun.arch.data.model" value="64"/>
46
    <property name="java.home" value="/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/jre"/>
47
    <property name="sun.java.command" value="/Users/tao/projects/metacat/metacat-common/target/surefire/surefirebooter3741387489309197284.jar /Users/tao/projects/metacat/metacat-common/target/surefire/surefire6577046124843003476tmp /Users/tao/projects/metacat/metacat-common/target/surefire/surefire7341048618969345802tmp"/>
48
    <property name="java.specification.vendor" value="Oracle Corporation"/>
49
    <property name="user.language" value="en"/>
50
    <property name="awt.toolkit" value="sun.lwawt.macosx.LWCToolkit"/>
51
    <property name="java.vm.info" value="mixed mode"/>
52
    <property name="java.version" value="1.7.0_17"/>
53
    <property name="java.ext.dirs" value="/Users/tao/Library/Java/Extensions:/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/jre/lib/ext:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java"/>
54
    <property name="sun.boot.class.path" value="/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/jre/lib/JObjC.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/jre/classes"/>
55
    <property name="java.vendor" value="Oracle Corporation"/>
56
    <property name="localRepository" value="/Users/tao/.m2/repository"/>
57
    <property name="file.separator" value="/"/>
58
    <property name="java.vendor.url.bug" value="http://bugreport.sun.com/bugreport/"/>
59
    <property name="sun.cpu.endian" value="little"/>
60
    <property name="sun.io.unicode.encoding" value="UnicodeBig"/>
61
    <property name="socksNonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
62
    <property name="ftp.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
63
    <property name="sun.cpu.isalist" value=""/>
64
  </properties>
65
  <testcase time="0.003" classname="edu.ucsb.nceas.metacat.common.AppTest" name="testApp"/>
66
</testsuite>
metacat-common/target/surefire-reports/edu.ucsb.nceas.metacat.common.AppTest.txt
1
-------------------------------------------------------------------------------
2
Test set: edu.ucsb.nceas.metacat.common.AppTest
3
-------------------------------------------------------------------------------
4
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec
metacat-common/target/maven-archiver/pom.properties
1
#Generated by Maven
2
#Mon Apr 29 09:10:15 PDT 2013
3
version=1.0-SNAPSHOT
4
groupId=edu.ucsb.nceas.metacat.common
5
artifactId=metacat-common
metacat-common/src/test/java/edu/ucsb/nceas/metacat/common/AppTest.java
1
package edu.ucsb.nceas.metacat.common;
2

  
3
import junit.framework.Test;
4
import junit.framework.TestCase;
5
import junit.framework.TestSuite;
6

  
7
/**
8
 * Unit test for simple App.
9
 */
10
public class AppTest 
11
    extends TestCase
12
{
13
    /**
14
     * Create the test case
15
     *
16
     * @param testName name of the test case
17
     */
18
    public AppTest( String testName )
19
    {
20
        super( testName );
21
    }
22

  
23
    /**
24
     * @return the suite of tests being tested
25
     */
26
    public static Test suite()
27
    {
28
        return new TestSuite( AppTest.class );
29
    }
30

  
31
    /**
32
     * Rigourous Test :-)
33
     */
34
    public void testApp()
35
    {
36
        assertTrue( true );
37
    }
38
}
metacat-common/src/main/java/edu/ucsb/nceas/metacat/common/App.java
1
package edu.ucsb.nceas.metacat.common;
2

  
3
/**
4
 * Hello world!
5
 *
6
 */
7
public class App 
8
{
9
    public static void main( String[] args )
10
    {
11
        System.out.println( "Hello World!" );
12
    }
13
}
metacat-common/src/main/java/edu/ucsb/nceas/metacat/common/SolrServerFactory.java
1
/**
2
 *  '$RCSfile$'
3
 *    Purpose: A class that gets Accession Number, check for uniqueness
4
 *             and register it into db
5
 *  Copyright: 2000 Regents of the University of California and the
6
 *             National Center for Ecological Analysis and Synthesis
7
 *    Authors: Jivka Bojilova, Matt Jones
8
 *
9
 *   '$Author: tao $'
10
 *     '$Date: 2013-04-19 17:47:14 -0700 (Fri, 19 Apr 2013) $'
11
 * '$Revision: 7595 $'
12
 *
13
 * This program is free software; you can redistribute it and/or modify
14
 * it under the terms of the GNU General Public License as published by
15
 * the Free Software Foundation; either version 2 of the License, or
16
 * (at your option) any later version.
17
 *
18
 * This program is distributed in the hope that it will be useful,
19
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21
 * GNU General Public License for more details.
22
 *
23
 * You should have received a copy of the GNU General Public License
24
 * along with this program; if not, write to the Free Software
25
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26
 */
27
package edu.ucsb.nceas.metacat.common;
28

  
29
import java.io.File;
30

  
31
import org.apache.commons.logging.Log;
32
import org.apache.commons.logging.LogFactory;
33
import org.apache.solr.client.solrj.SolrServer;
34
import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;
35
import org.apache.solr.client.solrj.impl.CommonsHttpSolrServer;
36
import org.apache.solr.core.CoreContainer;
37
import org.dataone.configuration.Settings;
38

  
39
/**
40
 * A factory for creating SolrServer implementations based on
41
 * configuration in Settings.java
42
 * Options are as follows.
43
 * 
44
 * Embedded (default):
45
 * solr.server.classname=org.apache.solr.client.solrj.embedded.EmbeddedSolrServer
46
 * solr.homeDir=/path/to/solr/home
47
 * 
48
 * HTTP:
49
 * solr.server.classname=org.apache.solr.client.solrj.impl.CommonsHttpSolrServer
50
 * solr.endpoint=http://endpoint/to/solr/service
51
 * 
52
 * @author leinfelder + tao
53
 *
54
 */
55
public class SolrServerFactory {
56
	
57
    public static final String SOLR_HOME_PROPERTY_NAME = "solr.homeDir";
58
    public static final String SOLR_CONFIG_FILE_NAME_PROPERTY_NAME = "solr.configFileName";
59
    public static final String SOLR_COLLECTION_NAME_PROPERTY_NAME = "solr.collectionName";
60
    public static final String SOLR_SERVER_CLASSNAME_PROPERTY_NAME = "solr.server.classname";
61
    public static final String SOLR_ENPOINT_PROPERTY_NAME = "solr.endpoint";
62
    private static final String EMBEDDEDSERVERCLASS = "org.apache.solr.client.solrj.embedded.EmbeddedSolrServer";
63
    private static final String HTTPSERVERCLASS = "org.apache.solr.client.solrj.impl.CommonsHttpSolrServer";
64

  
65
	public static Log log = LogFactory.getLog(SolrServerFactory.class);
66
	
67
	private static CoreContainer coreContainer = null;
68
	private static SolrServer solrServer = null;
69

  
70
	public static SolrServer createSolrServer() throws Exception {
71
		
72
		String className = Settings.getConfiguration().getString(SOLR_SERVER_CLASSNAME_PROPERTY_NAME);
73
		if (className != null && className.equals(EMBEDDEDSERVERCLASS)) {
74
		    generateEmbeddedServer();
75
		} else if (className != null && className.equals(HTTPSERVERCLASS)) {
76
		    String solrServerUrl = Settings.getConfiguration().getString(SOLR_ENPOINT_PROPERTY_NAME);
77
		    solrServer = new CommonsHttpSolrServer(solrServerUrl);
78
		} else {
79
		    throw new Exception("SolrServerFactory.createSolrServer - MetacatIndex doesn't support this solr server type: "+className);
80
		}
81

  
82
        
83
        return solrServer;
84
	}
85
	
86
	private static void generateEmbeddedServer() throws Exception {
87
	    String solrHomeDir = Settings.getConfiguration().getString(SOLR_HOME_PROPERTY_NAME);
88
        log.info("The configured solr home from properties is " + solrHomeDir);
89
        String configFileName = Settings.getConfiguration().getString(SOLR_CONFIG_FILE_NAME_PROPERTY_NAME);
90
        File configFile = new File(solrHomeDir, configFileName);
91
        coreContainer = new CoreContainer(solrHomeDir, configFile);
92
        coreContainer.load(solrHomeDir, configFile);
93
        String collectioname = Settings.getConfiguration().getString(SOLR_COLLECTION_NAME_PROPERTY_NAME);
94
        solrServer = new EmbeddedSolrServer(coreContainer, collectioname);
95
	}
96
	
97
	public static CoreContainer getCoreContainer() {
98
	    return coreContainer;
99
	}
100
}
metacat-common/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <groupId>edu.ucsb.nceas.metacat.common</groupId>
5
  <artifactId>metacat-common</artifactId>
6
  <packaging>jar</packaging>
7
  <version>1.0-SNAPSHOT</version>
8
  <name>metacat-common</name>
9
  <url>http://maven.apache.org</url>
10
  <dependencies>
11
    <dependency>
12
      <groupId>junit</groupId>
13
      <artifactId>junit</artifactId>
14
      <version>3.8.1</version>
15
      <scope>test</scope>
16
    </dependency>
17
    <dependency>
18
      <groupId>org.apache.solr</groupId>
19
      <artifactId>solr-core</artifactId>
20
      <version>3.4.0</version>
21
    </dependency>
22
    <dependency>
23
      <groupId>org.apache.solr</groupId>
24
      <artifactId>solr-test-framework</artifactId>
25
      <version>3.4.0</version>
26
    </dependency>
27
    <dependency>
28
      <groupId>org.dataone</groupId>
29
      <artifactId>d1_common_java</artifactId>
30
      <version>1.2.0-SNAPSHOT</version>
31
      <type>jar</type>
32
    </dependency>
33
  </dependencies>
34
</project>

Also available in: Unified diff