You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Francesco Chicchiricc�� <il...@apache.org> on 2020/05/04 13:36:02 UTC

Recent troubles with release:prepare

Hi all,
at Syncope we've been ordinarily using the Release Plugin as part of our release process [1] since the beginning, and it's been working flawlessly for > 90 releases.

Unfortunately we had troubles with last two releases (Syncope 2.1.6 / 2.0.15) that we cut last week.

For some reason, release:prepare was not advancing POM files as expected, e.g. after running

mvn -P apache-release release:prepare -Darguments="-P skipTests,all,docker -DbuildNumber=syncope-2.1.6"

and providing 2.1.6 as release version and 2.1.7-SNAPSHOT as next development version, the build started without changing the POM files, e.g.

diff pom.xml pom.xml.releaseBackup

was empty.

In fact, the artifacts were produced for 2.1.6-SNAPSHOT, not for 2.1.6.

I tried with different Release Plugin version, different Maven versions but nothing.

I have just found, however, that if I am *not* passing the skipTests profile in -Darguments then it works as expected.

The skipTests profile is defined as in [2]: any idea about the reason of the behavior described above?

TIA
Regards.

[1] http://syncope.apache.org/release-process
[2] https://github.com/apache/syncope/blob/2_1_X/pom.xml#L2710-L2755

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Recent troubles with release:prepare

Posted by Enrico Olivelli <eo...@gmail.com>.
Il Mer 6 Mag 2020, 08:29 Francesco Chicchiriccò <il...@apache.org> ha
scritto:

> Hi Enrico,
> see my replies below.
>
> Regards.
>
> On 2020/05/04 21:18:26, Enrico Olivelli <eo...@gmail.com> wrote:
> > Francesco,
> > which version of Maven are you using ? (you told you have tried different
> > Maven versions)
>
> I am normally using 3.6.3; tried 3.5.4 and 3.3.9.
>
> > what is so special in skipTests profile ?
>
> It is not evident to me, here is why I linked its definition below, maybe
> you can spot something I am not able to see.
>
> > did you update to latest version of Apache Parent pom ?
>
> Yes, as you can see from the linked pom, e.g.
>
> https://github.com/apache/syncope/blob/syncope-2.1.6/pom.xml#L32-L37
>
> > which version of the release plugin are you using ?
>
> Ah, this observation made me look more thoroughly: I found a mismatch
> between ASF parent pom version 3.0.0-M1 and local 2.5.3; after fixing this
> it seem everything is back working again.
>
> Thanks!
>

You are welcome

Cheers
Enrico



> > Il giorno lun 4 mag 2020 alle ore 15:36 Francesco Chicchiriccò <
> > ilgrosso@apache.org> ha scritto:
> >
> > > Hi all,
> > > at Syncope we've been ordinarily using the Release Plugin as part of
> our
> > > release process [1] since the beginning, and it's been working
> flawlessly
> > > for > 90 releases.
> > >
> > > Unfortunately we had troubles with last two releases (Syncope 2.1.6 /
> > > 2.0.15) that we cut last week.
> > >
> > > For some reason, release:prepare was not advancing POM files as
> expected,
> > > e.g. after running
> > >
> > > mvn -P apache-release release:prepare -Darguments="-P
> skipTests,all,docker
> > > -DbuildNumber=syncope-2.1.6"
> > >
> > > and providing 2.1.6 as release version and 2.1.7-SNAPSHOT as next
> > > development version, the build started without changing the POM files,
> e.g.
> > >
> > > diff pom.xml pom.xml.releaseBackup
> > >
> > > was empty.
> > >
> > > In fact, the artifacts were produced for 2.1.6-SNAPSHOT, not for 2.1.6.
> > >
> > > I tried with different Release Plugin version, different Maven versions
> > > but nothing.
> > >
> > > I have just found, however, that if I am *not* passing the skipTests
> > > profile in -Darguments then it works as expected.
> > >
> > > The skipTests profile is defined as in [2]: any idea about the reason
> of
> > > the behavior described above?
> > >
> > > TIA
> > > Regards.
> > >
> > > [1] http://syncope.apache.org/release-process
> > > [2] https://github.com/apache/syncope/blob/2_1_X/pom.xml#L2710-L2755
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Recent troubles with release:prepare

