-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoSuchMethodError: org.apache.http.conn.ssl.SSLSocketFactory on publish #25
Comments
I see someone else is having this issue, also: gatling/gatling#1821 (comment) |
can you please create a standalone project which shows this error? |
The following hello world project fails for me: https://github.com/bretthoerner/aether-test
|
Using sbt-extras and -no-share. I cannot reproduce this. I am using Java 7. I will test again with Java 6. ./sbt -no-share publish |
It also works with java 1.6 and 1.8. |
Maybe the ivy cache is broken? Otherwise there might be a workaround: plugins.sbt addSbtPlugin("no.arktekk.sbt" % "aether-deploy" % "0.13") exclude("org.eclipse.aether", "aether-transport-http")
libraryDependencies += "org.eclipse.aether" % "aether-transport-http" % "0.9.0.v20140226" exclude("org.apache.httpcomponents", "httpclient") |
I'm using I don't think you can use exclude in the plugins file,
|
You're right, |
Now this I don't understand.
|
My mistake, here is one updated: addSbtPlugin("no.arktekk.sbt" % "aether-deploy" % "0.13" exclude("org.eclipse.aether", "aether-transport-http"))
libraryDependencies += "org.eclipse.aether" % "aether-transport-http" % "0.9.0.v20140226" exclude("org.apache.httpcomponents", "httpclient") Try removing |
With the exclusion change my sbt project compiles, but the publish now fails with this (after I removed
|
Fascinating. I dont think both the removal of .sbt and the exclusion is needed. Try removing the exclusion and try again. |
Got it, it seems my conflict is a global plugin,
|
Thanks for your help. :) |
Same as @bretthoerner : removing sbt-pgp did the trick, and aether-deploy works as expected. |
the combination with sbt-pgp works if its placed in the same I will update the README with a caveat. |
Ah, interesting, will remove it from my global plugins list and use aether-deploy at last :) |
I'm encounter a [error] Could not find metadata xxxx.xml in releases (https://oss.sonatype.org/service/local/staging/deploy/maven2) when execute sbt publish, |
|
Using
sbt 0.13.5
andaether-deploy 0.13
.The text was updated successfully, but these errors were encountered: