Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/Support Maven Profiles #179

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

erangel
Copy link
Contributor

@erangel erangel commented Oct 25, 2024

Add Maven Profile Support for Effective POM Resolution

Resolves #178

Changes

This PR adds support for Maven profiles by retrieving them with the Maven plugin. It also allows users to specify active profiles via CLI parameter.
This helps to detect correct dependencies that can be changed with profiles.

Added

  • Adds support to obtain active profiles with the Maven plugin and pass them to the Groovy core.
  • Adds support the CLI to receive a list of comma separated profiles to pass to the Groovy core.

Maven plugin now passes profiles as a String list to the Groovy core so
that the effective POM can be generated using the profiles.
This supports cases where the profiles override the depedencies or
properites affecting them.
@erangel erangel requested a review from a team as a code owner October 25, 2024 00:17
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.

Add Support for Maven Profiles in Effective POM Generation
1 participant