Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Received status code 401 from server: Unauthorized using Maven

未關閉
#1,576 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
java
領域
build-system

研究方向

先檢查回報中的 settings.xml、repository 宣告和 POM 相依性,然後使用 Mapbox repository URL 重現 Maven 建置。檢查 server id 和驗證設定是否符合 Maven 對 401 回應的預期。mapbox-sdk-services 6.15.0 相依性能夠成功解析且沒有 unauthorized 錯誤時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

Hi there,
I'm trying to build a project using mapbox sdk in JavaFX. If I try to build I'm getting the following error:

[ERROR] Failed to execute goal on project interfaces: Could not resolve dependencies for project testProject:interfaces:bundle:1.0.0-SNAPSHOT: Failed to collect dependencies at com.mapbox.mapboxsdk:mapbox-sdk-services:jar:6.15.0: Failed to read artifact descriptor for com.mapbox.mapboxsdk:mapbox-sdk-services:jar:6.15.0: Could not transfer artifact com.mapbox.mapboxsdk:mapbox-sdk-services:pom:6.15.0 from/to mapbox (https://api.mapbox.com/downloads/v2/releases/maven): authentication failed for https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-sdk-services/6.15.0/mapbox-sdk-services-6.15.0.pom, status: 401 Unauthorized

My settings.xml:
`

    <server>
        <id>mapbox</id>
        <username>mapbox</username>
		<password>Token with Downloads:READ property</password>
    </server>
</servers>`

and

<repository> <id>mapbox</id> <name>Mapbox repo</name> <url>https://api.mapbox.com/downloads/v2/releases/maven</url> </repository>

and finally POM.xml:
<dependency> <groupId>com.mapbox.mapboxsdk</groupId> <artifactId>mapbox-sdk-services</artifactId> <version>6.15.0</version> </dependency>

I also tried to use the following adress and succeeded to read the POM
https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-sdk-services/6.15.0/mapbox-sdk-services-6.15.0.pom?access_token=MYTOKEN

主要語言
Java
星號
438
分支
117
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

mapbox/mapbox-java 的其他 Issue

查看 mapbox/mapbox-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。