heritrix 3.X 環境搭建

  1. 依賴

<dependency>
			<groupId>org.archive.heritrix</groupId>
			<artifactId>heritrix-commons</artifactId>
			<version>3.1.0</version>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>org.archive.heritrix</groupId>
			<artifactId>heritrix-modules</artifactId>
			<version>3.1.0</version>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>org.archive.heritrix</groupId>
			<artifactId>heritrix-engine</artifactId>
			<version>3.1.0</version>
			<scope>compile</scope>
		</dependency>

2. 入口函數

public static void main(String[] args) throws Exception{    
    		new Heritrix().instanceMain(args);
}

3.    啓動

    run/debug as application.在Arguments中填寫:-a admin:admin

4.    訪問

    瀏覽器:https:localhost:8443 用戶名/密碼  admin/admin (注意是https)

Sun Microsystems Inc. Java(TM) SE Runtime Environment 1.6.0_43-b01
Using ad-hoc HTTPS certificate with fingerprint...
SHA1:DD:19:6B:EB:54:61:98:7C:C2:FC:4C:A4:CB:7C:19:EC:A0:33:0D:7C
Verify in browser before accepting exception.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/Administrator/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/Administrator/.m2/repository/org/slf4j/slf4j-jdk14/1.6.6/slf4j-jdk14-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
engine listening at port 8443
operator login set per command-line
NOTE: We recommend a longer, stronger password, especially if your web 
interface will be internet-accessible.
Heritrix version: 3.3.0-SNAPSHOT-${maven.build.timestamp}


5.遇到的一些問題:依賴無法下載,是因爲無法訪問資源庫,需要使用代理或者***來解決。




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章