gitflow-maven-plugin icon indicating copy to clipboard operation
gitflow-maven-plugin copied to clipboard

merge conflict on hotfix-finish to develop branch

Open Linkje opened this issue 1 year ago • 2 comments

Hi,

We have noticed that when you use the the hotfix-finish command we get a merge conflict on all pom files

[ERROR] Failed to execute goal com.amashchenko.maven.plugin:gitflow-maven-plugin:1.20.0:hotfix-finish (default-cli) on project reactor: hotfix-finish: [ERROR] Auto-merging parent/pom.xml [ERROR] CONFLICT (content): Merge conflict in parent/pom.xml

We saw that the outputTimestamp was different in develop vs the hotfix branch but even when we disable updating the outputTimestamp we see the same behaviour.

Skipping the backmerge to develop and creating a seperate PR to develop fixes our workflow for now. Any suggestions what would cause this?

Linkje avatar Feb 20 '24 14:02 Linkje

We are seeing the same behaviour. Here is our plugin config:

        <plugin>
            <groupId>com.amashchenko.maven.plugin</groupId>
            <artifactId>gitflow-maven-plugin</artifactId>
            <inherited>false</inherited>
            <configuration>
                <gitFlowConfig>
                    <productionBranch>main</productionBranch>
                    <developmentBranch>develop</developmentBranch>
                </gitFlowConfig>
                <versionProperty>revision</versionProperty>
                <skipUpdateVersion>true</skipUpdateVersion>
                <useSnapshotInHotfix>true</useSnapshotInHotfix>
                <useSnapshotInRelease>true</useSnapshotInRelease>
                <useSnapshotInSupport>true</useSnapshotInSupport>
            </configuration>
        </plugin>

sfcoy avatar Jul 22 '24 00:07 sfcoy

Yes is still happening to us as well. Another workaround has been to merge the outputtimestamp of develop into the hotfix branch which resolves the conflict.

Linkje avatar Jul 22 '24 07:07 Linkje