elipse報出錯誤:
2011/11/8 上午10時13分02秒: Missing artifact javax.jms:jms:jar:1.1:compile
2011/11/8 上午10時13分02秒: Missing artifact com.sun.jdmk:jmxtools:jar:1.2.1:compile2011/11/8 上午10時13分02秒: Missing artifact com.sun.jmx:jmxri:jar:1.2.1:compile
解決方法(以jmxri為例):
1.下載jmxri.jar
2.復制jmxri.jar到Maven庫目錄:~\.m2\repository\com\sun\jmx\jmxri\1.2.1并將其改名為jmxri-1.2.1.jar
3.編輯pom文件,將<url>和<distributionManagement>節點刪除
<url>http://java.sun.com/products/jms</url> - <distributionManagement> <downloadUrl>http://java.sun.com/products/jms/docs.html</downloadUrl> </distributionManagement>4.刪除~\.m2\repository\com\sun\jmx\jmxri\1.2.1目錄下的帶有lastUpdated后綴的文件
5.在Eclipse項目中update maven dependencis。OK
另外解決方法請參考: http://www.diybl.com/course/3_program/java/javajs/20100719/459776.html http://unitstep.net/blog/2009/05/18/resolving-log4j-1215-dependency-problems-in-maven-using-exclusions/
http://www.iteye.com/topic/973166