Hello all,
I am using eclipse IDE on windows 7 for developing clojure project
with leiningen plugin.
I think i have properly installed and configured java, lein and mvn
commands.
==================================================
D:\Chirag\workspace\process_it>mvn -version
Apache Maven 3.0.3 (r1075438; 2011-02-28 23:01:09+0530)
Maven home: C:\apache-maven-3.0.3
Java version: 1.7.0_01, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_01\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
==================================================
D:\Chirag\workspace\process_it>lein version
Leiningen 1.7.1 on Java 1.7.0_01 Java HotSpot(TM) Client VM
==================================================
But still when i want to download all dependencies(via "lein deps"
command) its giving artifact missing error as given below my
project.clj file is at last.
Can anybody give some detailed solution for this??
================================================================================================
D:\Chirag\workspace\process_it>lein run
Downloading: org/clojure/contrib/repl-utils/1.3.0-alpha4/repl-
utils-1.3.0-alpha4.pom from repository clojars at
http://clojars.org/repo/
Unable to locate resource in repository
[INFO] Unable to find resource 'org.clojure.contrib:repl-utils:pom:
1.3.0-alpha4' in repository clojars (
http://clojars.org/repo/)
Downloading: org/clojure/contrib/repl-utils/1.3.0-alpha4/repl-
utils-1.3.0-alpha4.pom from repository central at
http://repo1.maven.org/maven2
Unable to locate resource in repository
[INFO] Unable to find resource 'org.clojure.contrib:repl-utils:pom:
1.3.0-alpha4' in repository central (
http://repo1.maven.org/maven2)
Downloading: org/clojure/contrib/repl-utils/1.3.0-alpha4/repl-
utils-1.3.0-alpha4.pom from repository
java.net at
http://download.java.net/maven/2
Unable to locate resource in repository
[INFO] Unable to find resource 'org.clojure.contrib:repl-utils:pom:
1.3.0-alpha4' in repository
java.net (
http://download.java.net/maven/
2)
Downloading: org/clojure/contrib/repl-utils/1.3.0-alpha4/repl-
utils-1.3.0-alpha4.jar from repository clojars at
http://clojars.org/repo/
Unable to locate resource in repository
[INFO] Unable to find resource 'org.clojure.contrib:repl-utils:jar:
1.3.0-alpha4' in repository clojars (
http://clojars.org/repo/)
Downloading: org/clojure/contrib/repl-utils/1.3.0-alpha4/repl-
utils-1.3.0-alpha4.jar from repository central at
http://repo1.maven.org/maven2
Unable to locate resource in repository
[INFO] Unable to find resource 'org.clojure.contrib:repl-utils:jar:
1.3.0-alpha4' in repository central (
http://repo1.maven.org/maven2)
Downloading: org/clojure/contrib/repl-utils/1.3.0-alpha4/repl-
utils-1.3.0-alpha4.jar from repository
java.net at
http://download.java.net/maven/2
Unable to locate resource in repository
[INFO] Unable to find resource 'org.clojure.contrib:repl-utils:jar:
1.3.0-alpha4' in repository
java.net (
http://download.java.net/maven/
2)
An error has occurred while processing the Maven artifact tasks.
Diagnosis:
Unable to resolve artifact: Missing:
----------
1) org.clojure.contrib:repl-utils:jar:1.3.0-alpha4
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.clojure.contrib -
DartifactId=repl-utils -Dversion=1.3.0-alpha4 -Dpackaging=jar -Dfile=/
path/to/file
Alternatively, if you host your own repository you can deploy the
file there:
mvn deploy:deploy-file -DgroupId=org.clojure.contrib -
DartifactId=repl-utils -Dversion=1.3.0-alpha4 -Dpackaging=jar -Dfile=/
path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.maven:super-pom:pom:2.0
2) com.draines:postal:jar:1.7.1
3) org.clojure.contrib:repl-utils:jar:1.3.0-alpha4
----------
1 required artifact is missing.
for artifact:
org.apache.maven:super-pom:pom:2.0
from the specified remote repositories:
central (
http://repo1.maven.org/maven2),
clojars (
http://clojars.org/repo/)
Exception in thread "main" Unable to resolve artifact: Missing:
----------
1) org.clojure.contrib:repl-utils:jar:1.3.0-alpha4
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.clojure.contrib -
DartifactId=repl-utils -Dversion=1.3.0-alpha4 -Dpackaging=jar -Dfile=/
path/to/file
Alternatively, if you host your own repository you can deploy the
file there:
mvn deploy:deploy-file -DgroupId=org.clojure.contrib -
DartifactId=repl-utils -Dversion=1.3.0-alpha4 -Dpackaging=jar -Dfile=/
path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.maven:super-pom:pom:2.0
2) com.draines:postal:jar:1.7.1
3) org.clojure.contrib:repl-utils:jar:1.3.0-alpha4
----------
1 required artifact is missing.
for artifact:
org.apache.maven:super-pom:pom:2.0
from the specified remote repositories:
central (
http://repo1.maven.org/maven2),
clojars (
http://clojars.org/repo/)
(NO_SOURCE_FILE:0)
at clojure.lang.Compiler.eval(Compiler.java:5440)
at clojure.lang.Compiler.eval(Compiler.java:5391)
at clojure.core$eval.invoke(core.clj:2382)
at clojure.main$eval_opt.invoke(main.clj:235)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$script_opt.invoke(main.clj:270)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:457)
at clojure.lang.Var.invoke(Var.java:377)
at clojure.lang.AFn.applyToHelper(AFn.java:172)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.main.main(main.java:37)
Caused by: Unable to resolve artifact: Missing:
----------
1) org.clojure.contrib:repl-utils:jar:1.3.0-alpha4
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.clojure.contrib -
DartifactId=repl-utils -Dversion=1.3.0-alpha4 -Dpackaging=jar -Dfile=/
path/to/file
Alternatively, if you host your own repository you can deploy the
file there:
mvn deploy:deploy-file -DgroupId=org.clojure.contrib -
DartifactId=repl-utils -Dversion=1.3.0-alpha4 -Dpackaging=jar -Dfile=/
path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.maven:super-pom:pom:2.0
2) com.draines:postal:jar:1.7.1
3) org.clojure.contrib:repl-utils:jar:1.3.0-alpha4
----------
1 required artifact is missing.
for artifact:
org.apache.maven:super-pom:pom:2.0
from the specified remote repositories:
central (
http://repo1.maven.org/maven2),
clojars (
http://clojars.org/repo/)
at
org.apache.maven.artifact.ant.DependenciesTask.doExecuteResolution(DependenciesTask.java:
268)
at
org.apache.maven.artifact.ant.DependenciesTask.doExecute(DependenciesTask.java:
168)
at
org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtifactTask.java:
751)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:
90)
at
clojure.lang.Reflector.invokeNoArgInstanceMember(Reflector.java:265)
at leiningen.deps$do_deps.invoke(deps.clj:131)
at leiningen.deps$deps.doInvoke(deps.clj:196)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at leiningen.compile$prep.invoke(compile.clj:150)
at leiningen.compile$eval_in_project.doInvoke(compile.clj:207)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at leiningen.compile$compile.invoke(compile.clj:283)
at leiningen.compile$prep$fn__1991.invoke(compile.clj:148)
at leiningen.compile$prep.invoke(compile.clj:147)
at leiningen.compile$eval_in_project.doInvoke(compile.clj:207)
at clojure.lang.RestFn.invoke(RestFn.java:490)
at leiningen.run$run_main.doInvoke(run.clj:26)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:544)
at leiningen.run$run.doInvoke(run.clj:57)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.Var.invoke(Var.java:365)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.Var.applyTo(Var.java:482)
at clojure.core$apply.invoke(core.clj:542)
at leiningen.core$apply_task.invoke(core.clj:262)
at leiningen.core$_main.doInvoke(core.clj:329)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:542)
at leiningen.core$_main.invoke(core.clj:332)
at user$eval42.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:5424)
... 11 more
Caused by:
org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException:
Missing:
----------
1) org.clojure.contrib:repl-utils:jar:1.3.0-alpha4
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.clojure.contrib -
DartifactId=repl-utils -Dversion=1.3.0-alpha4 -Dpackaging=jar -Dfile=/
path/to/file
Alternatively, if you host your own repository you can deploy the
file there:
mvn deploy:deploy-file -DgroupId=org.clojure.contrib -
DartifactId=repl-utils -Dversion=1.3.0-alpha4 -Dpackaging=jar -Dfile=/
path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.maven:super-pom:pom:2.0
2) com.draines:postal:jar:1.7.1
3) org.clojure.contrib:repl-utils:jar:1.3.0-alpha4
----------
1 required artifact is missing.
for artifact:
org.apache.maven:super-pom:pom:2.0
from the specified remote repositories:
central (
http://repo1.maven.org/maven2),
clojars (
http://clojars.org/repo/)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:
360)
at
org.apache.maven.artifact.ant.DependenciesTask.doExecuteResolution(DependenciesTask.java:
263)
... 50 more
=======================================================================================
======================
below is my project.clj content
======================
(defproject my-noir-proj "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:dependencies [[org.clojure/clojure "1.2.0"]
[com.cemerick/friend "0.0.8"]
[org.openid4java/openid4java "0.9.5"]
[org.clojure/clojure-contrib "1.2.0"]
[noir "1.2.1"]
[date-clj "1.0.1"]
[congomongo "0.1.8"]
[clj-time "0.3.7"]
[org.jboss.netty/netty "3.2.2.Final"]
[ring/ring-jetty-adapter "0.3.8"]
[ring/ring-core "0.3.8"]
[net.cgrand/moustache "1.0.0"]
[com.draines/postal "1.7.1"]
[enlive "1.0.0"]
]
:dev-dependencies [[lein-eclipse "1.0.0"]]
:main my-noir-proj.server)