diff --git a/pom.xml b/pom.xml
index f65fb2f3..59271fc8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -63,8 +63,13 @@
- 1.7
- UTF-8
+ UTF-8
+ 1.7
+ ${project.custom.java.version}
+ ${project.custom.java.version}
+ ${project.custom.encoding}
+ ${project.custom.encoding}
+ ${project.custom.encoding}
3.6.0
@@ -100,11 +105,6 @@
org.apache.maven.plugins
maven-compiler-plugin
3.8.1
-
-
- ${java.version}
- ${project.build.sourceEncoding}
-
org.apache.maven.plugins
diff --git a/src/main/java/com/amashchenko/maven/plugin/gitflow/AbstractGitFlowMojo.java b/src/main/java/com/amashchenko/maven/plugin/gitflow/AbstractGitFlowMojo.java
index c668086a..50977dcc 100644
--- a/src/main/java/com/amashchenko/maven/plugin/gitflow/AbstractGitFlowMojo.java
+++ b/src/main/java/com/amashchenko/maven/plugin/gitflow/AbstractGitFlowMojo.java
@@ -15,6 +15,7 @@
*/
package com.amashchenko.maven.plugin.gitflow;
+import java.io.File;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
@@ -25,6 +26,7 @@
import java.util.TimeZone;
import java.util.regex.Pattern;
+import org.apache.commons.lang3.SystemUtils;
import org.apache.maven.artifact.ArtifactUtils;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.model.Dependency;
@@ -203,9 +205,48 @@ public abstract class AbstractGitFlowMojo extends AbstractMojo {
*
*/
private void initExecutables() {
+
+ boolean mainClassIsMavenWrapper = false;
+ for (final Map.Entry