Skip to content

Instantly share code, notes, and snippets.

@spoon16
Created November 15, 2011 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spoon16/1366004 to your computer and use it in GitHub Desktop.
Save spoon16/1366004 to your computer and use it in GitHub Desktop.
Maven/Lein Error
$ lein deps
[INFO] artifact org.clojure:clojure-contrib: checking for updates from releases
[INFO] artifact org.clojure:clojure-contrib: checking for updates from thirdparty
[INFO] artifact org.clojure:clojure-contrib: checking for updates from central
[INFO] artifact org.clojure:clojure-contrib: checking for updates from clojars
[INFO] artifact org.clojure:tools.logging: checking for updates from releases
[INFO] artifact org.clojure:tools.logging: checking for updates from thirdparty
[INFO] artifact org.clojure:tools.logging: checking for updates from central
[INFO] artifact org.clojure:tools.logging: checking for updates from clojars
[INFO] artifact log4j:log4j: checking for updates from releases
[INFO] artifact log4j:log4j: checking for updates from thirdparty
[INFO] artifact log4j:log4j: checking for updates from central
[INFO] artifact log4j:log4j: checking for updates from clojars
Downloading: log4j/log4j/1.2.16/log4j-1.2.16.pom from clojars
Downloading: log4j/log4j/1.2.16/log4j-1.2.16.pom from clojars
[INFO] snapshot clj-tika:clj-tika:1.0.0-SNAPSHOT: checking for updates from snapshots
[INFO] snapshot clj-tika:clj-tika:1.0.0-SNAPSHOT: checking for updates from thirdparty
[INFO] snapshot clj-tika:clj-tika:1.0.0-SNAPSHOT: checking for updates from clojars
[INFO] artifact org.apache.tika:tika-parsers: checking for updates from releases
[INFO] artifact org.apache.tika:tika-parsers: checking for updates from thirdparty
[INFO] artifact org.apache.tika:tika-parsers: checking for updates from clojars
[INFO] artifact org.apache.tika:tika-parsers: checking for updates from central
Downloading: log4j/log4j/1.2.16/log4j-1.2.16.jar from clojars
An error has occurred while processing the Maven artifact tasks.
Diagnosis:
Unable to resolve artifact: Missing:
----------
1) log4j:log4j:jar:1.2.16
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=log4j -DartifactId=log4j -Dversion=1.2.16 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=log4j -DartifactId=log4j -Dversion=1.2.16 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.maven:super-pom:jar:2.0
2) log4j:log4j:jar:RELEASE
----------
1 required artifact is missing.
for artifact:
org.apache.maven:super-pom:jar:2.0
from the specified remote repositories:
releases (http://repo.memebrane.net/content/repositories/releases),
clojars (http://clojars.org/repo/),
thirdparty (http://repo.memebrane.net/content/repositories/thirdparty),
snapshots (http://repo.memebrane.net/content/repositories/snapshots),
central (http://repo1.maven.org/maven2)
Exception in thread "main" Unable to resolve artifact: Missing:
----------
1) log4j:log4j:jar:1.2.16
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=log4j -DartifactId=log4j -Dversion=1.2.16 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=log4j -DartifactId=log4j -Dversion=1.2.16 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.maven:super-pom:jar:2.0
2) log4j:log4j:jar:RELEASE
----------
1 required artifact is missing.
for artifact:
org.apache.maven:super-pom:jar:2.0
from the specified remote repositories:
releases (http://repo.memebrane.net/content/repositories/releases),
clojars (http://clojars.org/repo/),
thirdparty (http://repo.memebrane.net/content/repositories/thirdparty),
snapshots (http://repo.memebrane.net/content/repositories/snapshots),
central (http://repo1.maven.org/maven2)
(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) log4j:log4j:jar:1.2.16
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=log4j -DartifactId=log4j -Dversion=1.2.16 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=log4j -DartifactId=log4j -Dversion=1.2.16 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.maven:super-pom:jar:2.0
2) log4j:log4j:jar:RELEASE
----------
1 required artifact is missing.
for artifact:
org.apache.maven:super-pom:jar:2.0
from the specified remote repositories:
releases (http://repo.memebrane.net/content/repositories/releases),
clojars (http://clojars.org/repo/),
thirdparty (http://repo.memebrane.net/content/repositories/thirdparty),
snapshots (http://repo.memebrane.net/content/repositories/snapshots),
central (http://repo1.maven.org/maven2)
at org.apache.maven.artifact.ant.DependenciesTask.doExecute(DependenciesTask.java:175)
at org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtifactTask.java:678)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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:195)
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:228)
at leiningen.core$_main.doInvoke(core.clj:294)
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:297)
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) log4j:log4j:jar:1.2.16
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=log4j -DartifactId=log4j -Dversion=1.2.16 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=log4j -DartifactId=log4j -Dversion=1.2.16 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.maven:super-pom:jar:2.0
2) log4j:log4j:jar:RELEASE
----------
1 required artifact is missing.
for artifact:
org.apache.maven:super-pom:jar:2.0
from the specified remote repositories:
releases (http://repo.memebrane.net/content/repositories/releases),
clojars (http://clojars.org/repo/),
thirdparty (http://repo.memebrane.net/content/repositories/thirdparty),
snapshots (http://repo.memebrane.net/content/repositories/snapshots),
central (http://repo1.maven.org/maven2)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:324)
at org.apache.maven.artifact.ant.DependenciesTask.doExecute(DependenciesTask.java:170)
... 34 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment