Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ember.js/4.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
使用eclipse';为maven';s依赖解决_Eclipse_Maven - Fatal编程技术网

使用eclipse';为maven';s依赖解决

使用eclipse';为maven';s依赖解决,eclipse,maven,Eclipse,Maven,我使用的是eclipse(Springsource工具套件),我支持一个代理。在eclipse中,我配置了我的代理(ip、用户名、密码),以便下载插件。现在对于maven,我还需要在settings.xml中指定这些代理设置,复制代理参数并公开我的密码。有没有办法让maven使用eclipse代理设置 简单的回答是不,因为Maven使用自己的下载等。所以没有办法。。。您的设置应该位于您的主目录中,该目录受您的个人密码保护……因此这应该不是问题。否。Eclipse和Maven是分开工作的 Mave

我使用的是eclipse(Springsource工具套件),我支持一个代理。在eclipse中,我配置了我的代理(ip、用户名、密码),以便下载插件。现在对于maven,我还需要在settings.xml中指定这些代理设置,复制代理参数并公开我的密码。有没有办法让maven使用eclipse代理设置

简单的回答是不,因为Maven使用自己的下载等。所以没有办法。。。您的设置应该位于您的主目录中,该目录受您的个人密码保护……因此这应该不是问题。

否。Eclipse和Maven是分开工作的

Maven的用户级设置需要如Khmarbaise所建议的那样位于settings.xml中,并且必须将其放置在Windows 7上c:/users/[name]/目录或linux上的/home目录中的.m2文件夹中

<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">
  ...
  <servers>
    <server>
      <id>server001</id>
      <username>my_login</username>
      <password>my_password</password>
      <privateKey>${user.home}/.ssh/id_dsa</privateKey>
      <passphrase>some_passphrase</passphrase>
      <filePermissions>664</filePermissions>
      <directoryPermissions>775</directoryPermissions>
      <configuration></configuration>
    </server>
  </servers>
  ...
</settings>

...
服务器001
我的注册
我的密码
${user.home}/.ssh/id\u dsa
一些密码短语
664
775
...
有关详细信息,请参见本页: