lein安装过程记录


一、下载 leiningen 的 jar

从 https://github.com/technomancy/leiningen/downloads 下载 leiningen-2.0.0-preview10-standalone.jar


二、下载windows下启动lein的脚本

https://raw.github.com/technomancy/leiningen/preview/bin/lein.bat 


三、执行脚本

在c:\dev-evn目录下创建一个文件夹 lein,将jar和bat文件放入。

进入c:\dev_evn\lein下执行,lein.bat。显示:

C:\DEV_EVN\lein>lein.bat


C:\Documents and Settings\david\.lein\self-installs\leiningen-2.0.0-preview10-standalone.jar can not be found.
You can try running "lein self-install"
or change LEIN_JAR environment variable
or edit lein.bat to set appropriate LEIN_JAR path.

四、修改脚本

修改lein.bat

将第27行

if "x%LEIN_JAR%" == "x" set LEIN_JAR=!LEIN_HOME!\self-installs\leiningen-!LEIN_VERSION!-standalone.jar

修改为
if "x%LEIN_JAR%" == "x" set LEIN_JAR=c:\dev_evn\lein\leiningen-2.0.0-preview10-standalone.jar

执行 lein.bat , 显示:

Could not find artifact lein-newnew:lein-newnew:pom:0.3.5 in central (http://repo1.maven.org/maven2)
Retrieving lein-newnew/lein-newnew/0.3.5/lein-newnew-0.3.5.pom (3k)
    from https://clojars.org/repo/
Could not find artifact stencil:stencil:pom:0.3.0 in central (http://repo1.maven.org/maven2)
Retrieving stencil/stencil/0.3.0/stencil-0.3.0.pom (3k)
    from https://clojars.org/repo/
Retrieving org/clojure/clojure/1.3.0/clojure-1.3.0.pom (5k)
    from http://repo1.maven.org/maven2/
Could not find artifact scout:scout:pom:0.1.0 in central (http://repo1.maven.org/maven2)
Retrieving scout/scout/0.1.0/scout-0.1.0.pom (2k)from https://clojars.org/repo/
Could not find artifact quoin:quoin:pom:0.1.0 in central (http://repo1.maven.org/maven2)
Retrieving quoin/quoin/0.1.0/quoin-0.1.0.pom (2k)from https://clojars.org/repo/
Could not find artifact slingshot:slingshot:pom:0.8.0 in central (http://repo1.maven.org/maven2)
Retrieving slingshot/slingshot/0.8.0/slingshot-0.8.0.pom (1k)
    from https://clojars.org/repo/
Retrieving org/clojure/clojure/1.2.1/clojure-1.2.1.pom (1k)
    from http://repo1.maven.org/maven2/
Retrieving org/clojure/core.cache/0.6.1/core.cache-0.6.1.pom (2k)
    from http://repo1.maven.org/maven2/
Retrieving org/clojure/pom.contrib/0.0.26/pom.contrib-0.0.26.pom (5k)
    from http://repo1.maven.org/maven2/
Retrieving org/clojure/clojure/1.4.0/clojure-1.4.0.pom (5k)
    from http://repo1.maven.org/maven2/
Could not find artifact bultitude:bultitude:pom:0.1.7 in central (http://repo1.maven.org/maven2)
Retrieving bultitude/bultitude/0.1.7/bultitude-0.1.7.pom (2k)
    from https://clojars.org/repo/
Retrieving org/clojure/clojure/1.3.0/clojure-1.3.0.jar (3311k)
    from http://repo1.maven.org/maven2/
Could not find artifact lein-newnew:lein-newnew:jar:0.3.5 in central (http://repo1.maven.org/maven2)
Could not find artifact scout:scout:jar:0.1.0 in central (http://repo1.maven.org/maven2)
Could not find artifact quoin:quoin:jar:0.1.0 in central (http://repo1.maven.org/maven2)
Could not find artifact stencil:stencil:jar:0.3.0 in central (http://repo1.maven.org/maven2)
Retrieving org/clojure/core.cache/0.6.1/core.cache-0.6.1.jar (11k)
    from http://repo1.maven.org/maven2/
Could not find artifact slingshot:slingshot:jar:0.8.0 in central (http://repo1.maven.org/maven2)
Could not find artifact bultitude:bultitude:jar:0.1.7 in central (http://repo1.maven.org/maven2)
Retrieving slingshot/slingshot/0.8.0/slingshot-0.8.0.jar (6k)
    from https://clojars.org/repo/
Retrieving quoin/quoin/0.1.0/quoin-0.1.0.jar (3k)from https://clojars.org/repo/Retrieving scout/scout/0.1.0/scout-0.1.0.jar (4k)from https://clojars.org/repo/
Retrieving stencil/stencil/0.3.0/stencil-0.3.0.jar (13k)
    from https://clojars.org/repo/
Retrieving lein-newnew/lein-newnew/0.3.5/lein-newnew-0.3.5.jar (15k)
    from https://clojars.org/repo/
Retrieving bultitude/bultitude/0.1.7/bultitude-0.1.7.jar (4k)
    from https://clojars.org/repo/
Leiningen is a tool for working with Clojure projects.

Several tasks are available:
check               Check syntax and warn on reflection.
classpath           Write the classpath of the current project to output-file.
clean               Remove all files from project's target-path.
compile             Compile Clojure source into .class files.
deploy              Build jar and deploy to remote repository.
deps                Show details about dependencies.
do                  Higher-order task to perform other tasks in succession.
help                Display a list of tasks or help for a given task.
install             Install current project to the local repository.
jar                 Package up all the project's files into a jar file.
javac               Compile Java source files.
new                 Generate project scaffolding based on a template.
plugin              DEPRECATED. Please use the :user profile instead.
pom                 Write a pom.xml file to disk for Maven interoperability.
repl                Start a repl session either with the current project or stan
dalone.
retest              Run only the test namespaces which failed last time around.
run                 Run the project's -main function.
search              Search remote maven repositories for matching jars.
show-profiles       List all available profiles or display one if given an argum
ent.
test                Run the project's tests.
trampoline          Run a task without nesting the project's JVM inside Leininge
n's.
uberjar             Package up the project files and all dependencies into a jar
 file.
upgrade             Upgrade Leiningen to specified version or latest stable.
version             Print version for Leiningen and the current JVM.
with-profile        Apply the given task with the profile(s) specified.

Run lein help $TASK for details.

See also: readme, faq, tutorial, news, sample, profiles,
deploying and copying.


五、测试 

运行  lein.bat version

Leiningen 2.0.0-preview10 on Java 1.6.0_12 Java HotSpot(TM) Client VM


你可能感兴趣的:(maven,jar,clojure,dependencies,NameSpaces,leiningen)