최근 maven central 에서 오래된 프로젝트들의 jar 파일이 사라진 이유를 알고 계신 분 게신가요?

675 views
Skip to first unread message

편현장

unread,
Jan 6, 2013, 11:33:34 PM1/6/13
to ks...@googlegroups.com
스프링과는 관계 없는 메이븐 이야기지만 질문드립니다;

얼마전 로컬 리파지터리를 다 날리고, 프로젝트를 구성하려고 했더니, missing artifact 에러가 나서 찾아보니깐

com.sun.jdmk:jmxtools:jar:1.2.1 이런 에러가 나더군요.

그래서 http://search.maven.org/#browse%7C-1082245958 에서 찾아보니깐, pom 만 있지, jar 가 없어졌더구요. 근데 요 jmxtools 말고도 옛날거는 그런게 많더란 말이죠
혹시나, 해서 옛 로컬 리파지터리를 찾아 뒤져봤더니 jar 로 되있는 놈은 있었구요.

혹시 왜 이렇게 된건지 아시는 분 계신가요?ㅡㅡㅋ

Ki-Seok Kim

unread,
Jan 7, 2013, 4:07:10 AM1/7/13
to ks...@googlegroups.com
저도 저 문제때문에 고생좀 했었는데... 왜그런지 이유는 알수 없었지만 구글신 뒤져보니 아래와 같은 방법이 있었습니다. 참고하세요.



11. 7. 15 오후 2시 10분 44초: Missing artifact javax.jms:jms:jar:1.1:compile
11. 7. 15 오후 2시 10분 44초: Missing artifact com.sun.jdmk:jmxtools:jar:1.2.1:compile
11. 7. 15 오후 2시 10분 44초: Missing artifact com.sun.jmx:jmxri:jar:1.2.1:compile

Exclusions에 추가해주면 해결됨
예)
Group Id : javax.jms
Artifact Id : jms


2013년 1월 7일 오후 1:33, 편현장 <slot...@gmail.com>님의 말:

임현성

unread,
Jan 7, 2013, 7:09:50 PM1/7/13
to ks...@googlegroups.com
http://stackoverflow.com/questions/3622773/java-net-maven-repo-jms-artifact-missing

Realizing that the Sun's JARs are not on Maven central due to licensing issues, I added the following Maven repo to my POM

Yeah, but http://download.java.net/maven/2/javax/ doesn't have the jms artifact...

The good news is that the JBoss Nexus repository does have it:


<repository>
  <id>repository.jboss.org-public</id>
  <name>JBoss repository</name>
  <url>https://repository.jboss.org/nexus/content/groups/public</url>
</repository>



이라고 답변이 있네요 :) 




wget https://repository.jboss.org/nexus/content/groups/public/javax/jms/jms/1.1/jms-1.1.jar
mvn -e install:install-file -Dfile=./jms-1.1.jar -DartifactId=jms -DgroupId=javax.jms -Dversion=1.1 -Dpackaging=jar



위와 같이 jboss에서 제공하는 jar를 설치해도 될듯하네요. :) 

2013/1/7 Ki-Seok Kim <hello...@gmail.com>

편현장

unread,
Jan 7, 2013, 7:18:33 PM1/7/13
to ks...@googlegroups.com
아, 라이센스 때문이었군요. 감사합니다.
이거 믿었던 central 이 이렇게 되니 당혹스럽군요 ㅎㅎ

+ 김기석 님의 답변도 감사합니다. 
하지만, 해당 라이브러리가 필요한지라, exclude 를 할 수 는 없었어요 :)

2013/1/8 임현성 <lim...@gmail.com>
제공하는



--
==========================================================
COMAS  Hyun-Jang, Pyun
Assistent Manager / R&D Div. / Solution Business  Comas, Inc.
(Bangbae-Dong) Nambu beltway 2145, Seocho-Gu, Seoul 137-820, Korea
Tel :  +82-2-3218-6300 
Mobile : +82-10-8565-8071  /  Fax : +82-2-3218-6370
E-mail : ker...@comas.co.krslot...@gmail.com

Xeon

unread,
Jan 14, 2013, 9:04:35 PM1/14/13
to ks...@googlegroups.com
ㅎㅎ) 예전엔 들어있던 것들이라도 라이센스 정책때문에 삭제되는 경우가 많죠.

마치 오라클 라이브러리가 없는것처럼...

2013년 1월 7일 월요일 오후 1시 33분 34초 UTC+9, 편현장 님의 말:
Reply all
Reply to author
Forward
0 new messages