Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Maven-错误代码401,未经授权_Java_Maven - Fatal编程技术网

Java Maven-错误代码401,未经授权

Java Maven-错误代码401,未经授权,java,maven,Java,Maven,我刚刚在EclipseIDE中导入了一些maven项目。 但我在Eclipse项目中有一个错误: Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from https://intra.telecom.fr/CITnet/nexus/content/groups/public/ was cached in the local repository, resolution will not be

我刚刚在EclipseIDE中导入了一些maven项目。 但我在Eclipse项目中有一个错误:

Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from https://intra.telecom.fr/CITnet/nexus/content/groups/public/ was cached in the local repository, 
resolution will not be reattempted until the update interval of ecPublicRepository has elapsed or updates are forced. 
Original error: 
Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to ecPublicRepository
 (https://intra.telecom.fr/CITnet/nexus/content/groups/public/): 
Access denied to https://intra.telecom.fr/CITnet/nexus/content/groups/public/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom. 
Error code 401, Unauthorized    pom.xml 
但是我已经定义了对intra.telecom.fr站点的访问 在文件C:\dédevelopement\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
by applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
OF ANY KIND, either express or implied. See the License for the specific
language governing permissions and limitations under the License. -->

<!-- http://maven.apache.org/settings.html -->
<settings xmlns="http://maven.apache.org/settings/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

<localRepository>C:/Users/joanet/.m2/repository</localRepository>


<proxies>
 <proxy>
  <id>optional</id>
  <active>true</active>
  <protocol>http</protocol>
  <username>joanet</username>
   <password>{yRso+k6+abkHTVcPc5esNgartpDSfHPWgHL/QvhQ33c=}</password>
  <host>168.168.141.12</host>
  <port>7022</port>
  <nonProxyHosts>localhost|intra.telecom.fr</nonProxyHosts>
 </proxy>
</proxies>

<servers>
  <server>
   <id>ecPublicRepository</id>
   <username>joanet</username>
   <password>{yRso+k6+abkHTVcPc5esNgartpDSfHPWgHL/QvhQ57c=}</password>
  </server>


</servers>

<mirrors></mirrors>

<pluginGroups>
 <!-- pluginGroup Specifies a further group identifier to use for plugin lookup.  -->
 <pluginGroup>com.oracle.weblogic</pluginGroup>
 <pluginGroup>com.github.searls</pluginGroup>
 <pluginGroup>com.cj.jshintmojo</pluginGroup>
 <pluginGroup>com.github.phasebash</pluginGroup>

</pluginGroups>

<profiles>
 <profile>
  <id>activeProfile</id>

  <repositories>

   <repository>
      <id>ecPublicRepository</id>
      <url>https://intra.telecom.fr/CITnet/nexus/content/groups/public/</url>
   </repository>


  </repositories>

  <pluginRepositories>

   <pluginRepository>
    <id>ecPublicRepository</id>
    <name>EC Public Repository</name>
    <url>https://intra.telecom.fr/CITnet/nexus/content/groups/public/</url>
   </pluginRepository>
  </pluginRepositories>

 </profile>

</profiles>

<!-- activeProfiles | List of profiles that are active for all builds. | -->
<activeProfiles>
 <activeProfile>activeProfile</activeProfile>
</activeProfiles>


</settings>

C:/Users/joannet/.m2/存储库
可选择的
真的
http
乔安妮
{yRso+k6+ABKHTVC5ESNGARTPSFHPWGHL/QvhQ33c=}
168.168.141.12
7022
localhost | intra.telecom.fr
ecPublicRepository
乔安妮
{yRso+k6+abkHTVcPc5esNgartpDSfHPWgHL/QvhQ57c=}
com.oracle.weblogic
com.github.searls
com.cj.jshintmojo
com.github.phasebash
活动配置文件
ecPublicRepository
https://intra.telecom.fr/CITnet/nexus/content/groups/public/
ecPublicRepository
EC公共存储库
https://intra.telecom.fr/CITnet/nexus/content/groups/public/
活动配置文件

使用命令加密主密码,并将其放入
~/.m2/settings security.xml

mvn --encrypt-master-password  <your_master_pass>
通过运行以下命令将密码加密到Maven存储库:
mvn——加密密码
并使用以下内容创建
~/.m2/settings.xml


身份证件
用户名
{哈希passwd}

使用命令加密主密码,并将其放入
~/.m2/settings security.xml

mvn --encrypt-master-password  <your_master_pass>
通过运行以下命令将密码加密到Maven存储库:
mvn——加密密码
并使用以下内容创建
~/.m2/settings.xml


身份证件
用户名
{哈希passwd}

使用命令加密主密码,并将其放入
~/.m2/settings security.xml

mvn --encrypt-master-password  <your_master_pass>
通过运行以下命令将密码加密到Maven存储库:
mvn——加密密码
并使用以下内容创建
~/.m2/settings.xml


身份证件
用户名
{哈希passwd}

使用命令加密主密码,并将其放入
~/.m2/settings security.xml

mvn --encrypt-master-password  <your_master_pass>
通过运行以下命令将密码加密到Maven存储库:
mvn——加密密码
并使用以下内容创建
~/.m2/settings.xml


身份证件
用户名
{哈希passwd}

您确定可以在不使用代理的情况下访问intra.telecom.fr吗?我建议您在
yourUserHomeDir/.m2
中创建一个
settings.xml
文件,并在其中添加所有特定设置,而不是修改Maven附带的
settings.xml
。Eclipse可能正在使用不同的Maven安装。如果您在
yourUserHomeDir/.m2/settings.xml
中放置自定义项,Eclipse和其他Maven安装可能都会找到它们。您确定能够在不使用代理的情况下访问intra.telecom.fr吗?我建议在
yourUserHomeDir/.m2
中创建一个
settings.xml
文件,并在其中添加所有特定设置而不是修改Maven附带的
settings.xml
。Eclipse可能正在使用不同的Maven安装。如果您在
yourUserHomeDir/.m2/settings.xml
中放置自定义项,Eclipse和其他Maven安装可能都会找到它们。您确定能够在不使用代理的情况下访问intra.telecom.fr吗?我建议在
yourUserHomeDir/.m2
中创建一个
settings.xml
文件,并在其中添加所有特定设置而不是修改Maven附带的
settings.xml
。Eclipse可能正在使用不同的Maven安装。如果您在
yourUserHomeDir/.m2/settings.xml
中放置自定义项,Eclipse和其他Maven安装可能都会找到它们。您确定能够在不使用代理的情况下访问intra.telecom.fr吗?我建议在
yourUserHomeDir/.m2
中创建一个
settings.xml
文件,并在其中添加所有特定设置而不是修改Maven附带的
settings.xml
。Eclipse可能正在使用不同的Maven安装。如果在
yourUserHomeDir/.m2/settings.xml
中放置自定义项,Eclipse和其他Maven安装都可能找到它们。