Skip to content

build(maven): flatten published library POM - #31

Merged
maxim618 merged 5 commits into
mainfrom
build/flatten-published-pom
Oct 3, 2026
Merged

maxim618 merged 5 commits into
mainfrom
build/flatten-published-pom

Conversation

@maxim618

@maxim618 maxim618 commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • configure Flatten Maven Plugin 1.8.0 in the parent build
  • keep publication metadata directly in the micro-env module
  • generate an OSS-style consumer POM for the published micro-env artifact
  • skip flattening for the non-published demo module
  • keep the parent POM focused on multi-module build configuration

Verification

  • mvn clean verify
  • verified that only micro-env/.flattened-pom.xml is generated
  • verified that the flattened POM contains the library's publication metadata and Spring Boot dependency
  • verified that the flattened POM does not reference the internal micro-env-parent artifact

The goal is to make the published micro-env artifact self-contained from a Maven metadata perspective, without publishing the internal parent POM.

@maxim618
maxim618 merged commit f56bdc7 into main Oct 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant