Merge pull request #631 from internetarchive/update-deps

Update dependencies for 3.6.0 release
This commit is contained in:
Alex Osborne
2024-11-29 19:24:28 +09:00
committed by GitHub
11 changed files with 43 additions and 71 deletions
+9 -15
View File
@@ -42,28 +42,22 @@
<version>2.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.9.0</version>
<version>3.11.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.14.0</version>
<version>2.18.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.6</version>
<version>1.17.1</version>
<scope>compile</scope>
</dependency>
<dependency>
@@ -75,7 +69,7 @@
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.1</version>
<version>1.9.0</version>
<scope>compile</scope>
</dependency>
<dependency>
@@ -87,7 +81,7 @@
<dependency>
<groupId>dnsjava</groupId>
<artifactId>dnsjava</artifactId>
<version>3.6.0</version>
<version>3.6.2</version>
<scope>compile</scope>
</dependency>
<!--
@@ -145,19 +139,19 @@
<dependency>
<groupId>com.esotericsoftware</groupId>
<artifactId>kryo</artifactId>
<version>5.6.0</version>
<version>5.6.2</version>
</dependency>
<dependency>
<groupId>org.netpreserve.commons</groupId>
<artifactId>webarchive-commons</artifactId>
<version>1.1.10</version>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<groupId>com.github.mwiede</groupId>
<artifactId>jsch</artifactId>
<version>0.1.54</version>
<version>0.2.21</version>
</dependency>
</dependencies>
<build>
+4 -19
View File
@@ -27,23 +27,18 @@
<dependency>
<groupId>com.rabbitmq</groupId>
<artifactId>amqp-client</artifactId>
<version>5.18.0</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>3.0.1</version>
<version>5.23.0</version>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>3.1</version>
<version>5.5.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>3.8.0</version>
<version>3.9.0</version>
</dependency>
<dependency>
<groupId>com.rethinkdb</groupId>
@@ -53,17 +48,7 @@
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.9</version>
</dependency>
<dependency>
<groupId>org.java-websocket</groupId>
<artifactId>Java-WebSocket</artifactId>
<version>1.5.2</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.16.1</version>
<version>2.11.0</version>
</dependency>
</dependencies>
<build>
@@ -21,8 +21,6 @@ package org.archive.modules.recrawl;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.archive.modules.CrawlURI;
/**
@@ -32,8 +30,7 @@ import org.archive.modules.CrawlURI;
*
*/
public class FetchHistoryHelper {
private static final Log logger = LogFactory.getLog(FetchHistoryHelper.class);
/**
/**
* key for storing timestamp in crawl history map.
*/
public static final String A_TIMESTAMP = ".ts";
@@ -34,8 +34,6 @@ import java.util.Map.Entry;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicLong;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.http.HeaderElement;
import org.apache.http.HttpEntity;
import org.apache.http.HttpRequest;
@@ -57,6 +55,8 @@ import org.archive.modules.recrawl.RecrawlAttributeConstants;
import org.archive.util.ArchiveUtils;
import org.archive.util.DateUtils;
import static java.lang.System.Logger.Level.ERROR;
/**
* A {@link Processor} for retrieving recrawl info from remote Wayback Machine index.
* This is currently in the early stage of experiment. Both low-level protocol and WBM API
@@ -69,7 +69,7 @@ import org.archive.util.DateUtils;
* @author Kenji Nagahashi.
*/
public class WbmPersistLoadProcessor extends Processor {
private static final Log log = LogFactory.getLog(WbmPersistLoadProcessor.class);
private static final System.Logger log = System.getLogger(WbmPersistLoadProcessor.class.getName());
private HttpClient client;
private PoolingHttpClientConnectionManager conman;
@@ -415,7 +415,7 @@ public class WbmPersistLoadProcessor extends Processor {
cumulativeFetchTime.addAndGet(System.currentTimeMillis() - t0);
StatusLine sl = resp.getStatusLine();
if (sl.getStatusCode() != 200) {
log.error("GET " + url + " failed with status=" + sl.getStatusCode() + " " + sl.getReasonPhrase());
log.log(ERROR, "GET " + url + " failed with status=" + sl.getStatusCode() + " " + sl.getReasonPhrase());
entity = resp.getEntity();
entity.getContent().close();
entity = null;
@@ -423,9 +423,9 @@ public class WbmPersistLoadProcessor extends Processor {
}
entity = resp.getEntity();
} catch (IOException ex) {
log.error("GEt " + url + " failed with error " + ex.getMessage());
log.log(ERROR, "GEt " + url + " failed with error " + ex.getMessage());
} catch (Exception ex) {
log.error("GET " + url + " failed with error ", ex);
log.log(ERROR, "GET " + url + " failed with error ", ex);
}
} while (entity == null && ++attempts < 3);
if (entity == null) {
@@ -440,7 +440,7 @@ public class WbmPersistLoadProcessor extends Processor {
try {
is = getCDX(curi.toString());
} catch (IOException ex) {
log.error(ex.getMessage());
log.log(ERROR, ex.getMessage());
errorCount.incrementAndGet();
return ProcessResult.PROCEED;
}
@@ -448,7 +448,7 @@ public class WbmPersistLoadProcessor extends Processor {
try {
info = getLastCrawl(is);
} catch (IOException ex) {
log.error("error parsing response", ex);
log.log(ERROR, "error parsing response", ex);
} finally {
if (is != null)
ArchiveUtils.closeQuietly(is);
+4 -4
View File
@@ -65,14 +65,14 @@
</dependency>
<!-- jaxb is no longer included in jdk11+ -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>4.0.2</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.1</version>
<version>4.0.5</version>
<scope>runtime</scope>
</dependency>
<dependency>
@@ -31,9 +31,9 @@ import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlTransient;
import jakarta.xml.bind.annotation.XmlType;
import org.apache.commons.lang.StringUtils;
import org.restlet.ext.xml.XmlWriter;
@@ -6,8 +6,8 @@ import java.util.Collection;
import java.util.List;
import java.util.Map;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
import org.archive.crawler.restlet.ScriptingConsole;
@@ -4,8 +4,8 @@ import java.io.StringWriter;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
import junit.framework.TestCase;
+4 -9
View File
@@ -82,23 +82,18 @@
<dependency>
<groupId>com.github.crawler-commons</groupId>
<artifactId>crawler-commons</artifactId>
<version>1.0</version>
<version>1.4</version>
</dependency>
<dependency>
<groupId>com.github.bbottema</groupId>
<artifactId>java-socks-proxy-server</artifactId>
<version>1.1.0</version>
<version>4.1.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.54</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>3.0.1</version>
<version>3.0.3</version>
</dependency>
</dependencies>
<build>
@@ -120,6 +115,6 @@
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<groovy.version>4.0.21</groovy.version>
<groovy.version>4.0.24</groovy.version>
</properties>
</project>
@@ -984,7 +984,7 @@ public class FetchHTTPTest {
protected FetchHTTP makeSocksModule() throws Exception {
// configure our test server
socksServer = new SocksServer();
socksServer = new SocksServer(7800);
// SocksServers opens the socket on a background thread, so we supply a socket factory
@@ -992,7 +992,7 @@ public class FetchHTTPTest {
// occurs when binding. This works around a race where we connect to the server before
// it is listening.
CompletableFuture<Void> socksServerStartedFuture = new CompletableFuture<>();
socksServer.start(7800, new ServerSocketFactory() {
socksServer.setFactory(new ServerSocketFactory() {
ServerSocketFactory defaultSocketFactory = ServerSocketFactory.getDefault();
@Override
@@ -1017,6 +1017,7 @@ public class FetchHTTPTest {
}
}
});
socksServer.start();
socksServerStartedFuture.get(30, TimeUnit.SECONDS);
FetchHTTP fetchHttp = newSocksTestFetchHttp(getUserAgentString(), "localhost", 7800);
+3 -3
View File
@@ -121,17 +121,17 @@ http://maven.apache.org/guides/mini/guide-m1-m2.html
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.13</version>
<version>4.5.14</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.13</version>
<version>4.5.14</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<version>4.13.2</version>
</dependency>
</dependencies>
</dependencyManagement>