티스토리 뷰

maven compile 하던중 아래와 같은 에러를 만나게 되는 경우가 있다.


[ERROR] Failed to execute goal on project pushApp: Could not resolve dependencies for project co.kr.softcast.MobilePush:pushApp:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Failure to find com.sun.jdmk:jmxtools:jar:1.2.1 in http://repo1.maven.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of remote-repos has elapsed or updates are forced -> [Help 1]



log4j 의존성 때문에 발생되는 오류이며 아래의 두가지 해결방법이 있다.

1. log4j 버전 1.2.15 -> 1.2.14 로 변경


FROM

<dependency>
<groupid>log4j</groupid>
<artifactid>log4j</artifactid>
<version>1.2.15</version>
</dependency>


TO

<dependency>
<groupid>log4j</groupid>
<artifactid>log4j</artifactid>
<version>1.2.14</version>
</dependency>



2. dependency  제외

<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.15</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>
</dependency>


위 두가지 경우에도 안될경우  아래의 출처를 확인하시기 바랍니다.

.by rocksea

'Developer' 카테고리의 다른 글

mongodump 사용법 ( db backup )  (0) 2012.11.16
MongoDB connection pooling  (0) 2012.11.15
[maven] repository (artifactory) installation guide  (0) 2012.11.07
[ NFS ] Network File System 설치  (0) 2012.10.17
[ glusterFS ] installation guide  (2) 2012.10.12
댓글