Skip to content

Add a new mode: 'replace'#368

Draft
hgschmie wants to merge 1 commit into
mojohaus:masterfrom
hgschmie:replace-mode
Draft

Add a new mode: 'replace'#368
hgschmie wants to merge 1 commit into
mojohaus:masterfrom
hgschmie:replace-mode

Conversation

@hgschmie

Copy link
Copy Markdown
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
Copy Markdown
Member

As usual IT should be added.

@slawekjaranowski

Copy link
Copy Markdown
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