-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
I have a problem to push my lib to sonatype. #14
Comments
22:25:48.590 [INFO] [org.gradle.api.internal.project.ant.AntLoggingAdapter] [ant:null] Deploying to https://oss.sonatype.org/content/repositories/snapshots/ Error deploying artifact 'com.github.kulik:android-jaxb:aar': Error deploying artifact: Failed to transfer file: https://oss.sonatype.org/content/repositories/snapshots/com/github/kulik/android-jaxb/0.1-SNAPSHOT/android-jaxb-0.1-20140225.202548-1.aar. Return code is: 401 22:26:12.161 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':library:uploadArchives' |
401 means not authorized. Have you configured your credentials to Sonatype
|
thank you for answer. |
And do you have permission to access the com.github.kulik groupId from
|
sorry i am very new in maven/nexus, now when i login and try to find my package i see http://gyazo.com/83e3f84b0178b43c556433eeea5d7c57 can it means that i haven't some permitions on nexus? |
Did you file a JIRA ticket to get access to the repository? |
yes http://gyazo.com/952a49bc3ed10e4bb313ca478d10b3fe, also today i have uploaded artifacts manualy from UI. close it and release. but still problems with gradle-maven. also i have version up, because 0.1 already deployed manual way |
Check for trailing whitespaces in credentials in ~/.gradle/gradle.properties. |
i tried to upload builded artifacts to nexus in manual way, and it diagnostic system say http://gyazo.com/e0640f886d693eba03603d88554f600a but in /build/libs i found only debug.aar is missing, i think "staging upload" on nexus ui works in the same way as automatic. that means maybe problem here |
@kulik The
Try to |
It seems that I am encountering the same error while trying to migrate from a maven artefact deployment model to gradle and even if I used the same user and password as the ones from the maven config (that works), I do still get:
|
i have develop some lib https://github.com/kulik/AndroidJAXBLib/tree/gradle on this branch i have migrate to gradle project structure? and want to push it to mvn. As you can see i made everything by your instructions. but when i try to do
./gradlew uploadArchives
:library:androidJavadocs UP-TO-DATE
:library:androidJavadocsJar UP-TO-DATE
:.......
:library:bundleRelease UP-TO-DATE
:library:signArchives UP-TO-DATE
:library:uploadArchives
Uploading: com/github/kulik/android-jaxb/0.1-SNAPSHOT/android-jaxb-0.1-20140225.200505-1.aar to repository remote at https://oss.sonatype.org/content/repositories/snapshots/
Transferring 69K from remote
:library:uploadArchives FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':library:uploadArchives'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 44.423 secs
also a have push gradle.properties itto homefolder/.gradle, and right credentials a setuped.(when i put some println(NEXUS_USERNAME) and same for pass it had wrote correct info). also i can login with that credentials to the https://oss.sonatype.org/ and to jira.sonatype.org. but uploading was failed.
Please help me.
The text was updated successfully, but these errors were encountered: