Advertisement
Guest User

Untitled

a guest
Mar 20th, 2016
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. mvn archetype:create -DgroupId=com.example -DartifactId=sample
  2.  
  3. [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2 via [社内プロキシサーバ名]:[プロキシ用ポート] with username=[社内プロキシアカウント名], password=***
  4. …(省略)
  5. [WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Error transferring file: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required" from https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml with proxyInfo ProxyInfo{host='[社内プロキシサーバ名]', userName='null', port=[プロキシ用ポート], type='https', nonProxyHosts='null'}
  6. org.eclipse.aether.transfer.MetadataTransferException: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): Error transferring file: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required" from https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml with proxyInfo ProxyInfo{host='[社内プロキシサーバ名]', userName='null', port=[プロキシ用ポート], type='https', nonProxyHosts='null'}
  7.  
  8. (↑上記のような407エラーが、大量に発生。)
  9.  
  10. <settings>
  11. <proxies>
  12. <proxy>
  13. <id>proxy-http</id>
  14. <active>true</active>
  15. <protocol>http</protocol>
  16. <host>[社内プロキシサーバ名]</host>
  17. <port>[プロキシ用ポート]</port>
  18. <username>[社内プロキシアカウント名]</username>
  19. <password>[社内プロキシパスワード]</password>
  20. </proxy>
  21. <proxy>
  22. <id>proxy-https</id>
  23. <active>true</active>
  24. <protocol>https</protocol>
  25. <host>[社内プロキシサーバ名]</host>
  26. <port>[プロキシ用ポート]</port>
  27. <username>[社内プロキシアカウント名]</username>
  28. <password>[社内プロキシパスワード]</password>
  29. </proxy>
  30. </proxies>
  31. </settings>
  32.  
  33. mvn archetype:create -DgroupId=com.example -DartifactId=sample
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement