package org.apache.log4j does not exist
오류 내역 :
JUnit compile 시 package org.apache.log4j does not exist 라는 오류가 났다.
해결 방법 :
Change the scope of the log4j dependency to compile or remove it.
scope를 compile 또는 주석처리 해주면 된다.
<dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.16</version> <exclusions> <exclusion> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> </exclusion> <exclusion> <groupId>javax.jms</groupId> <artifactId>jms</artifactId> </exclusion> <exclusion> <groupId>com.sun.jdmk</groupId> <artifactId>jmxtools</artifactId> </exclusion> <exclusion> <groupId>com.sun.jmx</groupId> <artifactId>jmxri</artifactId> </exclusion> </exclusions> <!-- <scope>runtime</scope> --> </dependency> |
참고 사이트 : http://stackoverflow.com/questions/8667640/maven-compilation-error-log4j
- 끝 -