shamrock:dev allows debug port 0 to be used
As the debug port can now be specified, the 0 value is allowed leading to wrong configuration as the allocated port is not retrieved
diff --git a/maven/src/main/java/org/jboss/shamrock/maven/DevMojo.java b/maven/src/main/java/org/jboss/shamrock/maven/DevMojo.java
index cede5f0c17b..c5acb361086 100644
--- a/maven/src/main/java/org/jboss/shamrock/maven/DevMojo.java
+++ b/maven/src/main/java/org/jboss/shamrock/maven/DevMojo.java
@@ -136,6 +136,9 @@ public void execute() throws MojoFailureException {
             } else if (!debug.toLowerCase().equals("false")) {
                 try {
                     int port = Integer.parseInt(debug);
+                    if (port <= 0) {
+                        throw new MojoFailureException("The specified debug port must be greater than 0");
+                    }
                     args.add("-Xdebug");
                     args.add("-Xrunjdwp:transport=dt_socket,address=" + port + ",server=y,suspend=y");
                 } catch (NumberFormatException e) {
['maven/src/main/java/org/jboss/shamrock/maven/DevMojo.java']