我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