I have run into this before, but only when:

1. Running a command-prompt on windows.
2. Running a bash on windows, using the likes mingw or babun

In my case, this was caused by a number of things:

1. Bad ssh-agent that could not communicate correctly with git.
2. Somehow, the release plugin thought I was not running commands from the 
project working directory.
3. Very old versions of git.
4. Weird shell issues.

I could never truly figure out if the issue was windows-specific with maven, or 
some other combination of things. 

--Misagh

----- Original Message -----
> From: "Francesco Chicchiriccò" <[email protected]>
> To: "dev" <[email protected]>
> Sent: Sunday, May 3, 2020 4:26:01 PM
> Subject: Re: [DISCUSS] Troubles with release:prepare

> On 03/05/20 11:20, Jean-Baptiste Onofre wrote:
>> Hi Francesco,
>>
>> Is scm section up to date ?
> 
> Yes, it is based on gitbox.apache.org and has not actually changed since 
> 2.1.5 /
> 2.0.14, e.g. last time that release:prepare worked as usual.
> 
> Regards.
> 
>>> Le 3 mai 2020 à 09:50, Francesco Chicchiriccò <[email protected]> a écrit 
>>> :
>>>
>>> Hi all,
>>> during the recent release process for 2.0.15 and 2.1.6 I have been 
>>> following the
>>> steps in [1] as usual.
>>>
>>> Unfortunately, when I arrived to launch the release:prepare step, I could 
>>> not
>>> move forward as the Maven Release plugin, after asking for version to 
>>> release
>>> and next development version to set, was not effectively advancing the POM
>>> files.
>>>
>>> The execution of
>>>
>>> mvn -P apache-release release:prepare -Darguments="-P all,docker
>>> -DbuildNumber=syncope-2.1.6"
>>>
>>> left the source files set to 2.1.6-SNAPSHOT and thus produced all artifacts 
>>> with
>>> such version, not 2.1.6. (Same happened with 2.0.15).
>>>
>>> After struggling for some time, I finally came to decision to manually 
>>> replicate
>>> the various steps normally performed by release:prepare [2]: fortunately, 
>>> this
>>> approach was effective, and I could also continue following [1], including 
>>> the
>>> release:perform step.
>>>
>>> I took some notes of the manual process in [3].
>>>
>>> Now I was wondering: what could possibly be the reason of the bad 
>>> functioning of
>>> release:prepare? I even tried with older Release plugin and Maven versions: 
>>> no
>>> luck.
>>>
>>> As last resort we can always adjust [1] with content from [3], but I'd 
>>> rather
>>> give release:prepare  a chance.
>>>
>>> WDYT?
>>> Regards.
>>>
>>> [1] http://syncope.apache.org/release-process
>>> [2]
>>> http://maven.apache.org/maven-release/maven-release-plugin/examples/prepare-release.html
>>> [3] https://gist.github.com/ilgrosso/b2abd6674290d6fe144704dffbeda418
> 
> --
> Francesco Chicchiriccò
> 
> Tirasa - Open Source Excellence
> http://www.tirasa.net/
> 
> Member at The Apache Software Foundation
> Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
> http://home.apache.org/~ilgrosso/

Reply via email to