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

How to skip semantic-version goal #53

Closed
arkadioz opened this issue Dec 15, 2023 · 1 comment
Closed

How to skip semantic-version goal #53

arkadioz opened this issue Dec 15, 2023 · 1 comment

Comments

@arkadioz
Copy link

arkadioz commented Dec 15, 2023

I am using the Maven plugin, need to generate semantic-version, but I also need to skip this goal once I already have the version generated so that it does not execute anymore on further builds, have tried with skip tag set to true but it only skips the changelog generation goal, so I tried to separate goals in two different executions but found out that the semantic-version execution does not allow tag, is there a way to also skip the semantic-version generation?

My plugin config atm:

        <plugin>
            <groupId>se.bjurr.gitchangelog</groupId>
            <artifactId>git-changelog-maven-plugin</artifactId>
            <version>1.100.7</version>
            <inherited>false</inherited>
            <executions>
                <execution>
                    <id>GenerateGitChangelog</id>
                    <phase>generate-resources</phase>
                    <goals>
                        <goal>git-changelog</goal>
                    </goals>
                    <configuration>
                        <skip>true</skip>
                        <templateContent>
                            # Changelog
                        </templateContent>
                        <file>CHANGELOG_GENERATED.md</file>
                    </configuration>
                </execution>
                <execution>
                    <id>GenerateSemanticVersion</id>
                    <phase>generate-resources</phase>
                    <goals>
                        <goal>semantic-version</goal>
                    </goals>
                    <configuration>
                        <updatePomWithCurrentSemanticVersionSuffixSnapshotIfNotTagged>false
                        </updatePomWithCurrentSemanticVersionSuffixSnapshotIfNotTagged>
                        <updatePomWithCurrentSemanticVersionSuffixSnapshot>false
                        </updatePomWithCurrentSemanticVersionSuffixSnapshot>
                    </configuration>
                </execution>
            </executions>
        </plugin>
@tomasbjerre
Copy link
Owner

I added skip parameter in 1.101.0. Open issue again if not working.

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

No branches or pull requests

2 participants