#1035884 maven-debian-helper: mh_make cannot resolve parent POM when `<version>${revision}</version>` is used

#1035884#5
Date:
2023-05-10 15:15:05 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?
     I tried to create a deb package for a maven project I am working on
using
`mh_make`.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
     I invoked `mh_make` and started filling in the required information.
When
I got to the module resolution I was greeted by an error:

```
Analysing model/pom.xml...
May 10, 2023 3:33:12 PM org.debian.maven.packager.DependenciesSolver
resolveDependencies
SEVERE: Error while resolving ./model/pom.xml: Dependency not found
com.mycompany.proj:project_name:pom:${revision}
May 10, 2023 3:33:12 PM org.debian.maven.packager.DependenciesSolver
resolveDependencies
SEVERE:
org.debian.maven.repo.DependencyNotFoundException: Dependency not found
com.mycompany.proj:project_name:pom:${revision}
        at org.debian.maven.repo.Repository.registerPom(Repository.java:419)
        at
org.debian.maven.packager.DependenciesSolver.resolveDependencies(DependenciesSolver.java:320)
        at
org.debian.maven.packager.DependenciesSolver.resolveDependencies(DependenciesSolver.java:420)
        at
org.debian.maven.packager.DependenciesSolver.solveDependencies(DependenciesSolver.java:260)
        at
org.debian.maven.packager.DependenciesSolver.main(DependenciesSolver.java:922)
```

The way it is set up is that all subprojects use the `${revision}`
placeholder
to resolve the parent POM's version. I believe this was introduced in maven
3.5.
The project builds normally when `mvn package` is invoked.

   * What was the outcome of this action?
   `mh_make` crashed

   * What outcome did you expect instead?
   `mh_make` to resolve the dependency with the parent pom and continue with
the setup.

#1035884#12
Date:
2026-10-27 17:35:19 UTC
From:
To:
Hello,

Bug #1035884 in maven-repo-helper reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/java-team/maven-repo-helper/-/commit/53f22bfb2714fc1a947056539002dce7fff28450

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1035884

#1035884#19
Date:
2026-10-27 17:52:02 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
maven-repo-helper, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1035884@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Emmanuel Bourg <ebourg@apache.org> (supplier of updated maven-repo-helper package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 27 Oct 2026 18:32:06 +0100
Source: maven-repo-helper
Architecture: source
Version: 1.13
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Emmanuel Bourg <ebourg@apache.org>
Closes: 1035884
Changes:
 maven-repo-helper (1.13) unstable; urgency=medium
 .
   * Resolve the ${revision}, ${sha1} and ${changelist} properties used in the
     versions (Closes: #1035884)
   * Sort the variables written in the substvars files
   * Standards-Version updated to 4.7.4
   * Removed the Priority field
Checksums-Sha1:
 d651697e467cb91ae7fb0b3e4338b82942d58145 1906 maven-repo-helper_1.13.dsc
 4260a4bd1ad65519be845ad2419c4a4266610aca 194656 maven-repo-helper_1.13.tar.xz
 ebaf3edcc00fd6028b7c82307396104efe871789 12074 maven-repo-helper_1.13_source.buildinfo
Checksums-Sha256:
 984c41cd6be17adde8dace5366733455f341c7cbb95149c09ea788271f5ec976 1906 maven-repo-helper_1.13.dsc
 24e8c84dcbcbaddb3170d6c4d00619583e66af4764846dff342bee8918230f10 194656 maven-repo-helper_1.13.tar.xz
 9a89a8be53206a6b034721c77b1f5c8eebfa71ecbc972e1fabc03599c3418472 12074 maven-repo-helper_1.13_source.buildinfo
Files:
 e93bd07a03878f2fd64f938ef5568ab7 1906 java optional maven-repo-helper_1.13.dsc
 bc440210cdecaca3e072e63509890ec9 194656 java optional maven-repo-helper_1.13.tar.xz
 7d7fae1ee7731ca2fd2f415169e6defb 12074 java optional maven-repo-helper_1.13_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAmrg4PMSHGVib3VyZ0Bh
cGFjaGUub3JnAAoJEPUTxBnkudCsybQP/3xQ4wRaSquo5sKDdGfId7pySpfh0qBJ
7TknaSzGcbSeyY4heInogrWEmP0CqLRa2XOG8ATRYxv3FOPmQhRoF/ZCwPLs1Ww/
MvoVKw7dgbFD7yr+QtTVW9qQBV5VEeCDruNbQn1GiYj1L7y8gqkTxPE7beaJh3Pw
f4bQZeyYC9ygP9dqfCD/KRzdiaUdGpHYtnZh9r95CP7HThJLZigVtdZPmMOh3Vpj
NcUgpoi1a2L1R3rv+wASqvCR/yss9zjlzXPBnI9MrzquA76T6td5uTg8YNGZvZrt
v3MoJl7OEQ1gyc1nCG2RoInJWFyrU7QrZJ7SkLRiNpgE6LGQ3/3en5OorAHWxw/u
QeXvGwDTHVL+FUGIJ1Lb4g+CrYz0duZgoM4yrJ0v7OCWA5dJylV9ZgywmtrTOikU
FbsNstovWgrHiKzcLE4WrjJ1hxY4L+JeIS+L3AtlAZiMz+I65n2mIwVFv8xi3kMj
jo3SsCb/udGFvVpMQB5UeKDM54t7vA6ZtChtrx5KL7/R8NldgAjuqRnkfyIhJ937
ELa9rLTwFL6BXJUWoyXBmlsqUBrZcrJriyd+VcBhQEeogPYRd3XhqYRRX33nMLGL
wgcIvzUTHBaixUHddjOGhzv7/3ybyCDmnCNZUaFkz6uKa2bT5mSSaWCadAyNZKXA
iMc0pv6dieRO
=q/o1
-----END PGP SIGNATURE-----