我pom.xml
文件添加以下的依賴:行家無法轉移神器,未經授權,ReasonPhrase:未經授權
<dependency>
<groupId>org.tuckey</groupId>
<artifactId>urlrewritefilter</artifactId>
<version>4.0.4</version>
</dependency>
我有很多Maven依賴的,但是當我加入一個以上我得到:
Failed to read artifact descriptor for org.tuckey:urlrewritefilter:jar:4.0.4: Could not transfer artifact org.tuckey:urlrewritefilter:pom:4.0.4 from/to central (http://app1.stage.server.net/artifactory/libs-release): Not authorized, ReasonPhrase:Unauthorized. -> [Help 1]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
這是settings.xml
文件的外觀:
..
<servers>
<server>
<username>user</username>
<id>central</id>
<password>my-password</password>
</server>
<server>
<username>user</username>
<id>snapshots</id>
<password>my-password</password>
</server>
</servers>
<profiles>
...
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
..
有幫助嗎? TNX。
我還沒有看到這封郵件我自己,但錯誤表明您正在嘗試使用你的服務器使用你在哪裏正確驗證用戶檢索軟件包,但根據未授權使用此服務的服務器。請檢查您的服務器管理員,確保您使用的用戶應該能夠使用您的服務器,並確保其正確配置。 – DanielBarbarian
是啊..它的工作正常,因爲我添加了大約100個依賴關係,並且它們都工作正常,我只專門針對這個問題。 – tokhi
這是maven服務器上的配置問題。 – tokhi