不可解析的父POM:无法转移org.springframework.boot:spring-boot-parent:pom:1.2.3.RELEASE

时间:2015-04-20 13:16:59

标签: maven maven-3 spring-batch

我在eclipse中遇到以下错误,同时在春季批处理...所有项目..

项目构建错误:不可解析的父POM:无法传输org.springframework.boot:spring-boot-parent:pom:1.2.3.RELEASE  从http://central.maven.org/maven2/缓存在本地存储库中,在更新间隔之前不会重新尝试解析  中心已经过去或更新被迫。原始错误:无法传输工件org.springframework.boot:spring-boot-  parent:pom:1.2.3.RELEASE from / to central(http://central.maven.org/maven2/):proxy.somewhere.com和' parent.relativePath'

指向错误的本地POM

我在这里尝试了所有的答案......到目前为止没有任何效果...... 它在家庭网络工作......不在办公室.. 我还用proxy修改了settings.xml文件,没有用。 以下是我的pom.xml

http://maven.apache.org/xsd/maven-4.0.0.xsd">     4.0.0

<groupId>org.springframework</groupId>
<artifactId>gs-batch-processing</artifactId>
<version>0.1.0</version>

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-parent</artifactId>
    <version>1.2.3.RELEASE</version>
</parent>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-batch</artifactId>
    </dependency>
    <dependency>
        <groupId>org.hsqldb</groupId>
        <artifactId>hsqldb</artifactId>
    </dependency>
</dependencies>


<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

<repositories>
<repository>
  <id>central</id>
  <url>http://central.maven.org/maven2/</url>
</repository>

 settings.xml:

  ------------------------------------------
   <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">
   <localRepository/>
   <interactiveMode/>
   <usePluginRegistry/>
   <offline/>
   <pluginGroups/>
    <servers/>
    <mirrors/>
   <proxies>
    <proxy>
    <id>myproxy</id>
    <active>true</active>
    <protocol>http</protocol>
    <host>proxy.somewhere.com</host>
    <port>7321</port>
    <username>proxyuser</username>
    <password>somepassword</password>
    <nonProxyHosts>*.google.com|ibiblio.org</nonProxyHosts>
   </proxy>
   </proxies>
    <profiles/>
    <activeProfiles/>

谢谢, Anandan R

1 个答案:

答案 0 :(得分:1)

由于http://central.maven.org/maven2/无法获得org.springframework.boot:spring-boot-parent:pom:1.2.3.RELEASE依赖性,因此出现上述错误。

我也和

一样
 <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>1.4.2.RELEASE</version>
  </parent>

在进行以下更改后已解决:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.0.8.RELEASE</version>
  </parent>

请检查一次,并为您提供反馈意见,以解决问题...

相关问题