You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Vinod Kone (JIRA)" <ji...@apache.org> on 2013/06/05 05:39:22 UTC
[jira] [Created] (INFRA-6349) Unable to publish jars to
repository.apache.org
Vinod Kone created INFRA-6349:
---------------------------------
Summary: Unable to publish jars to repository.apache.org
Key: INFRA-6349
URL: https://issues.apache.org/jira/browse/INFRA-6349
Project: Infrastructure
Issue Type: Task
Security Level: public (Regular issues)
Reporter: Vinod Kone
Hi,
I am a committer on Mesos project and I'm having problems publishing the mesos jar to repository.apache.org. From the 401 error it looks like a permission issue.
➜ ~/workspace/apache/mesos/build/src/java git:(0.11.x) mvn clean deploy -f mesos.pom
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ mesos ---
Uploading: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/mesos/mesos/0.11.0-incubating/mesos-0.11.0-incubating.jar
Uploading: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/mesos/mesos/0.11.0-incubating/mesos-0.11.0-incubating.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.731s
[INFO] Finished at: Mon Jun 03 19:57:13 PDT 2013
[INFO] Final Memory: 15M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project mesos: Failed to deploy artifacts: Could not transfer artifact org.apache.mesos:mesos:jar:0.11.0-incubating from/to apache.releases.https (https://repository.apache.org/service/local/staging/deploy/maven2): Failed to transfer file: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/mesos/mesos/0.11.0-incubating/mesos-0.11.0-incubating.jar. Return code is: 401 -> [Help 1]
AFAICT, I've setup the settings.xml correctly. Here is the output from "mvn help:effective-settings"
<settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
<localRepository xmlns="http://maven.apache.org/SETTINGS/1.1.0">/Users/vinod/.m2/repository</localRepository>
<servers xmlns="http://maven.apache.org/SETTINGS/1.1.0">
<server>
<username>vinodkone</username>
<password>***</password>
<id>apache.snapshots.https</id>
</server>
<server>
<username>vinodkone</username>
<password>***</password>
<id>apache.releases.https</id>
</server>
</servers>
<pluginGroups xmlns="http://maven.apache.org/SETTINGS/1.1.0">
<pluginGroup>org.apache.maven.plugins</pluginGroup>
<pluginGroup>org.codehaus.mojo</pluginGroup>
</pluginGroups>
</settings>
I've tried using both plain text password and encrypted password. I'm able to login fine to https://repository.apache.org/ with the same username and password. Is there something else that I need to do?
Even curling, as suggested at http://blog.sonatype.com/people/2010/11/what-to-do-when-nexus-returns-401/, returns error for me.
➜ ~/workspace/apache/mesos/build/src/java git:(0.11.x) curl -u vinodkone:**** "https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/mesos/mesos/0.11.0-incubating/mesos-0.11.0-test.pom" --request PUT --data @mesos.pom -H 'Content-Type: application/xml'
<html>
<head>
<title>Status page</title>
</head>
<body>
<h3>Illegal access of staging profile '170dfcbde91b3'</h3><p>You can get technical details <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2">here</a>.<br>
Please continue your visit at our <a href="/">home page</a>.
</p>
</body>
</html>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira