오류 내역 :
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
- 끝 -
'OpenSource > log4j&slf4j' 카테고리의 다른 글
| [log4j viewer] otroslogviewer (SocketHub 사용) (0) | 2014.02.07 | 
|---|---|
| log4j를 알아보자 (0) | 2014.01.09 | 
| slf4j log 안나오는 현상 + Jboss (0) | 2013.10.10 | 
| Error installing to Start: name=jboss:service=CorbaORB state=Create mode=Manual requiredState=Installed java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory (0) | 2013.10.08 | 
| SLF4J: Failed to load class org.slf4j.impl.StaticLoggerBinder (2) | 2013.07.12 |