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
495 stars 182 forks source link

Is it possible to use Eclipse-embedded Maven with this plugin? #234

Closed divStar closed 4 years ago

divStar commented 4 years ago

Awesome Maven-plugin - especially for automation purposes! Thank you!

Currently I use Eclipse to build the release. There is no dedicated external Maven installation on my system nor an entry in the PATH- or MAVEN_HOME-variables.

When I run the plugin, the build failes with an error stating that it could not find mvn anywhere (which is true). However: embedded Maven in Eclipse does exist and work - though it does not have a mvn script to start it with.

Is there a way to have it work with Eclipse-embedded Maven or specify the path to Maven/bin inside the <configuration> element or a parameter or something?

aleksandr-m commented 4 years ago

@divStar I don't think there is way to use eclipse embedded maven, but you can use maven wrapper if you want to.

Yes, you can set path to maven executable in configuration:

<mvnExecutable>path_to_maven_executable</mvnExecutable>