You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Neha Parab (Jira)" <ji...@apache.org> on 2021/08/09 13:10:00 UTC

[jira] [Commented] (MNG-7201) Child pom fails to resolve the parent pom from Nexus repo

    [ https://issues.apache.org/jira/browse/MNG-7201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17396031#comment-17396031 ] 

Neha Parab commented on MNG-7201:
---------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">
 <servers>
 <server>
 <id>release</id>
 </server>
 <server>
 <id>snapshot</id>
 </server>
 </servers>
 <mirrors>
 <mirror>
 <id>product-mirror</id>
 <name>Product Hosted Maven Mirror</name>
 <url>https://nexus.cloud.com/repository/product-public/</url>
 <mirrorOf>release,snapshot</mirrorOf>
 </mirror> 
 <mirror>
 <id>maven-mirror</id>
 <name>Maven Mirror</name>
 <url>https://nexus.cloud.com/repository/maven-public/</url>
 <mirrorOf>!release,!snapshot,*</mirrorOf>
 </mirror> 
 </mirrors>
</settings>

> Child pom fails to resolve the parent pom from Nexus repo
> ---------------------------------------------------------
>
>                 Key: MNG-7201
>                 URL: https://issues.apache.org/jira/browse/MNG-7201
>             Project: Maven
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 3.8.1
>         Environment: Jenkins Maven Pod using <maven:3.8.1-jdk-11> image
>            Reporter: Neha Parab
>            Priority: Major
>             Fix For: waiting-for-feedback, wontfix-candidate
>
>
> A maven project which have a parent SNAPSHOT cannot be resolved when :
> a) the Parent SNAPSHOT pom is not present in the local maven repository
> b) the Parent SNAPSHOT pom is deployed in a Nexus repository and <repository> entry in pom.xml of parent project.
> c) settings.xml has a mirror redirecting all (*) to Nexus
> d) there is no <repository> entry in the settings.xml file and in pom.xml of child project as Nexus is used for all resolutions.
> - If we added <repository> entry in pom.xml of child project then it retrieves from Nexus.
>  
> Please check below error:
> [FATAL] Non-resolvable parent POM for <child snapshot>: Could not find artifact <parent snapshot> and 'parent.relativePath' points at wrong local POM @ line 5, column 13



--
This message was sent by Atlassian Jira
(v8.3.4#803005)