Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mvn archetype:create -DgroupId=com.example -DartifactId=sample
- …
- [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2 via [社内プロキシサーバ名]:[プロキシ用ポート] with username=[社内プロキシアカウント名], password=***
- …(省略)
- [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'}
- 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'}
- (↑上記のような407エラーが、大量に発生。)
- <settings>
- <proxies>
- <proxy>
- <id>proxy-http</id>
- <active>true</active>
- <protocol>http</protocol>
- <host>[社内プロキシサーバ名]</host>
- <port>[プロキシ用ポート]</port>
- <username>[社内プロキシアカウント名]</username>
- <password>[社内プロキシパスワード]</password>
- </proxy>
- <proxy>
- <id>proxy-https</id>
- <active>true</active>
- <protocol>https</protocol>
- <host>[社内プロキシサーバ名]</host>
- <port>[プロキシ用ポート]</port>
- <username>[社内プロキシアカウント名]</username>
- <password>[社内プロキシパスワード]</password>
- </proxy>
- </proxies>
- </settings>
- mvn archetype:create -DgroupId=com.example -DartifactId=sample
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement