Reputation: 1
issue:
[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
my 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>
My parent file name is dept-parent-1.0.12.pom. What setting of Maven or IntelliJ would solve this problem?
Upvotes: 0
Views: 2162
Reputation: 173
Your parent's groupId seems wrong (ending with :comp - maybe pasted stuff?). Start trying with
<groupId>com.name.dept</groupId>
Upvotes: 1