{"action":"opened","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-maven-plugin/issues/171","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-maven-plugin/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor-maven-plugin/issues/171/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor-maven-plugin/issues/171/events","html_url":"https://github.com/asciidoctor/asciidoctor-maven-plugin/issues/171","id":107803953,"number":171,"title":"Address already in use error in the AsciidoctorHttpMojoTest","user":{"login":"NicolasGeraud","id":1028285,"avatar_url":"https://avatars.githubusercontent.com/u/1028285?v=3","gravatar_id":"","url":"https://api.github.com/users/NicolasGeraud","html_url":"https://github.com/NicolasGeraud","followers_url":"https://api.github.com/users/NicolasGeraud/followers","following_url":"https://api.github.com/users/NicolasGeraud/following{/other_user}","gists_url":"https://api.github.com/users/NicolasGeraud/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolasGeraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolasGeraud/subscriptions","organizations_url":"https://api.github.com/users/NicolasGeraud/orgs","repos_url":"https://api.github.com/users/NicolasGeraud/repos","events_url":"https://api.github.com/users/NicolasGeraud/events{/privacy}","received_events_url":"https://api.github.com/users/NicolasGeraud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-22T21:12:11Z","updated_at":"2015-09-22T21:12:11Z","closed_at":null,"body":"If port 2000 is used on during maven test phase, the build fail.\r\n\r\nThis port is the default port declared in the [AsciidoctorRefreshMojo](https://github.com/asciidoctor/asciidoctor-maven-plugin/blob/master/src/main/java/org/asciidoctor/maven/AsciidoctorRefreshMojo.java#L45).\r\n\r\nIt could be better to find a random available port on the host, and configure the test to use it.\r\n\r\nThere still a risk that the port became used between the moment we find it and the moment we use it, but it's a more robust test I think.\r\n\r\nPlease share any suggestion before I start hacking it. "}}