Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9C937200D10 for ; Sat, 26 Aug 2017 06:12:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9AF7416C6E2; Sat, 26 Aug 2017 04:12:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E20CA16C6E1 for ; Sat, 26 Aug 2017 06:12:04 +0200 (CEST) Received: (qmail 9887 invoked by uid 500); 26 Aug 2017 04:12: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 9864 invoked by uid 99); 26 Aug 2017 04:12:03 -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; Sat, 26 Aug 2017 04:12:03 +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 E848AC1D67 for ; Sat, 26 Aug 2017 04:12:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id rybWM--YVU9e for ; Sat, 26 Aug 2017 04:12:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 551EA61A06 for ; Sat, 26 Aug 2017 04:12: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 6AE7DE08B4 for ; Sat, 26 Aug 2017 04:12: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 162692537B for ; Sat, 26 Aug 2017 04:12:00 +0000 (UTC) Date: Sat, 26 Aug 2017 04:12:00 +0000 (UTC) From: "Gruust (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (MRELEASE-885) When the base pom is a subdirectory, tagging fails in GIT MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 26 Aug 2017 04:12:05 -0000 [ https://issues.apache.org/jira/browse/MRELEASE-885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16142608#comment-16142608 ] Gruust edited comment on MRELEASE-885 at 8/26/17 4:11 AM: ---------------------------------------------------------- I can confirm a similar issue, When I try to do a release from a git repository clone's sub folder, ie. "/abc", the release plugin changes the developerConnection from "...:repo.git" to "...:repo.git/abc" which is obviously nonsensical. This only happened when using a parent pom. The parent pom is from the same git repository, but the project has no parent path set. was (Author: gruust): I can confirm a similar issue, When I try to do a release from a git repository clone's sub folder, ie. "/abc", the release plugin changes the developerConnection from "...:repo.git" to "...:repo.git/abc" which is obviously nonsensical. > When the base pom is a subdirectory, tagging fails in GIT > --------------------------------------------------------- > > Key: MRELEASE-885 > URL: https://issues.apache.org/jira/browse/MRELEASE-885 > Project: Maven Release Plugin > Issue Type: Bug > Components: Git, scm > Affects Versions: 2.3.2, 2.5 > Environment: linux (fedora 20) > Reporter: Bradley Baetz > Fix For: 2.5.1 > > > (NOTE, this is not the same as MRELEASE-875. I think) > Given a GIT checkout with a project structure of: > project/ > dir1/pom.xml > dir2/pom.xml > Given an config of: > scm:git:ssh://git@github.com:bbaetz/maven-release-bug.git > the maven-release plugin correctly commits the pom file, but fails to tag. The problem is that its stripping off one level of the URL, and doing: > [INFO] Executing: /bin/sh -c cd /home/bbaetz/src/subdir-project && git push ssh://git@github.com:bbaetz refs/tags/project-1.0.0 > which is wrong for git > To reproduce, fork https://github.com/bbaetz/maven-release-bug/, change the scm settings to your own, and run: > mvn -X -B -f build/pom.xml -DdevelopmentVersion=1.0.1-SNAPSHOT -DreleaseVersion=1.0.0 -Dresume=false release:prepare release:perform > I've tried various combinations of maven-release-plugin and maven-scm-plugin versions, with no luck -- This message was sent by Atlassian JIRA (v6.4.14#64029)