maven真强大

最近在verycd总看见他们推这个:http://www.yunduan.cn/。我觉得maven和它很像。
比如,我机器上有maven,但是我没有装groovy和ant。没有关系,瞧
mvn groovy:shell -Dargs="load test.groovy"
用这样的方式就可以打开groovysh运行groovy脚本。
可是,即便是已经下载过groovy,本地有缓存的情况下,运行一个hello world需要也需要6秒:
time mvn groovy:shell -Dargs="print 'hello'"
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'groovy'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [groovy:shell] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [groovy:shell {execution: default-cli}]
hello===> null
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Sun Feb 28 22:07:13 CST 2010
[INFO] Final Memory: 32M/350M
[INFO] ------------------------------------------------------------------------
real 0m6.752s
user 0m8.430s
sys 0m0.490s

此博客中的热门博文

在windows下使用llvm+clang

少写代码,多读别人写的代码

tensorflow distributed runtime初窥