2016-11-02 5 views
0

버그가 있으므로 Grails 기본 의존성에서 Apache Commons 라이브러리 버전 1.4.0을 제외하려고합니다. https://github.com/grails/grails-core/issues/9000Grails가 EmailValidator (commons-validator) 종속성을 제외했습니다.

일부 사용자는 새로운 종속성으로 덮어 쓰기를 제안 했으므로 다음을 시도해 보지 않았습니다.

inherits("global") { 
     // uncomment to disable ehcache 
     // excludes 'ehcache' 
     excludes 'commons-validator' 
    } 

... 

dependencies { 
    compile "commons-validator:commons-validator:1.5.1" 
} 

속성 달성 방법에 대한 제안 사항이있는 사람이 있습니까? 당신은 새로운 Grails의 2.5.5 응용 프로그램에 grails dependency-report을 실행하면

답변

2

당신이 볼 수

+--- org.grails:grails-plugin-url-mappings:2.5.5 
| \--- com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4 
| \--- org.grails:grails-validation:2.5.5 
|   \--- commons-validator:commons-validator:1.4.0 

당신은 종속성을 추가하고 excludes를 제거하면 작동한다고 생각합니다. 이제 우리는 의존성 보고서를 실행하면 :

+--- org.grails:grails-plugin-url-mappings:2.5.5 
| \--- com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4 
| \--- org.grails:grails-validation:2.5.5 
+--- commons-validator:commons-validator:1.5.1 

버전 1.4.0 더 이상 클래스 경로에 있지 않습니다.