-
Springboot - ApplicationTest에서의 에러 // test 건너 뛰기Web/Backend 2020. 11. 4. 22:46
Found multiple occurrences of org.json.JSONObject on the class path: jar:file:/C:/Users/multicampus/.m2/repository/com/vaadin/external/google/android-json/0.0.20131108.vaadin1/android-json-0.0.20131108.vaadin1.jar!/org/json/JSONObject.class jar:file:/C:/Users/multicampus/.m2/repository/org/json/json/20200518/json-20200518.jar!/org/json/JSONObject.class
메이븐 빌드하는 과정에서 난 에러
pom.xml 에서 scope test부분에 다음과같이 추가해주면 된다고한다.
<scope>test</scope> <exclusions> <exclusion> <groupId>com.vaadin.external.google</groupId> <artifactId>android-json</artifactId> </exclusion> </exclusions>
mvn package시 test 건너뛰는 방법 ( in jenkins)
clean install -DskipTests=true
'Web > Backend' 카테고리의 다른 글
스프링부트 @Component 와 @Configuration , @Bean (0) 2021.01.31 JWT ( JSON WEB TOKEN ) 란 ?? (0) 2020.10.03 nginx (1) 특징 공부하기 (0) 2020.10.01 스칼라 서브쿼리, 연관 서브쿼리 동작원리 및 실행순서 (0) 2020.08.10 JPA 사용법 차근차근 알아보기(1) - Entity, save (0) 2020.07.28