[Resolved] Non-resolvable parent POM: Could not transfer artifact when trying to refer to a parent pom from a child pom with ${parent.groupid}

This issue appears when we try to execute the mvn clean install command to build out the project and tries to copy the resources into a local repo directory. The issue looks like this: ….. [ERROR] The build could not read 1 project -> [Help 1] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:…

By.

•

min read

This issue appears when we try to execute the mvn clean install command to build out the project and tries to copy the resources into a local repo directory.

The issue looks like this:

.....
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[WARNING] 'parent.relativePath' points at org.felipe:tutorial_maven instead of ${parent.groupId}:tutorial_maven, please verify your project structure @ line 3, column 13
[FATAL] Non-resolvable parent POM: Could not transfer artifact ${parent.groupId}:tutorial_maven:pom:${parent.version} from/to central (http://repo.maven.apache.org/maven2): Illegal character in path at index 37: http://repo.maven.apache.org/maven2/${parent/groupId}/tutorial_maven/${parent.version}/tutorial_maven-${parent.version}.pom and 'parent.relativePath' points at wrong local POM @ line 3, column 13

at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363)
at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)...

But your system is not allowed or not able to access the resources due to some proxy configuration settings. maybe your not pointing to the correct VPN settings.

Solution: Update Maven Settings.xml

To allow access you need to update the settings.xml file with the following proxy details:

<proxies>
    <proxy>
      <id>myproxy</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>user</username>  <!-- Put your username here -->
      <password>pass</password>  <!-- Put your password here -->
      <host>123.45.6.78</host>   <!-- Put the IP address of your proxy server here -->
      <port>80</port>            <!-- Put your proxy server's port number here -->
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts> <!-- Do not use this setting unless you know what you're doing. -->
    </proxy>    
  </proxies>

Most probably the issue comes out to be the location of the VPN connection when a user is behind a proxy network.

Leave a Reply

Your email address will not be published. Required fields are marked *