[BUILD-151] Add staging configuration Created: 15/Oct/14  Updated: 13/Apr/17  Resolved: 16/Oct/14

Status: Closed
Project: Build
Component/s: None
Affects Version/s: None
Fix Version/s: POMs 30

Type: New Feature Priority: Critical
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
dependency
depends upon BUILD-130 Upgrade to Maven 3.x Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
BUILD-167 Enable the staging profile by default Sub-task Closed Magnolia International  
Template:
Acceptance criteria:
Empty

 Description   

We're enabling release staging with SYS-444. Parent poms need some additions for this to work smoothly.

We'll probably add a profile to enable the feature "on demand" when releasing. In this first version, it'll be working for community and enterprise poms, but we might open it up for forge, projects and internal later.

We can't enable this profile by default until all other parent poms have a staging profile:

  • profiles can't be activated by the presence of a Maven property (only system properties)
  • if it was enabled by default, it'd be enabled for poms as well, which wouldn't work when releasing them, since some don't have a stagingProfileId (e.g only -community and -enterprise do).
    • of course we could remember to do -P!staging when releasing poms
  • It doesn't seem possible to "extend" a profile, i.e auto-activate it from a subpom.
  • we'd have to do -P!staging for anything that doesn't have a staging profile
    • but at the same time, such a release would fail relatively explicitly, where as a release for something that HAS a stagingProfileId would work (as long as it doesn't depend on something that's currently staged)

Generated at Sun Feb 11 23:39:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.