aleksandr-m / gitflow-maven-plugin

The Git-Flow Maven Plugin supports various Git workflows, including GitFlow and GitHub Flow. This plugin runs Git and Maven commands from the command line.
https://aleksandr-m.github.io/gitflow-maven-plugin/
Apache License 2.0
498 stars 183 forks source link

merge conflict on hotfix-finish to develop branch #401

Open Linkje opened 9 months ago

Linkje commented 9 months ago

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?

sfcoy commented 4 months ago

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>
Linkje commented 4 months ago

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.