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

Add a new mode: 'replace' #368

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

hgschmie
Copy link
Contributor

In this mode, a given value from the pom will be replaced with a value
from the "replacementValues" configuration.

This allows e.g. to override the packaging of an artifact with a fixed
value.

e.g. the following configuration repackages the POM for a jar file as
a pom artifact with a different artifact id:

<configuration>
    <pomElements>
        <packaging>replace</packaging>
        <artifactId>replace</artifactId>
    </pomElements>
    <replacementValues>
        <packaging>pom</packaging>
        <artifactId>@project.artifactId@-it-parent</artifactId>
    </replacementValues>
</configuration>

In this mode, a given value from the pom will be replaced with a value
from the "replacementValues" configuration.

This allows e.g. to override the packaging of an artifact with a fixed
value.
@slawekjaranowski
Copy link
Member

As usual IT should be added.

@slawekjaranowski
Copy link
Member

Also documentation will be appreciated.

Yes - I don't see any documentation for pomElements - so it can be first step for replace mode

@slachiewicz slachiewicz marked this pull request as draft December 22, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants