Recently in java Category

quartz的full distribution里面没有附带src的jar, 只得自己编译
mvn编译的时候提示找不到jms-1.1.jar
Google的结果显示原因是:

Often users are confronted with the need to build against JARs provide by Sun like the JavaMail JAR, or the Activation JAR and users have found these JARs not present in central repository resulting in a broken build. Unfortunately most of these artifacts fall under Sun's Binary License which disallows us from distributing them from Ibiblio.

解决方案也就是自己添加相应的repository, 在自己的POM文件或者settings.xml中添加

 

    <repositories>
        <repository>
            <id>maven2-repository.dev.java.net</id>
            <name>Java.net Repository for Maven</name>
            <url>http://download.java.net/maven/2/</url>
            <layout>default</layout>
        </repository>
        <repository>
            <id>maven2-repository.jboss.org</id>
            <name>Jboss Repository for Maven</name>
            <url>http://repository.jboss.org/maven2/</url>
            <layout>default</layout>
        </repository>
    </repositories>
 
 
ps1: maven官网说新建个java.net repository条目即可, 但是java.net的maven仓库已经没有jms了 =,= 还是jboss的repository比较给力
ps2: 顺带提供编译好的quartz-2.0.1-src.jar

 

纯抱怨, 以前的Sun(Oracle) JDK在下载的时候,要点击一堆Agreement才能在浏览器里面单线程下载,拖到迅雷离线里面也很难下载,只能等80MB在chrome里面一点点单线程拖下载
今天JDK6U25发布, 打开oracle网站, 赫然发现Oracle已经提供了JDK直接下载地址,Terminal下axel -n 10 一把,速度很给力啊
 
[100%]  .......... .......... .......... .......... ..........  [4494.4KB/s]
Downloaded 81.1 megabytes in 18 seconds. (4485.71 KB/s)
顺带bs一下电信通, 居然无法连接download.oracle.com的80