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
487 stars 180 forks source link

Skip compile-stage for certain goals #405

Open 4soft-liebig opened 2 weeks ago

4soft-liebig commented 2 weeks ago

Hi, we are using gitflow-maven-plugin for a while now (version: 1.21.0). I was wondering if there is a way to skip the compile step for a project for certain goals, such as support:start. The reason is that the goal does not add new code/functionality at the time of being started. Another goal -- with respect to our workflow -- would be release:start, since compilation and testing happens during release:finish.

Just an idea to improve CI/CD times a bit.

Thanks in advance Jörg

aleksandr-m commented 2 weeks ago

There is installProject property. Is that what you are looking for?

4soft-liebig commented 2 weeks ago

Sorry. I missed that option.

One more question. I configure installProject=true in my pom.xml and want to disable it for a specific call via command line -DinstallProject=false (overwriting the global config in pom.xml). This did not work. So I can either set the gitflow-maven-plugin options globally in pom.xml or via comand-line overwriting the existing default. Is that correct?