2017-11-01 114 views
0

私はSTSの使用を開始しましたが、私が見てきた以前の回答には私の質問に対する答えがありません。会社のプロキシを使用した新しいSpring Starterプロジェクトの解決不可能な親POM

Project build error: Non-resolvable parent POM for learn.fullstack.ngspring:demo:0.0.1-SNAPSHOT: 
Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.5.8.RELEASE from 
https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be 
reattempted until the update interval of central has elapsed or updates are forced. Original error: Could 
not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.8.RELEASE from/to 
central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path 
building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid 
certification path to requested target and 'parent.relativePath' points at no local POM 

1)私は、環境設定の下でプロキシ設定を構成しは - >ネットワーク接続、私は春スタータープロジェクト

2)私は、任意のMVNが

3)Iをコマンドを実行することができませんを作成することを可能にします

<?xml version="1.0" encoding="UTF-8"?> 
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd"> 
    <proxies> 
     <proxy> 
      <active>true</active> 
      <protocol>http</protocol> 
      <host>XXXXXX</host> 
      <port>XX</port> 
      <username>XXXXXXX</username> 
      <password>XXXXXXX</password> 
     </proxy> 
     </proxies> 
    </settings> 

これらの2つの手順を実行した後で作業することができません。私の質問は次のとおりです。

1)pom.xmlファイルを変更する必要はありますか?

2)「ローカルPOM」または直接STSがローカルPOMを指し示す場所はどこですか?

+0

まず、pom.xmlを編集する必要はありません。会社内でnexusを使用していて、spring reposやmaven settings.xmlのnexusサーバーURL定義にアクセスする際に問題が発生していると思います。 – Habil

答えて

0

あなたのプロトコルがhttpのためのプロキシを設定し、あなたもそこにhttpsプロキシが必要になります、Eclipseでhttps://repo.maven.apache.org/maven2

0

選択ウィンドウオプションや好みに行き、その後、Mavenとそこアップデート.settingファイルに移動され、 urシステムのプロキシユーザー名またはパスワードを変更します。 はその後、プロジェクトに移動し、右クリックして、Mavenを選択し、プロジェクト

0

を更新Cに位置しています.m2フォルダからすべてのファイルとディレクトリ(settings.xmlに、リポジトリなど)を除去して試してみてください:\ Users \ユーザーusername \ .m2にコピーし、mvn clean installを使用してプロジェクトを再構築します。

関連する問題