General Strategy
- Source directories
- Do not add any test directories to the build path
- Maven Jar files
- Perform a maven build
- File all jar files in dspace-installer with windows explorer
- Copy and paste jars to a separate dir (skip duplicates)
- Add all of these items to the build path
- JUnit (add library)
DSpace 5
- Add to classpath
<classpathentry kind="var" path="M2_REPO/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar"/>
<classpathentry kind="var" path="M2_REPO/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar"/>
<classpathentry kind="var" path="M2_REPO/org/databene/contiperf/2.3.4/contiperf-2.3.4.jar"/>
<classpathentry kind="var" path="M2_REPO/com/hp/hpl/jena/jena/2.6.4/jena-2.6.4.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/jena/jena-core/2.13.0/jena-core-2.13.0.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/jena/jena-arq/2.13.0/jena-arq-2.13.0.jar"/>
<classpathentry kind="var" path="M2_REPO/com/h2database/h2/1.4.187/h2-1.4.187.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jmockit/jmockit/1.21/jmockit-1.21.jar"/>
<classpathentry kind="var" path="M2_REPO/axis/axis/1.3/axis-1.3.jar"/>
<classpathentry kind="var" path="M2_REPO/axis/axis-ant/1.3/axis-ant-1.3.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/xml/jaxrpc-api/1.1/jaxrpc-api-1.1.jar"/>
- Remaining errors
The type DSpaceWebapp is already defined DSpaceWebapp.java /DSpace_5x/dspace-oai/src/main/java/org/dspace/utils line 18 Java Problem
The type DSpaceWebapp is already defined DSpaceWebapp.java /DSpace_5x/dspace-rdf/src/main/java/org/dspace/utils line 17 Java Problem
The type DSpaceWebapp is already defined DSpaceWebapp.java /DSpace_5x/dspace-rest/src/main/java/org/dspace/utils line 18 Java Problem
The type DSpaceWebapp is already defined DSpaceWebapp.java /DSpace_5x/dspace-xmlui/src/main/java/org/dspace/utils line 18 Java Problem
DSpace 5 (with test paths included)
- Add the following variables
<classpathentry kind="var" path="M2_REPO/org/xmlmatchers/xml-matchers/0.10/xml-matchers-0.10.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mortbay/jetty/jetty-servlet-tester/6.1.26/jetty-servlet-tester-6.1.26.jar"/>
DSpace 6 special cases
Example pom files for special scopes to identify additional resources to be added.
- Add the following
<classpathentry kind="var" path="M2_REPO/org/atteo/evo-inflector/1.2.1/evo-inflector-1.2.1.jar"/>
<classpathentry kind="var" path="M2_REPO/com/google/code/findbugs/annotations/3.0.0/annotations-3.0.0.jar"/>
- Remaining errors
- The type DSpaceWebapp is already defined DSpaceWebapp.java /DSpace_D6/dspace-rdf/src/main/java/org/dspace/utils line 17 Java Problem
- The type DSpaceWebapp is already defined DSpaceWebapp.java /DSpace_D6/dspace-rest/src/main/java/org/dspace/utils line 18 Java Problem
DSpace 6 test directories
- Enable the DSpace java test directories
- The following dependencies are needed in the classpath
<classpathentry kind="var" path="M2_REPO/org/mockito/mockito-core/1.10.19/mockito-core-1.10.19.jar"/>
<classpathentry kind="var" path="M2_REPO/org/jmockit/jmockit/1.21/jmockit-1.21.jar"/>
<classpathentry kind="var" path="M2_REPO/org/databene/contiperf/2.3.4/contiperf-2.3.4.jar"/>
<classpathentry kind="var" path="M2_REPO/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar"/>
<classpathentry kind="var" path="M2_REPO/org/parboiled/parboiled-java/1.1.7/parboiled-java-1.1.7.jar"/>
<classpathentry kind="var" path="M2_REPO/org/springframework/spring-mock/2.0.8/spring-mock-2.0.8.jar"/>
<classpathentry kind="var" path="M2_REPO/org/springframework/spring-test/3.2.5.RELEASE/spring-test-3.2.5.RELEASE.jar"/>
<classpathentry kind="var" path="M2_REPO/org/xmlmatchers/xml-matchers/0.10/xml-matchers-0.10.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mortbay/jetty/jetty-servlet-tester/6.1.26/jetty-servlet-tester-6.1.26.jar"/>