위젯을 옮길 수 없음: lein이 clojars를 배치할 때 금지

8510 단어 leiningen

묘사

:lein deploy clojars를 실행하면 다음과 같은 출력이 발생합니다.

Leiningen's classpath: /Users/junjie/.lein/self-installs/leiningen-2.5.1-standalone.jar
Applying task deploy to [clojars]
Wrote /Users/junjie/apps/lein-packer.git/pom.xml
Applying task javac to nil
Running javac with [@/var/folders/vz/mcsjy1jn0yx9dyvj5c512dw40000gq/T/.leiningen-cmdline1186457974010120740.tmp]
Applying task compile to nil
All namespaces already AOT compiled.
Created /Users/junjie/apps/lein-packer.git/target/lein-packer-0.1.0.jar

You need a passphrase to unlock the secret key for
user: "Junjie Mars (not dark yet) <[email protected]>"
4096-bit RSA key, ID C9166EA4, created 2015-02-01


You need a passphrase to unlock the secret key for
user: "Junjie Mars (not dark yet) <[email protected]>"
4096-bit RSA key, ID C9166EA4, created 2015-02-01

Deploying {(:extension pom.asc) /Users/junjie/apps/lein-packer.git/pom.xml.asc, (:extension jar.asc) /Users/junjie/apps/lein-packer.git/target/lein-packer-0.1.0.jar.asc, [:extension jar] /Users/junjie/apps/lein-packer.git/target/lein-packer-0.1.0.jar, [:extension pom] /Users/junjie/apps/lein-packer.git/pom.xml} to [clojars {:url https://clojars.org/repo/, :password Hw6-tdk-D8Y-PeN, :username [email protected]}]
Sending org/clojars/junjiemars/lein-packer/0.1.0/lein-packer-0.1.0.pom (3k)
    to https://clojars.org/repo/
Could not transfer artifact org.clojars.junjiemars:lein-packer:pom:0.1.0 from/to clojars (https://clojars.org/repo/): Access denied to: https://clojars.org/repo/org/clojars/junjiemars/lein-packer/0.1.0/lein-packer-0.1.0.pom, ReasonPhrase: Forbidden.
Sending org/clojars/junjiemars/lein-packer/0.1.0/lein-packer-0.1.0.jar (9k)
    to https://clojars.org/repo/
Sending org/clojars/junjiemars/lein-packer/0.1.0/lein-packer-0.1.0.jar.asc (1k)
    to https://clojars.org/repo/
Sending org/clojars/junjiemars/lein-packer/0.1.0/lein-packer-0.1.0.pom.asc (1k)
    to https://clojars.org/repo/
org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact org.clojars.junjiemars:lein-packer:pom:0.1.0 from/to clojars (https://clojars.org/repo/): Access denied to: https://clojars.org/repo/org/clojars/junjiemars/lein-packer/0.1.0/lein-packer-0.1.0.pom, ReasonPhrase: Forbidden.
    at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:280)
    at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:211)
    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:443)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:93)
    at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:28)
    at cemerick.pomegranate.aether$deploy_artifacts.doInvoke(aether.clj:338)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invoke(core.clj:624)
    at cemerick.pomegranate.aether$deploy.doInvoke(aether.clj:411)
    at clojure.lang.RestFn.invoke(RestFn.java:619)
    at leiningen.deploy$deploy.invoke(deploy.clj:187)
    at clojure.lang.Var.invoke(Var.java:383)
    at clojure.lang.AFn.applyToHelper(AFn.java:156)
    at clojure.lang.Var.applyTo(Var.java:700)
    at clojure.core$apply.invoke(core.clj:626)
    at leiningen.core.main$partial_task$fn__6094.doInvoke(main.clj:263)
    at clojure.lang.RestFn.applyTo(RestFn.java:139)
    at clojure.lang.AFunction$1.doInvoke(AFunction.java:29)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.core$apply.invoke(core.clj:626)
    at leiningen.core.main$apply_task.invoke(main.clj:313)
    at leiningen.core.main$resolve_and_apply.invoke(main.clj:319)
    at leiningen.core.main$_main$fn__6160.invoke(main.clj:392)
    at leiningen.core.main$_main.doInvoke(main.clj:385)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at clojure.lang.Var.invoke(Var.java:383)
    at clojure.lang.AFn.applyToHelper(AFn.java:156)
    at clojure.lang.Var.applyTo(Var.java:700)
    at clojure.core$apply.invoke(core.clj:624)
    at clojure.main$main_opt.invoke(main.clj:315)
    at clojure.main$main.doInvoke(main.clj:420)
    at clojure.lang.RestFn.invoke(RestFn.java:457)
    at clojure.lang.Var.invoke(Var.java:394)
    at clojure.lang.AFn.applyToHelper(AFn.java:165)
    at clojure.lang.Var.applyTo(Var.java:700)
    at clojure.main.main(main.java:37)
Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.clojars.junjiemars:lein-packer:pom:0.1.0 from/to clojars (https://clojars.org/repo/): Access denied to: https://clojars.org/repo/org/clojars/junjiemars/lein-packer/0.1.0/lein-packer-0.1.0.pom, ReasonPhrase: Forbidden.
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:951)
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:941)
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:837)
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:467)
    at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:274)
    ... 39 more
Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: https://clojars.org/repo/org/clojars/junjiemars/lein-packer/0.1.0/lein-packer-0.1.0.pom, ReasonPhrase: Forbidden.
    at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:638)
    at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:564)
    at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:546)
    at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:540)
    at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:520)
    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:811)
    ... 41 more
