2016-06-21 3 views
0

다음 예제를 사용하여 프록시 browsermob을 Selenide 및 Selenium과 추가합니다. 나는 이것을 link으로 사용했습니다.maven에서 기호 기호를 찾을 수 없습니다. class ProxyServer-browsermob

Eclipse로 실행하면 정상적으로 실행됩니다. 하지만 시도했을 때 Maven.

location: package net.lightbody.bmp.proxymaven cannot find symbol symbol: class ProxyServer

내 pom.xml 파일 : 나는 다음과 같은 오류가

<dependencies> 
    <dependency> 
     <groupId>junit</groupId> 
     <artifactId>junit</artifactId> 
     <version>4.11</version> 
     <scope>test</scope> 
    </dependency> 

    <dependency> 
     <groupId>com.codeborne</groupId> 
     <artifactId>selenide</artifactId> 
     <version>3.5.1</version> 
     <scope>test</scope> 
    </dependency> 

    <dependency> 
    <groupId>net.lightbody.bmp</groupId> 
    <artifactId>browsermob-core</artifactId> 
    <version>2.1.1</version> 
    <scope>test</scope> 
</dependency> 


</dependencies> 

답변

0

짧은 답변 :browsermob-core-legacy으로 browsermob-core 의존성을 교체하고 코드를 컴파일하고 실행합니다.

긴 답변 : BrowserMob 프록시는 현재 사용중인 레거시 코드보다 빠르고 안정적이며 더 많은 기능을 지원하는 LittleProxy를 사용하여 거의 완전히 다시 작성되었습니다. 새 구현으로 업그레이드하는 것이 좋습니다. 새 인터페이스에 대한 정보는 readme on github을 참조하십시오.

적어도 기존 ProxyServer 인터페이스를 LittleProxy 구현으로 래핑하는 "레거시 어댑터"클래스를 사용하는 것이 좋습니다. 자세한 내용은 readme을 참조하십시오.

관련 문제