2016-08-09 27 views
0

Mavenテンプレートjersey-quickstart-webappでJava Restful WebServiceを作成したいと思います。アーキタイプを解決できません

私は、次のようなエラーに直面している:

Could not resolve archetype org.glassfish.jersey.archetypes:jersey-quickstart-webapp:2.23.1 from any of the configured repositories. 
Could not resolve artifact org.glassfish.jersey.archetypes:jersey-quickstart-webapp:pom:2.23.1 
Could not transfer artifact org.glassfish.jersey.archetypes:jersey-quickstart-webapp:pom:2.23.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out 
Could not transfer artifact org.glassfish.jersey.archetypes:jersey-quickstart-webapp:pom:2.23.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out 

私は、Eclipseルナ、最新バージョンを使用しています。

+0

私はあなたがあなたにプロキシを持っているべきだと推測しています。 –

+0

はい、まだプロキシを使用していません。企業環境でプロキシを使用していますので、私はそれを使用しています。 – SandyXXX

答えて

0

は、あなたはそれはまだ動作しない場合は、おそらくMavenの中央では、ネットワーク内からはアクセスできませんあなたのsettings.xml

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

https://maven.apache.org/guides/mini/guide-proxies.html

でプロキシを設定する必要があります。その後、管理者にブロック解除を依頼するか、または会社のリポジトリでミラーリングするよう依頼することができます。

関連する問題