Skip to content

Commit bc825ae

Browse files
committed
Revert switch of OAI-PMH harvester library
Causes downstream problems due to jitpack.io requirement See #360
1 parent 5aa0ee3 commit bc825ae

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ subprojects {
8181
repositories {
8282
mavenLocal()
8383
mavenCentral()
84-
maven { url 'https://jitpack.io' }
8584
}
8685
}
8786

metafacture-biblio/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies {
2121
api project(':metafacture-framework')
2222
implementation project(':metafacture-commons')
2323
implementation project(':metafacture-flowcontrol')
24-
implementation 'com.github.hbz:oai-harvester2:master-SNAPSHOT'
24+
implementation 'org.dspace:oclc-harvester2:0.1.12'
2525
implementation ('xalan:xalan:2.7.0') {
2626
exclude group: 'xalan', module: 'serializer'
2727
exclude group: 'xercesImpl', module: 'xercesImpl'

metafacture-biblio/src/main/java/org/metafacture/biblio/OaiPmhOpener.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@
1010
import java.io.Reader;
1111

1212
import javax.xml.parsers.ParserConfigurationException;
13-
import javax.xml.xpath.XPathException;
13+
import javax.xml.transform.TransformerException;
1414

1515
import org.metafacture.framework.MetafactureException;
1616
import org.metafacture.framework.ObjectReceiver;
1717
import org.metafacture.framework.annotations.Description;
1818
import org.metafacture.framework.annotations.In;
1919
import org.metafacture.framework.annotations.Out;
2020
import org.metafacture.framework.helpers.DefaultObjectPipe;
21-
import org.oclc.oai.harvester2.app.RawWrite;
2221
import org.xml.sax.SAXException;
2322

23+
import ORG.oclc.oai.harvester2.app.RawWrite;
24+
2425
/**
2526
* Opens an OAI-PMH stream and passes a reader to the receiver.
2627
*
@@ -110,9 +111,9 @@ public void process(final String baseUrl) {
110111
e.printStackTrace();
111112
} catch (SAXException e) {
112113
e.printStackTrace();
113-
} catch (NoSuchFieldException e) {
114+
} catch (TransformerException e) {
114115
e.printStackTrace();
115-
} catch (XPathException e) {
116+
} catch (NoSuchFieldException e) {
116117
e.printStackTrace();
117118
}
118119
try {

0 commit comments

Comments
 (0)