2017-11-21 2 views
0

내 저장소에서 jar 파일을 거의 가져 오지 않았습니다. 이 특정 jar (실패, 아래 참조)는 Maven 중앙 Repo에서 가져와야하지만이 항아리가없는 레포에서 다운로드하는 것을보고 있습니다. settings.xml의 구성이 잘못되었다고 생각합니다. 내 주요 의심은 미러 구성입니다.Maven 구성 문제 - settings.xml

유물 org.springframework.boot을 찾을 수 없습니다 : 봄 - 부팅 스타터 - 부모 : POM : 1.4.0.RELEASE를

<?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

시도가 아래 추가 내 도메인 http://w3.maven.mydomain.com/nexus/content/repositories/domain)에 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

관련 문제