Maven错误-授权失败:未经代理授权

Maven错误-授权失败:未经代理授权,maven,authorization,Maven,Authorization,我试图在ubuntu中构建opennms,但当我在terminal中给出./compile.pl(用于编译opennms源代码)时,我得到以下错误。 我使用的是maven 2.2.1版本。 请任何人提供一个解决方案 注意:删除了stacktrace中类似http的超链接 [WARNING] Unable to get resource 'org.apache.felix:maven-bundle-plugin:pom:1.4.3' from repository java-net-repo (h

我试图在ubuntu中构建opennms,但当我在terminal中给出./compile.pl(用于编译opennms源代码)时,我得到以下错误。 我使用的是maven 2.2.1版本。 请任何人提供一个解决方案

注意:删除了stacktrace中类似http的超链接

[WARNING] Unable to get resource 'org.apache.felix:maven-bundle-plugin:pom:1.4.3' from repository java-net-repo (http://maven.opennms.org/content/groups/java.net-release): Authorization failed: Not authorized by proxy.
Downloading: //repo1.maven.org/maven2/org/apache/felix/maven-bundle-plugin/1.4.3/maven-bundle-plugin-1.4.3.pom
[WARNING] Unable to get resource 'org.apache.felix:maven-bundle-plugin:pom:1.4.3' from repository central (repo1.maven.org/maven2): Authorization failed: Not authorized by proxy.
Downloading: http://maven.opennms.org/content/groups/opennms.org-release/org/apache/felix/maven-bundle-plugin/1.4.3/maven-bundle-plugin-1.4.3.pom
[WARNING] Unable to get resource 'org.apache.felix:maven-bundle-plugin:pom:1.4.3' from repository opennms-repo (maven.opennms.org/content/groups/opennms.org-release): Authorization failed: Not authorized by proxy.
Downloading: repo1.maven.org/maven2/org/apache/felix/maven-bundle-plugin/1.4.3/maven-bundle-plugin-1.4.3.pom
[WARNING] Unable to get resource 'org.apache.felix:maven-bundle-plugin:pom:1.4.3' from repository central (//repo1.maven.org/maven2): Authorization failed: Not authorized by proxy.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

确保在设置文件中有正确的代理身份验证用户名和密码

 <proxies>
   <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxy.somewhere.com</host>
      <port>8080</port>
      <username>proxyuser</username>
      <password>somepassword</password>
      <nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts>
    </proxy>
  </proxies>

拉古和阿伦


非常感谢。我能够使用maven进行构建。我所做的是,我删除了maven,并用与opennms捆绑的版本相同的版本重新安装,而且也没有更改maven中的settings.xml(在opennms内部)。

Hi Arun,thnks。我已经配置了代理并测试了简单的maven示例,工作正常。但是当我构建源代码(compile.pl)时,我遇到了这个错误。