vertx-hot icon indicating copy to clipboard operation
vertx-hot copied to clipboard

Pass system properties to vertx-hot compile

Open ksclarke opened this issue 8 years ago • 0 comments

I use the maven-enforcer-plugin to enforce that the project will get a warning on build (and fail to build) whenever a SNAPSHOT dependency is included in the project unless -Denforcer.skip=true is passed in on the command line at the time of build.

I was using vertx-hot on a new project and added a SNAPSHOT dependency; it compiled fine for Maven but when vertx-hot was ready to compile the compile failed with [ERROR] Error with exit code 1 I tried running it with -X to get debugging but couldn't get any more information.

I finally figured out it wasn't the code in the new SNAPSHOT dependency but the fact that it was a SNAPSHOT that was causing the enforcer to fail the build. So, I tried passing in the command line arg that would let me turn off the enforcer plugin's check:

mvn vertx:hot -Denforcer.skip=true

But it seems that property is not getting passed through to the vertx:hot build (causing the enforcer plugin, I'm guessing, to fail the build). It would be nice if properties that were passed in with vertx:hot were passed through to the build that vertx-hot is doing. Thanks!

PS: The workaround in the meantime for me, of course, was just to not use the enforcer plugin to enforce the "no snapshots" rule.

ksclarke avatar Jun 17 '16 15:06 ksclarke