[VOTE] flatten-maven-plugin 1.2.6

71 views
Skip to first unread message

lasse.k....@gmail.com

unread,
Feb 27, 2021, 2:57:28 AM2/27/21
to mojohaus-dev
Hi. I would like to release version 1.2.6 of flatten-maven-plugin


It would include two small improvements and one test fix:
(https://github.com/mojohaus/flatten-maven-plugin/issues/57) Prevent interpolation of an activation file
(https://github.com/mojohaus/flatten-maven-plugin/issues/191) Fix FlattenMojoTest on Windows
(https://github.com/mojohaus/flatten-maven-plugin/issues/146) fix: Add lifecycle mapping metadata for M2E (Eclipse)


Voting open for 72H

Anders Hammar

unread,
Feb 27, 2021, 4:10:01 AM2/27/21
to mojoha...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "mojohaus-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojohaus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mojohaus-dev/0e87fb61-0783-4707-b313-a7d883021785n%40googlegroups.com.

lasse.k....@gmail.com

unread,
Feb 27, 2021, 4:20:13 AM2/27/21
to mojohaus-dev
Yeah. No idea why it does't work as expected with "mvn release:prepare" and "mvn release:perform". So, if someone knows how to fix that problem, it would be great.

Hervé Boutemy

unread,
Feb 28, 2021, 4:12:43 AM2/28/21
to mojoha...@googlegroups.com
what do you mean by "it does't work as expected with "mvn release:prepare" and "mvn release:perform".", please?

lasse.k....@gmail.com

unread,
Feb 28, 2021, 6:05:42 AM2/28/21
to mojohaus-dev
You would expect to be able to complete step "Log into https://oss.sonatype.org/ and "Close" the staging repository." but it is not possible since the staging repository cannot be found even though Maven commands had no errors or warnings related to this.
I don't know much about why the procedure is like this instead of just "mvn deploy", so not sure where to start. Last time with version 1.2.1 it did seem to work just fine, and with other version by other contributors, so maybe it could for someone else.

Anders Hammar

unread,
Feb 28, 2021, 1:25:35 PM2/28/21
to mojoha...@googlegroups.com
Was it ever uploaded to oss.s.o? The build log should say.

/Anders

Hervé Boutemy

unread,
Feb 28, 2021, 1:36:42 PM2/28/21
to mojoha...@googlegroups.com
there is no tag, no "prepare release" commit but 2 "prepare for next iteration" commits

something is going weird, and it's not only at remote repository level

sharing logs would give some concrete fact to investigate

Regards,

Hervé

lasse.k....@gmail.com

unread,
Feb 28, 2021, 1:52:05 PM2/28/21
to mojohaus-dev
does contain the generated artifacts as maven-deploy-plugin:2.8.2 deploys them normally and it is the last plugin to execute in the build.

...
    [INFO] Uploaded to ossrh-snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/codehaus/mojo/flatten-maven-plugin/1.2.6-SNAPSHOT/flatten-maven-plugin-1.2.6-20210228.110337-2-javadoc.jar.asc (499 B at 1.6 kB/s)
    [INFO] Uploading to ossrh-snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/codehaus/mojo/flatten-maven-plugin/1.2.6-SNAPSHOT/maven-metadata.xml
    [INFO] Uploaded to ossrh-snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/codehaus/mojo/flatten-maven-plugin/1.2.6-SNAPSHOT/maven-metadata.xml (2.5 kB at 2.6 kB/s)
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  08:13 min
    [INFO] Finished at: 2021-02-28T13:03:57+02:00
    [INFO] ------------------------------------------------------------------------
[INFO] phase cleanup
[INFO] Cleaning up after release...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  08:47 min
[INFO] Finished at: 2021-02-28T13:03:57+02:00
[INFO] ------------------------------------------------------------------------

Should there be something else triggered too?

Hervé Boutemy

unread,
Feb 28, 2021, 6:01:42 PM2/28/21
to mojoha...@googlegroups.com
it is pushing version  1.2.6-SNAPSHOT
the Git commit to switch to 1.2.6 is really missing
the issue you have is not tied to repository manager at all: SNAPSHOT version is pushed to SNAPSHOT repository = perfectly expected
your issue is that the commit to prepare 1.2.6 release is not happening

the interesting part of the logs is the release:prepare output, that should provide the right commit: https://maven.apache.org/maven-release/maven-release-plugin/examples/prepare-release.html
This is more your Git setup that would require to be checked

Regards,

Hervé

lasse.k....@gmail.com

unread,
Mar 1, 2021, 4:18:08 PM3/1/21
to mojohaus-dev
Thanks for the pointers. It was fixed by adding "-Dresume=false", since the plugin was continueing from an earlied dirty state. Now the staging repository has been closed successfully.

Because of the new run, the release version number would be 1.2.7 instead of 1.2.6 but that should not matter. Also the release would include one extra commit (https://github.com/mojohaus/flatten-maven-plugin/commit/d2136165e75d07352cd99bd71e929a213b1df923, the other 3 commits added by Hervé should not make any difference for the release) where mojo-parent has been updated, since that was merged between the two release attempts.

I think it makes sense to extend the time to take part in the release decision to last 72 hours from this moment on.

Hervé Boutemy

unread,
Mar 2, 2021, 4:11:23 PM3/2/21
to mojoha...@googlegroups.com
great news: happy the root cause has been found

I tested and was able to reproduce the build: JDK 11 on Windows...

Regards,

Hervé

lasse.k....@gmail.com

unread,
Mar 6, 2021, 1:19:23 AM3/6/21
to mojohaus-dev
So as there are no votes against or for the release, this one counts as passed. I will prepare the release with version number 1.2.7.
Reply all
Reply to author
Forward
0 new messages