Infrastructure
  1. Infrastructure
  2. INFRA-6414

getting unauthorized error trying to stage artifacts to a new maven repo

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Fix Version/s: Initial Clearing
    • Component/s: Nexus
    • Labels:
      None

      Activity

      Hide
      Brian Fox added a comment -
      I double checked the permissions for kafka and your user and everything appears to be correct. Have you provided your user/pass correctly in your maven settings?
      Show
      Brian Fox added a comment - I double checked the permissions for kafka and your user and everything appears to be correct. Have you provided your user/pass correctly in your maven settings?
      Hide
      Joe Stein added a comment -
      I have tried both the encrypted and unencrypted version neither are working, maybe I have the id of the servers wrong or something else?

      <settings>
        <servers>
          <!-- To publish a snapshot of some part of Maven -->
          <server>
            <id>apache.snapshots.https</id>
            <username>joestein</username>
            <password></password>
          </server>
          <!-- To stage a release of some part of Maven -->
          <server>
            <id>apache.releases.https</id>
            <username>joestein</username>
            <password></password>
          </server>
        </servers>
      </settings>

      Here is what we have set in Kafka

          publishTo := Some("Apache Maven Repo" at "https://repository.apache.org/service/local/staging/deploy/maven2"),
          credentials += Credentials(Path.userHome / ".m2" / ".credentials"),

      Show
      Joe Stein added a comment - I have tried both the encrypted and unencrypted version neither are working, maybe I have the id of the servers wrong or something else? <settings>   <servers>     <!-- To publish a snapshot of some part of Maven -->     <server>       <id>apache.snapshots.https</id>       <username>joestein</username>       <password></password>     </server>     <!-- To stage a release of some part of Maven -->     <server>       <id>apache.releases.https</id>       <username>joestein</username>       <password></password>     </server>   </servers> </settings> Here is what we have set in Kafka     publishTo := Some("Apache Maven Repo" at " https://repository.apache.org/service/local/staging/deploy/maven2 "),     credentials += Credentials(Path.userHome / ".m2" / ".credentials"),
      Hide
      Brian Fox added a comment -
      I'm not familiar with the syntax of this particular build system, but it seems pretty clear based on everything else that the proper credentials aren't getting passed to Nexus on the deploy. In Maven, the id used in the server setting must match the id in the repository in order for it to know which credentials to pass. I don't see an id on your publishTo line.
      Show
      Brian Fox added a comment - I'm not familiar with the syntax of this particular build system, but it seems pretty clear based on everything else that the proper credentials aren't getting passed to Nexus on the deploy. In Maven, the id used in the server setting must match the id in the repository in order for it to know which credentials to pass. I don't see an id on your publishTo line.
      Hide
      Joe Stein added a comment -
      Thanks, I made changes to the credentials file I am using based on my tool and publishing to the staging repository is working now
      Show
      Joe Stein added a comment - Thanks, I made changes to the credentials file I am using based on my tool and publishing to the staging repository is working now
      Hide
      Andrew Olson added a comment -
      Will Kafka 0.8.0-beta1 be available on a public maven repo?
      Show
      Andrew Olson added a comment - Will Kafka 0.8.0-beta1 be available on a public maven repo?
      Hide
      Andrew Olson added a comment -
      I see that it is now available here: http://search.maven.org/#artifactdetails|org.apache.kafka|kafka_2.8.0|0.8.0-beta1|N%2FA
      Show
      Andrew Olson added a comment - I see that it is now available here: http://search.maven.org/#artifactdetails |org.apache.kafka|kafka_2.8.0|0.8.0-beta1|N%2FA

        People

        • Assignee:
          Brian Fox
          Reporter:
          Joe Stein
        • Votes:
          0 Vote for this issue
          Watchers:
          4 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:
            Review Date:

            Development