Currently, the build of a marketplace is done using the version variable in the pom.xml:
https://github.com/nuxeo/marketplace-amazon-s3/blob/release-1.7.3/pom.xml#L6
This is also used in the package.xml:
https://github.com/nuxeo/marketplace-amazon-s3/blob/release-1.7.3/marketplace/src/main/resources/package.xml#L7
due to:
https://github.com/nuxeo/marketplace-amazon-s3/blob/release-1.7.3/marketplace/src/main/assemble/assembly.xml#L13
and:
https://github.com/nuxeo/nuxeo/blob/8.10/nuxeo-distribution/pom.xml#L22
This leads to issues like having a build against 8.10 and thus old libs versions or a build against the latest HF but a dependency on the marketplace package against the HF, not being able to install it on a previous or later version.
A marketplace package should not depend on a specific HF version but on a LTS one.
This way one can build against a specific HF version and still release for an LTS target. In this use case, it will allow to properly upgrade libs.