Skip to content

add push-to-atr profile - #584

Merged
hboutemy merged 4 commits into
masterfrom
push-to-atr
Jun 25, 2026
Merged

hboutemy merged 4 commits into
masterfrom
push-to-atr

Conversation

@hboutemy

Copy link
Copy Markdown
Member

@hboutemy hboutemy added the enhancement New feature or request label Jun 21, 2026
Comment thread pom.xml Outdated
<plugin>
<groupId>org.apache.tooling</groupId>
<artifactId>atr-maven-plugin</artifactId>
<version>${version.tooling.atr}</version>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to push version in pluginManagement

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uh? why different from everything else?
(I'm the one who fights usually for that: why now and only for that plugin?)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If some of project wants to extends configuration will not need to declare version for plugin

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, you mean keep the property "as usual", but split plugin version declaration vs execution

adding a commit would have saved us time and energy: we need to find easier ways to do PR review that is more collaborative coding than real just review and discuss against original code proposal

Comment thread docs/src/site/apt/index.apt.vm Outdated
See ATR's {{{https://release-test.apache.org/tutorial}tutorial}} for a quick introduction: you'll have to create a
project, for example using
{{{https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#project}<<<project>>> entry in <<<.asf.yaml>>>}},
and start the release in ATR before composing.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe - before upload

we need manually start a new release in ATR before upload files, or we can use atr.createVersion

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't hesitate to add a commit: phrasing is better by reworking together, not ping-pong comments

Comment on lines +209 to +211
Since release 39, <<<push-to-atr>>> profile is provided to help upload built release content to
{{{https://tooling.apache.org/}Apache Tooling}}'s Trusted Releases platform, and compose the release
using {{{https://apache.github.io/tooling-atr-maven-plugin/}<<<atr-maven-plugin>>>}}.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by default we only help to upload files other steps need to done in ATR before release start

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as previous: don't get what action you expect from that comment

Comment thread docs/src/site/apt/index.apt.vm Outdated
{{{https://tooling.apache.org/}Apache Tooling}}'s Trusted Releases platform, and compose the release
using {{{https://apache.github.io/tooling-atr-maven-plugin/}<<<atr-maven-plugin>>>}}.

See ATR's {{{https://release-test.apache.org/tutorial}tutorial}} for a quick introduction: you'll have to create a

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main project for a PMC is always present. If a DOAP file is present then the subproject should also exist. Suggest that the user check their committee at https://release-test.apache.org/committees

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reworked instructions

@hboutemy

hboutemy commented Jun 24, 2026 •

Copy link
Copy Markdown
Member Author

notice: staging resulting doc is visible at https://maven.apache.org/pom-archives/asf-LATEST/#the-push-to-atr-profile

@hboutemy
hboutemy merged commit 3c0e27b into master Jun 25, 2026
7 checks passed
@hboutemy
hboutemy deleted the push-to-atr branch June 25, 2026 05:48
@github-actions github-actions Bot added this to the 39 milestone Jun 25, 2026
Comment thread pom.xml
</goals>
<configuration>
<files>
<file>${project.build.directory}/${project.artifactId}-${project.version}-source-release.zip</file>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize this is already merged and I'm late to review, but hard-coding the paths to upload in the plugin config seems like a problem if the hard-coded path is a zip file. zip files don't preserve POSIX execute bits on scripts and other contents, so many projects create a source-release tarball instead, which is configurable in the maven-release-plugin configuration in this parent POM. Any ATR plugin profile should also be similarly capable of being able to handle that.

Comment thread pom.xml
<configuration>
<files>
<file>${project.build.directory}/${project.artifactId}-${project.version}-source-release.zip</file>
<file>${project.build.directory}/${project.artifactId}-${project.version}-source-release.zip.sha512</file>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this supposed to be the sha512 generated by the net.nicoulaj.maven.plugins:checksum-maven-plugin ? That plugin generates checksums for all artifacts with the classifier source-release, not a specific source-release zip file. This plugin config makes a lot of assumptions about the file name of the source-release artifact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants