vert-x3 / vertx-maven-service-factory

Verticle factory for resolving verticles from Maven at run-time
Apache License 2.0
12 stars 12 forks source link

Problem redeploying same verticle #27

Open cagv24 opened 5 years ago

cagv24 commented 5 years ago

Hi, I'm getting the next error.

When I deploy a verticle for the first time everything is okay, however, if I make some changes on the verticle's code and execute again mvn install and then I want to redeploy this verticle I got this error:

java.lang.IllegalArgumentException: Cannot find service descriptor file sample-process-verticle.json on classpath

This is the code I'm using to deploy it:

deployer = new VertxDeployer("maven:uis.vertx.sample.process:sample-process:1.1.0-SNAPSHOT::sample-process-verticle"); final BlockingQueue<AsyncResult<String>> deployLock = new ArrayBlockingQueue<>(1); vertx.deployVerticle("maven:uis.vertx.sample.process:sample-process:1.1.0-SNAPSHOT::sample-process-verticle", deployLock::offer)

The blockingqueue is because I need to wait for the deployment.

vietj commented 5 years ago

can you investigate the issue ?

cagv24 commented 5 years ago

I changed the version from 1.1.0-SNAPSHOT to 1.0 but I'm getting a similar error:

java.lang.IllegalArgumentException: sample-process-verticle.json is empty

However, If I modify the JSON file adding isolationGroup like this:

{ "main": "uis.vertx.sample.process.SampleProcessVerticle", "options" : { "isolationGroup": "uis-edge-10" } }

And I change the (10) for another number each time that I deploy the verticle everything works well.

Please let me know if this is not a good practice. Thanks in advance