-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Postponed
-
Component/s: Nuxeo Package Management
The default configuration for Nuxeo Packages uses the following convention:
in assembly.xml:
<filter token="DISTRIB_VERSION" value="${nuxeo.distribution.version}" />
in package.xml:
<platforms> <platform>cap-@DISTRIB_VERSION@</platform> <platform>cap-@DISTRIB_VERSION@-HF*</platform> </platforms>
This produces weird mapping wrt HF version on master SNAPSHOT modules, for instance:
https://connect.nuxeo.com/nuxeo/site/marketplace/package/nuxeo-drive
1.6.0-SNAPSHOT Target platforms : cap-8.1-SNAPSHOT, cap-8.1-SNAPSHOT-HF*
(cap-8.1-SNAPSHOT-HF* will not match any distribution version)
This produces also weird configurations on maintenance branches, again with drive here:
1.5.5-SNAPSHOT Target platforms : cap-7.10-HF02-SNAPSHOT, cap-7.10-HF02-SNAPSHOT-HF*
As a result, it's quite difficult to install a SNAPSHOT package on a SNAPSHOT (HF or not) distribution, even if this produces valid configurations at release time (not HF releases, other releases)
As an alternative, it would be good to make these configurations suitable for maintenance too, as it's been done on smart-search addon (for instance), see solution at https://github.com/nuxeo/marketplace-smart-search/commit/73480de5675d0c7cc27d014b8f2a0ae2a37c7104
in assembly.xml:
<filter token="DISTRIB_VERSION" value="${package.target.version}" /> <filter token="SNAPSHOT_SUFFIX" value="${package.snapshot.suffix}" />
in package.xml:
<platforms> <platform>cap-@DISTRIB_VERSION@@SNAPSHOT_SUFFIX@</platform> <platform>cap-@DISTRIB_VERSION@-HF*@SNAPSHOT_SUFFIX@</platform> </platforms>
in main package pom.xml:
<properties> <package.target.version>7.10</package.target.version> <package.snapshot.suffix>-SNAPSHOT</package.snapshot.suffix> </properties> [...] <profiles> <profile> <id>release</id> <properties> <package.snapshot.suffix></package.snapshot.suffix> </properties> </profile>
- duplicates
-
NXP-14085 Make the MP system usable with "hotfixed distribution"
- Open