Assignee: (was: Stefan Seifert)
i did some quick tests with it on multi-module AEM projects and encountered some issues which may be difficult to solve.
i used this plugin configuration for testing:
{code:xml}
<plugin>
<groupId>com.amashchenko.maven.plugin</groupId>
<artifactId>gitflow-maven-plugin</artifactId>
<version>1.14.0</version>
<configuration>
<installProject>true</installProject>
<verbose>true</verbose>
<pushRemote>false</pushRemote>
<commitMessagePrefix>[gitflow]Â </commitMessagePrefix>
</configuration>
</plugin>
{code}
1. multi module project set up with
https://wcm.io/tooling/maven/archetypes/aem/
using {{gitflow:release}} or {{gitflow:release-start}} and {{gitflow:release-finish}} worked fine and completed, however *it failed to update the versions of the submodules* - it updated only the root pom (aggregator pom) which is completely useless
2. multi module project
https://github.com/adobe/aem-project-archetype
using {{gitflow:release}} or {{gitflow:release-finish}} failed during the project build with a strange error which does not occur when doing a simple "mvn clean install" on the command line
{noformat}
[ERROR] Failed to execute goal org.apache.jackrabbit:filevault-package-maven-plugin:1.0.3:generate-metadata (default-generate-metadata) on project mysite.ui.content: java.io.FileNotFoundException: C:\temp\myproject3\ui.apps\target\classes (Zugriff verweigert)
{noformat}
Zugriff verweigert = Access denied
3. more cosmetic: the plugin automatically detects the next development version by just updating the last digit. it's not possible to pass this interactively. this is fine for most project setups, but there are some cases where this pattern does not work and the new version has to be set manually. it would be nice to enter the next development version interactively with the default incrementation as default, as it is implemented in maven-release-plugin and jgitflow-maven-plugin
---
esp. #1 is a blocker. there seems to be some (old) PRs around this, i did nod dig deeper into it.
https://github.com/aleksandr-m/gitflow-maven-plugin/pull/132
https://github.com/aleksandr-m/gitflow-maven-plugin/issues/130
#2 has to be debugged in detail whether it's a problem in the gitflow plugin or the jackrabbit filevault plugin.
#3 is probably acceptable as it only affects few projects
---
in general it should also considered if the "old" gitflow approach is really required, of if just {{maven-release-plugin}} can be used with a simpler branching model.
> Consider replacing jgitflow-maven-plugin with gitflow-maven-plugin
> ------------------------------------------------------------------
>
> Key: WTOOL-63
> URL:
https://wcm-io.atlassian.net/browse/WTOOL-63
> Project:
wcm.io Tooling
> Issue Type: New Feature
> Components: Maven
> Reporter: Alexander Muthmann
>