2010-12-30 2 views
4

Wagon-FTP을 사용하여 Maven 사이트를 FTP로 배포하고 있습니다. 잘 작동하지만 출력이 효과적으로 모두 (이 프로젝트는 오픈 소스이고 그것의 CI 프로토콜을 공개적으로 액세스 할 수있는 경우 특히)에 로그인과 암호를 노출 FTP 연결/인증 정보의 가득 :Wagon-FTP Maven 확장 프로그램의 로깅을 억제/제어하는 ​​방법은 무엇입니까?

[...] 
[INFO] 
[INFO] --- maven-site-plugin:3.0-beta-3:deploy (default-deploy) @ rempl --- 
Reply received: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 
220-You are user number 1 of 50 allowed. 
220-Local time is now 09:08. Server port: 21. 
220 You will be disconnected after 15 minutes of inactivity. 

Command sent: USER **** 

Reply received: 331 User **** OK. Password required 

Command sent: PASS ******** 

Reply received: 230-User **** has group access to: *** 
230 OK. Current restricted directory is/
[...] 

이 가능하다 이 로깅을 억제 하시겠습니까? 아니면을 구성 ...이 왜건 - FTP를 사용하는 내 pom.xml의 섹션 :

[...] 
<build> 
    <extensions> 
     <extension> 
      <groupId>org.apache.maven.wagon</groupId> 
      <artifactId>wagon-ftp</artifactId> 
      <version>1.0-beta-7</version> 
     </extension> 
    </extensions> 
    [...] 
</build> 
[...] 
+0

신고 : [WAGON-320] (http://jira.codehaus.org/browse/WAGON-320) – yegor256

답변

2

가능하지, 기본적으로 단지 인 (받는다는 사이트 플러그인이 아닌 마차 FTP 관련이 apache-commons-net ftp 클라이언트를위한 간단한 어댑터). Debug은 표준 출력을 사용

Debug debug = new Debug(); 

    wagon.addSessionListener(debug); 

    wagon.addTransferListener(debug); 

라인 (310)에서 source of AbstractDeployPlugin를 참조하십시오.

IMHO 멋진 솔루션은 더 정교한 SessionListener 또는 플래그를 사용하여 addSessionListener (debug)가 발생하지 않도록합니다.

관련 문제