From issues-return-139664-archive-asf-public=cust-asf.ponee.io@maven.apache.org Thu Nov 1 18:31:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B7A7C180652 for ; Thu, 1 Nov 2018 18:31:03 +0100 (CET) Received: (qmail 19980 invoked by uid 500); 1 Nov 2018 17:31:02 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 19969 invoked by uid 99); 1 Nov 2018 17:31:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2018 17:31:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 503D4C0312 for ; Thu, 1 Nov 2018 17:31:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.8 X-Spam-Level: X-Spam-Status: No, score=-109.8 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_NUMSUBJECT=0.5, KAM_SHORT=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id oMcCaFknl_cP for ; Thu, 1 Nov 2018 17:31:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DD1D55F10F for ; Thu, 1 Nov 2018 17:31:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 79181E0D9F for ; Thu, 1 Nov 2018 17:31:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 27AE827762 for ; Thu, 1 Nov 2018 17:31:00 +0000 (UTC) Date: Thu, 1 Nov 2018 17:31:00 +0000 (UTC) From: "Robert Scholte (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MNG-6503) parent pom relative path regression after 3.3.9 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MNG-6503?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D166719= 11#comment-16671911 ]=20 Robert Scholte commented on MNG-6503: ------------------------------------- Duplicate of MNG-6261? > parent pom relative path regression after 3.3.9 > ----------------------------------------------- > > Key: MNG-6503 > URL: https://issues.apache.org/jira/browse/MNG-6503 > Project: Maven > Issue Type: Bug > Affects Versions: 3.5.4, 3.6.0 > Environment: Windows 10, Java 8, fails with maven 3.5.4 and 3.6.0= , works with 3.3.9 > Reporter: Marshall Schor > Priority: Major > > Used to work in 3.3.9.=C2=A0 Failure to resolve parent-pom via relative-p= ath in some cases. > =C2=A0 > A=C2=A0trivial example, with the folder structure and the poms. You > can see the failure by typing mvn help:effective-pom after cd'ing to the= top > project's folder. > Here's the folder structure: > {noformat} > mvntst <- top folder > =C2=A0=C2=A0 parent=C2=A0 <- subfolder having parent pom > =C2=A0=C2=A0 subproj <- subfolder having a sub project > {noformat} > The 3 folders have a pom.xml: > in mvntst folder (the top level folder) > {code:xml} > > =C2=A0=C2=A0=C2=A0 xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instanc= e" > =C2=A0=C2=A0=C2=A0 xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0= .0 > [http://maven.apache.org/xsd/maven-4.0.0.xsd]"> > =C2=A0=C2=A0=C2=A0 4.0.0 > =C2=A0=C2=A0=C2=A0 mvntst > =C2=A0=C2=A0=C2=A0 top > =C2=A0=C2=A0=C2=A0 pom > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 mvntst > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 parent > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 1.0.0 > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 parent/pom.xml=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 =C2=A0 subproj > =C2=A0=C2=A0=C2=A0 > > {code} > in parent subfolder: > {code:xml} > > =C2=A0=C2=A0=C2=A0 xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instanc= e" > =C2=A0=C2=A0=C2=A0 xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0= .0 > [http://maven.apache.org/xsd/maven-4.0.0.xsd]"> > =C2=A0=C2=A0=C2=A0 4.0.0 > =C2=A0=C2=A0=C2=A0 mvntst > =C2=A0=C2=A0=C2=A0 parent > =C2=A0=C2=A0=C2=A0 1.0.0 > =C2=A0=C2=A0=C2=A0 pom > > {code} > in subproj subfolder: > {code:xml} > > =C2=A0=C2=A0=C2=A0 xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instanc= e" > =C2=A0=C2=A0=C2=A0 xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0= .0 > [http://maven.apache.org/xsd/maven-4.0.0.xsd]"> > =C2=A0=C2=A0=C2=A0 4.0.0 > =C2=A0=C2=A0=C2=A0 mvntst > =C2=A0=C2=A0=C2=A0 subproj > =C2=A0=C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 mvntst > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 parent > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 1.0.0 > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ../parent/pom.xml=C2=A0 =C2=A0=C2=A0 > =C2=A0=C2=A0=C2=A0 > > {code} > In doing various tests: if the top pom is missing its relative-path, you = get an > expected > {noformat}Non-resolvable parent POM for mvntst:top:[unknown-version]: Fai= lure to find > mvntst:parent:pom:1.0.0 ...{noformat} > putting in the relative-path into the top fixes this, and results in find= ing the > parent for the top level. > If you don't have a section in the top level, the mvn > {{help:effective-pom}} works OK. > Putting in the section gives the error: > {noformat}Non-resolvable parent POM for mvntst:subproj:[unknown-version]= : Failure to find > mvntst:parent:pom:1.0.0{noformat} > Adding the to the artifact IDs for the top and subproj doesn't = help, > except to change the error message to include the version instead of > [unknown-version] -- This message was sent by Atlassian JIRA (v7.6.3#76005)