fabric8io / vertx-maven-plugin

Vert.x Maven Plugin - moved to https://github.com/reactiverse/vertx-maven-plugin
https://github.com/reactiverse/vertx-maven-plugin
Apache License 2.0
25 stars 5 forks source link

Address already in use when redeploy tag is true #143

Open mountdreams opened 6 years ago

mountdreams commented 6 years ago

hello, i'm trying this plugin by making a simple verticle. first i tried with mvn clean compile vertx:run and verticle runs fine, then i turn it off with CTRL + C. when i try to run with mvn clean compile vertx:run again,   appears SEVERE: java.net.BindException: Address already in use: bind

when i try with <redeploy>false</ redeploy> this is not the case anymore, but i want to use redeploy feature.

is this the expected behavior?

mountdreams commented 6 years ago

the verticle

`package com.example.vertx;

import io.vertx.core.AbstractVerticle;

public class MainVerticle extends AbstractVerticle {

@Override
public void start() throws Exception {
    vertx.createHttpServer().requestHandler(req -> {
        req.response()
            .putHeader("content-type", "text/plain")
            .end("test");
    }).listen(8080);
    System.out.println("HTTP server started on port 8080");
}

} `

tsegismont commented 6 years ago

I believe this is a duplicate of #117

For the record, which OS do you develop on?

mountdreams commented 6 years ago

i'm using windows 10