Failed to deploy artifacts: Could not transfer artifact org.clojars.junjiemars:lein-packer:pom:0.1.0 from/to clojars (https://clojars.org/repo/): Access denied to: https://clojars.org/repo/org/clojars/junjiemars/lein-packer/0.1.0/lein-packer-0.1.0.pom, ReasonPhrase: Forbidden.

나의 ~.라이언 / 프로필.cljs

 {:user {:plugins [[cider/cider-nrepl "0.8.1"]]
        :signing {:gpg-key "[email protected]"
        :deploy-repositories [["clojars" {:creds :gpg}]]}
        }}

나의 ~.라이언 / 인증서.clj

{#"https://clojars.org/repo" 
            {:username "[email protected]"
             :password "<my-clojars-password>"}}
gpg-d~.라이언/인증서.clj.gpg 정상입니다.lein배치clojars에 무슨 문제가 있습니까?

토론 #1

여기에 간단한 문제가 하나 있다. 파일 이름~/.lein/profiles.cljs이냐, 아니면 네가 잘못 맞혔느냐~/.lein/profiles.clj?(후자로 추정됩니다. 단지 확인하고 싶을 뿐입니다.)어이, 헤피린,
나는 타자 오류가 하나 있는데, 네~/입니다.라이언/인증서.clj

토론 #2

이것이 바로 내가 의심한 것이다. 증명해 주셔서 감사합니다.나도 같은 문제가 있다.이것은 gpg 키 비밀번호를 두 번 요구하는데, 내가 시도할 때마다

토론 #셋

실패하고

토론 #4

.이는 Java 1.8.031 Java HotSpot(TM) 64비트 서버 VM의 Leiningen 2.5.1에서 이뤄졌다.
내가 더 많은 정보를 제공할 수 있다는 것을 알게 하다.고맙습니다.lein deploy clojars 우주 맥 컴퓨터에서 gto 애플 술 플러그를 시도했을 때 이 문제에 부딪혔지만, 만약 내가 케이스에서 작동한다면 문제가 없을 것이다.모든 일이 상당히 은밀하니, 나는 곧 간단한 영어 해결 방안이 있기를 바란다.ReasonPhrase: Forbidden'금지'는 잘못된 증거를 사용할 때 응답하는 것입니다. 여기에서 하는 것처럼:

토론 #5

전자 우편 주소가 아닌 Clojars 사용자 이름이어야 합니다.
GPG 프롬프트가 두 번 나왔는데 두 개의 인공제품에 서명(POM과 JAR)이 필요하기 때문이다.GPG 에이전트를 사용하여 두 번째 프롬프트를 방지합니다.
좋은 자질로 인해 이 일as advertised은 우리가 이곳에서 더 많은 일을 할 수 없다고 생각한다.

토론 #6

그렇습니다.이것은 옳은 것 같다.

좋은 웹페이지 즐겨찾기