diff --git a/pom.xml b/pom.xml index 1dd2725c..29078585 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,5 @@ - 4.0.0 @@ -221,47 +221,58 @@ - - - - org.apache.maven.plugins - maven-plugin-plugin - 3.4 - - - 1.8 - - true - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.3 - - - 1.8 - 1.8 - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.10.3 - - - attach-javadocs - - jar - - - -Xdoclint:none - - - - - - + + + org.apache.maven.plugins + maven-plugin-plugin + 3.4 + + jbake + + 1.8 + + true + + + + default-descriptor + process-classes + + + help-goal + + helpmojo + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.3 + + + 1.8 + 1.8 + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.10.3 + + + attach-javadocs + + jar + + + -Xdoclint:none + + + + + diff --git a/src/main/java/br/com/ingenieux/mojo/jbake/InlineMojo.java b/src/main/java/br/com/ingenieux/mojo/jbake/InlineMojo.java index b309dc1d..e11d85c7 100644 --- a/src/main/java/br/com/ingenieux/mojo/jbake/InlineMojo.java +++ b/src/main/java/br/com/ingenieux/mojo/jbake/InlineMojo.java @@ -22,6 +22,7 @@ import static spark.Spark.awaitInitialization; import static spark.Spark.externalStaticFileLocation; +import static spark.Spark.init; import static spark.Spark.ipAddress; import static spark.Spark.port; import static spark.Spark.stop; @@ -60,6 +61,8 @@ protected void initServer() throws MojoExecutionException { ipAddress(listenAddress); port(this.port); + init(); + awaitInitialization(); } }