diff --git a/plugin/src/main/java/org/vertx/maven/plugin/mojo/BaseVertxMojo.java b/plugin/src/main/java/org/vertx/maven/plugin/mojo/BaseVertxMojo.java index c568794..0629c9c 100644 --- a/plugin/src/main/java/org/vertx/maven/plugin/mojo/BaseVertxMojo.java +++ b/plugin/src/main/java/org/vertx/maven/plugin/mojo/BaseVertxMojo.java @@ -29,11 +29,14 @@ import java.net.URLClassLoader; import java.util.ArrayList; import java.util.List; +import java.util.regex.Pattern; import static java.nio.file.Files.readAllBytes; public abstract class BaseVertxMojo extends AbstractMojo { + private Pattern CLASSPATH_DELIMITER = Pattern.compile(":"); + @Component protected MavenProject project; @@ -60,6 +63,22 @@ public abstract class BaseVertxMojo extends AbstractMojo { @Parameter protected File configFile = null; + /** + *
+ * The extra classpath for this verticle. + *
+ *+ * If the path is relative (does not start with / or a drive letter like + * C:), the path is relative to the directory containing the POM. + *
+ *+ * An example value would be src/main/resources/:src/test/resources/ + *
+ */ + + @Parameter + protected String classpath = null; + /** * The number of instances of the verticle to instantiate in the vert.x * server. The default is 1. @@ -73,6 +92,8 @@ public abstract class BaseVertxMojo extends AbstractMojo { @Parameter(defaultValue = "target/mods") protected File modsDir; + + protected JsonObject getConf() { JsonObject config = null; final String confContent = readConfigFile(configFile); @@ -106,6 +127,7 @@ protected ClassLoader createClassLoader() throws Exception { List