From issues-return-128469-archive-asf-public=cust-asf.ponee.io@maven.apache.org Thu Feb 22 19:49: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 490AD18064E for ; Thu, 22 Feb 2018 19:49:04 +0100 (CET) Received: (qmail 88399 invoked by uid 500); 22 Feb 2018 18:49:03 -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 88388 invoked by uid 99); 22 Feb 2018 18:49:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2018 18:49:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C1136180166 for ; Thu, 22 Feb 2018 18:49:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, 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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id On4ZFxdHoaHj for ; Thu, 22 Feb 2018 18:49: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 101B35F1B3 for ; Thu, 22 Feb 2018 18:49:01 +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 5B616E00B8 for ; Thu, 22 Feb 2018 18:49: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 1338C27127 for ; Thu, 22 Feb 2018 18:49:00 +0000 (UTC) Date: Thu, 22 Feb 2018 18:49:00 +0000 (UTC) From: =?utf-8?Q?Guillaume_Bou=C3=A9_=28JIRA=29?= To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MNG-6359) Non-resolvable parent POM with gitbash (MINGW64_NT-10.0) 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-6359?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D163732= 42#comment-16373242 ]=20 Guillaume Bou=C3=A9 commented on MNG-6359: ------------------------------------- You can run the build in debug mode with the {{-X}} flag, which could help = track down the issue (by comparing logs for example). By the way, are you s= ure that you're running the same Maven version in cmd.exe and Git Bash? Che= ck with {{mvn --version}}. > Non-resolvable parent POM with gitbash (MINGW64_NT-10.0) > -------------------------------------------------------- > > Key: MNG-6359 > URL: https://issues.apache.org/jira/browse/MNG-6359 > Project: Maven > Issue Type: Bug > Components: POM > Affects Versions: 3.5.0, 3.5.2 > Environment: Run from gitbash > GNU bash, version 4.4.12(1)-release (x86_64-pc-msys) > Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T= 08:58:13+01:00) > Maven home: C:\Program Files\Apache\maven > Java version: 1.8.0_161, vendor: Oracle Corporation > Java home: C:\Program Files\Java\jdk1.8.0_161\jre > Default locale: en_IE, platform encoding: Cp1252 > OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows" > Reporter: Ian Dunbar > Priority: Minor > Attachments: mm.zip > > > The attached multimodule example fails to=C2=A0build when run from gitbas= h on windows 10. I've derived it from this example [https://github.com/jame= sward/maven-multi-module-example]=C2=A0but modified to match my scenario. > It works fine from CMD shell on the same machine with the same Apache Mav= en install. It's only with gitbash that the issue occurs. I see that the mv= n launcher has specific sections for mingw derived shells like gitbash, so = possibly something is wrong there. > =C2=A0 > The issue occurs when the project has no artifacts yet in .m2 repo. So pl= ease remove .m2/repository/com/jamesward prior to testing. > The transition from working to non-working in gitbash is with the additio= n of the parent section in the toplevel pom.xml, so there seems to be somet= hing wrong with the parent resolution in the toplevel when run from gitbash > Steps: > * remove .m2/repository/com/jamesward > * unzip the example > * run gitbash in that folder > * mvn clean install > * *fails to build* > *=20 > * change to cmd.exe > * mvn clean install > * *builds correctly* > Error log: > =C2=A0 > {{[INFO] Scanning for projects...}} > {{[ERROR] [ERROR] Some problems were encountered while processing the POM= s:}} > {{[FATAL] Non-resolvable parent POM for com.jamesward:core:1.0-SNAPSHOT: = Could not find artifact com.jamesward:parent:pom:1.0-SNAPSHOT and 'parent.r= elativePath' points at wrong local POM @ line 6, column 13}} > {{[FATAL] Non-resolvable parent POM for com.jamesward:app:[unknown-versio= n]: Could not find artifact com.jamesward:parent:pom:1.0-SNAPSHOT and 'pare= nt.relativePath' points at wrong local POM @ line 6, column 13}} > {{ @}} > {{[ERROR] The build could not read 2 projects -> [Help 1]}} > {{[ERROR]}} > {{[ERROR] The project com.jamesward:core:1.0-SNAPSHOT (C:\mm\core\pom.xml= ) has 1 error}} > {{[ERROR] Non-resolvable parent POM for com.jamesward:core:1.0-SNAPSHOT: = Could not find artifact com.jamesward:parent:pom:1.0-SNAPSHOT and 'parent.r= elativePath' points at wrong local POM @ line 6, column 13 -> [Help 2]}} > {{[ERROR]}} > {{[ERROR] The project com.jamesward:app:[unknown-version] (C:\mm\app\pom.= xml) has 1 error}} > {{[ERROR] Non-resolvable parent POM for com.jamesward:app:[unknown-versio= n]: Could not find artifact com.jamesward:parent:pom:1.0-SNAPSHOT and 'pare= nt.relativePath' points at wrong local POM @ line 6, column 13 -> [Help 2]}= } > {{[ERROR]}} > {{[ERROR] To see the full stack trace of the errors, re-run Maven with th= e -e switch.}} > {{[ERROR] Re-run Maven using the -X switch to enable full debug logging.}= } > {{[ERROR]}} > {{[ERROR] For more information about the errors and possible solutions, p= lease read the following articles:}} > {{[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/Proje= ctBuildingException}} > {{[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/Unres= olvableModelException}} -- This message was sent by Atlassian JIRA (v7.6.3#76005)