Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-6414

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

    Details

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

      Activity

      Hide
      noslowerdna 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
      noslowerdna 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
      Hide
      noslowerdna Andrew Olson added a comment -
      Will Kafka 0.8.0-beta1 be available on a public maven repo?
      Show
      noslowerdna Andrew Olson added a comment - Will Kafka 0.8.0-beta1 be available on a public maven repo?
      Hide
      charmalloc Joe Stein added a comment - Reporter
      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
      charmalloc Joe Stein added a comment - Reporter 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
      brianf 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
      brianf 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
      charmalloc Joe Stein added a comment - Reporter
      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
      charmalloc Joe Stein added a comment - Reporter 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
      brianf 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
      brianf 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?

        People

        • Assignee:
          brianf Brian Fox
          Reporter:
          charmalloc Joe Stein
          Request participants:
          None
        • Votes:
          0 Vote for this issue
          Watchers:
          4 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:
            Review Date: