相关疑难解决方法(0)

maven无法传输工件,未经授权,ReasonPhrase:未经授权

我在pom.xml文件中添加了以下依赖项:

<dependency>
  <groupId>org.tuckey</groupId>
  <artifactId>urlrewritefilter</artifactId>
  <version>4.0.4</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)

我有很多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
Run Code Online (Sandbox Code Playgroud)

这是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>
..
Run Code Online (Sandbox Code Playgroud)

任何帮助?TNX.

java maven

9
推荐指数
1
解决办法
3万
查看次数

Maven未经授权,ReasonPhrase:未经授权

我试图从Nexus存储库中查看我的代码.首先,我用密码生成密码

mvn --encrypt-master-password _mypassword_
Run Code Online (Sandbox Code Playgroud)

这是我的c:/Users/joanet/.m2/settings-security.xml:

<settingsSecurity>
<master>{TnRCVc3cX6MH5qRXEMLwxjKGfXQu6v/6wR0rgHED2ws=}</master>
</settingsSecurity>
Run Code Online (Sandbox Code Playgroud)

这是我的c:/progs/PGM/apache-maven-3.0.5/conf/settings.xml

  <?xml version="1.0" encoding="UTF-8"?>

    <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
    license agreements. See the NOTICE file distributed with this work for additional
    information regarding copyright ownership. The ASF licenses this file to
    you under the Apache License, Version 2.0 (the "License"); you may not use
    this file except in compliance with the License. You may obtain a copy of
    the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required …
Run Code Online (Sandbox Code Playgroud)

maven

5
推荐指数
1
解决办法
3万
查看次数

标签 统计

maven ×2

java ×1