问题:
[ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.name.dept:comp:5.0.15-SNAPSHOT-SNAPSHOT: Could not transfer artifact com.name.dept:comp-parent:pom:1.0.12 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org and 'parent.relativePath' points at wrong local POM @ line 3, column 10
我的pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.comp.dept.proj</groupId>
<artifactId>proj-parent</artifactId>
<version>1.0.12</version>
// Not recongized
<relativePath>/proj-parent-1.0.12.pom</relativePath>
</parent>
<artifactId>mycomp</artifactId>
<version>5.0.15-SNAPSHOT</version>
<name>CompName</name>
below is the parent pom
-------------
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.comp.dept.proj</groupId>
<artifactId>proj-parent</artifactId>
<packaging>pom</packaging>
<version>1.0.12</version>
<name>Parent</name>
<url>http://maven.apache.org</url>
我的父文件名是dept-parent-1.0.12.pom。 Maven或IntelliJ的设置可以解决这个问题吗?
答案 0 :(得分:1)
你父母的groupId似乎错了(结尾于:comp - 也许是粘贴的东西?)。开始尝试
<groupId>com.name.dept</groupId>