2017-11-21 10 views
0

自分のリポジトリからjarファイルを取得できません。この特定のjar(失敗、以下を参照)はMaven中央リポジトリからのものである必要がありますが、このjarファイルが存在しないレポからダウンロードするのが見ています。私はsettings.xmlの私の設定が間違っていると感じます。私の大きな疑問はミラー構成です。春・ブート・スターター・親:Mavenの設定に関する問題 - settings.xml

はアーティファクトorg.springframework.bootが見つかりませんでしたポンポン:私のドメインで1.4.0.RELEASE http://w3.maven.mydomain.com/nexus/content/repositories/domain

<?xml version="1.0" encoding="UTF-8"?> 
<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"> 

<pluginGroups></pluginGroups> 

<proxies></proxies> 

<servers> 
<server> 
     <id>myrepo</id> 
     <username>myname</username> 
     <password>****</password> 
     <configuration></configuration> 
    </server> 
</servers> 
<mirrors> 
<mirror> 
    <id>maven2</id> 
    <name>maven2</name> 
    <url>https://repo.maven.apache.org/maven2</url> 
    <mirrorOf>maven</mirrorOf> 
</mirror> 
    <mirror> 
    <id>myrepo</id> 
    <name>repo TPS</name> 
    <url>http://w3.maven.mydomain.com/nexus/content/repositories/domain</url> 
    <mirrorOf>central</mirrorOf> 
</mirror> 
</mirrors> 
<profiles></profiles> 
</settings> 

答えて

0

はあなたに下に追加してみてくださいpom.xml

<repositories> 
     <repository> 
      <id>spring-snapshots</id> 
      <name>Spring Snapshots</name> 
      <url>https://repo.spring.io/snapshot</url> 
      <snapshots> 
       <enabled>true</enabled> 
      </snapshots> 
     </repository> 
     <repository> 
      <id>spring-milestones</id> 
      <name>Spring Milestones</name> 
      <url>https://repo.spring.io/milestone</url> 
      <snapshots> 
       <enabled>false</enabled> 
      </snapshots> 
     </repository> 
    </repositories> 

    <pluginRepositories> 
     <pluginRepository> 
      <id>spring-snapshots</id> 
      <name>Spring Snapshots</name> 
      <url>https://repo.spring.io/snapshot</url> 
      <snapshots> 
       <enabled>true</enabled> 
      </snapshots> 
     </pluginRepository> 
     <pluginRepository> 
      <id>spring-milestones</id> 
      <name>Spring Milestones</name> 
      <url>https://repo.spring.io/milestone</url> 
      <snapshots> 
       <enabled>false</enabled> 
      </snapshots> 
     </pluginRepository> 
    </pluginRepositories> 
+0

ミラーを削除してリポジトリとして追加することで解決できます。とにかく、あなたの提案に感謝します。 – Popeye

関連する問題