Posted by Francesco Chicchiricc�� <il...@apache.org>.
Hi Enrico,
see my replies below.

Regards.

On 2020/05/04 21:18:26, Enrico Olivelli <eo...@gmail.com> wrote: 
> Francesco,
> which version of Maven are you using ? (you told you have tried different
> Maven versions)

I am normally using 3.6.3; tried 3.5.4 and 3.3.9.

> what is so special in skipTests profile ?

It is not evident to me, here is why I linked its definition below, maybe you can spot something I am not able to see.

> did you update to latest version of Apache Parent pom ?

Yes, as you can see from the linked pom, e.g.

https://github.com/apache/syncope/blob/syncope-2.1.6/pom.xml#L32-L37

> which version of the release plugin are you using ?

Ah, this observation made me look more thoroughly: I found a mismatch between ASF parent pom version 3.0.0-M1 and local 2.5.3; after fixing this it seem everything is back working again.

Thanks! 

> Il giorno lun 4 mag 2020 alle ore 15:36 Francesco Chicchiriccò <
> ilgrosso@apache.org> ha scritto:
> 
> > Hi all,
> > at Syncope we've been ordinarily using the Release Plugin as part of our
> > release process [1] since the beginning, and it's been working flawlessly
> > for > 90 releases.
> >
> > Unfortunately we had troubles with last two releases (Syncope 2.1.6 /
> > 2.0.15) that we cut last week.
> >
> > For some reason, release:prepare was not advancing POM files as expected,
> > e.g. after running
> >
> > mvn -P apache-release release:prepare -Darguments="-P skipTests,all,docker
> > -DbuildNumber=syncope-2.1.6"
> >
> > and providing 2.1.6 as release version and 2.1.7-SNAPSHOT as next
> > development version, the build started without changing the POM files, e.g.
> >
> > diff pom.xml pom.xml.releaseBackup
> >
> > was empty.
> >
> > In fact, the artifacts were produced for 2.1.6-SNAPSHOT, not for 2.1.6.
> >
> > I tried with different Release Plugin version, different Maven versions
> > but nothing.
> >
> > I have just found, however, that if I am *not* passing the skipTests
> > profile in -Darguments then it works as expected.
> >
> > The skipTests profile is defined as in [2]: any idea about the reason of
> > the behavior described above?
> >
> > TIA
> > Regards.
> >
> > [1] http://syncope.apache.org/release-process
> > [2] https://github.com/apache/syncope/blob/2_1_X/pom.xml#L2710-L2755
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Recent troubles with release:prepare

Posted by Enrico Olivelli <eo...@gmail.com>.
Francesco,
which version of Maven are you using ? (you told you have tried different
Maven versions)

what is so special in skipTests profile ?
did you update to latest version of Apache Parent pom ?
which version of the release plugin are you using ?

Enrico


Il giorno lun 4 mag 2020 alle ore 15:36 Francesco Chicchiriccò <
ilgrosso@apache.org> ha scritto:

> Hi all,
> at Syncope we've been ordinarily using the Release Plugin as part of our
> release process [1] since the beginning, and it's been working flawlessly
> for > 90 releases.
>
> Unfortunately we had troubles with last two releases (Syncope 2.1.6 /
> 2.0.15) that we cut last week.
>
> For some reason, release:prepare was not advancing POM files as expected,
> e.g. after running
>
> mvn -P apache-release release:prepare -Darguments="-P skipTests,all,docker
> -DbuildNumber=syncope-2.1.6"
>
> and providing 2.1.6 as release version and 2.1.7-SNAPSHOT as next
> development version, the build started without changing the POM files, e.g.
>
> diff pom.xml pom.xml.releaseBackup
>
> was empty.
>
> In fact, the artifacts were produced for 2.1.6-SNAPSHOT, not for 2.1.6.
>
> I tried with different Release Plugin version, different Maven versions
> but nothing.
>
> I have just found, however, that if I am *not* passing the skipTests
> profile in -Darguments then it works as expected.
>
> The skipTests profile is defined as in [2]: any idea about the reason of
> the behavior described above?
>
> TIA
> Regards.
>
> [1] http://syncope.apache.org/release-process
> [2] https://github.com/apache/syncope/blob/2_1_X/pom.xml#L2710-L2755
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>