I think the name for the distribution archive is collected in:

dist-archive/src/assembly/[bin|src].xml

These use ${project.artifactId}-${project.version} by specifying the
<baseDirectory> tag.

So renaming the artifactId for the dist-archive in the pom.xml from
commons-math to commons-math4 fixes this. Verified using:

> mvn assembly:single

from within the dist-archive module.

Note that if the <baseDirectory> tag is removed from the assembly
descriptors then the final output archive name is
${project.build.finalName} [1]. This results in the same output using
${project.artifactId}-${project.version} to create:

commons-math4-4.0-SNAPSHOT-src.tar.gz
commons-math4-4.0-SNAPSHOT-src.zip
commons-math4-4.0-SNAPSHOT-bin.tar.gz
commons-math4-4.0-SNAPSHOT-bin.zip

Alex

[1] https://maven.apache.org/plugins/maven-assembly-plugin/assembly.html

On Sun, 18 Dec 2022 at 19:55, Gilles Sadowski <gillese...@gmail.com> wrote:
>
> Hi.
>
> > [...]
> >
> > Distribution files and release notes:
> >   https://dist.apache.org/repos/dist/dev/commons/math/
> >
> >   To verify the integrity of the distribution files, you can
> >
> >   1. download them with the command
> >      $ wget -nH --cut-dirs=8 \
> >         
> > https://dist.apache.org/repos/dist/dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.tar.gz
> >  \
> >         
> > https://dist.apache.org/repos/dist/dev/commons/math/4.0-beta1-RC1/binaries/commons-math-4.0-beta1-bin.zip
> >  \
> >         
> > https://dist.apache.org/repos/dist/dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.tar.gz
> >  \
> >         
> > https://dist.apache.org/repos/dist/dev/commons/math/4.0-beta1-RC1/source/commons-math-4.0-beta1-src.zip
> >
>
> There is a glitch here: Prefix in those file names should have been
>    commons-math4
> but it is
>    commons-math
>
> The names can be fixed while copying to the "release" directory of
> the "dist" server, without side-effects (I think).
> But I don't know what (the "commons-release-plugin" ?) picked
> which variable, and where, rather than the element (in the main
> "pom.xml"):
>   
> <commons.release.name>commons-math4-${project.version}</commons.release.name>
> that seems intended (?) to match the release file names.
> [Of course, this issue wouldn't show up in the 1.x release of a
> component.]
>
> Gilles
>
> > [...]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to