{"action":"closed","issue":{"url":"https://api.github.com/repos/jutzig/github-release-plugin/issues/13","labels_url":"https://api.github.com/repos/jutzig/github-release-plugin/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/jutzig/github-release-plugin/issues/13/comments","events_url":"https://api.github.com/repos/jutzig/github-release-plugin/issues/13/events","html_url":"https://github.com/jutzig/github-release-plugin/issues/13","id":66984000,"number":13,"title":"Build fails if artifact exists","user":{"login":"EvgeniGordeev","id":3843966,"avatar_url":"https://avatars.githubusercontent.com/u/3843966?v=3","gravatar_id":"","url":"https://api.github.com/users/EvgeniGordeev","html_url":"https://github.com/EvgeniGordeev","followers_url":"https://api.github.com/users/EvgeniGordeev/followers","following_url":"https://api.github.com/users/EvgeniGordeev/following{/other_user}","gists_url":"https://api.github.com/users/EvgeniGordeev/gists{/gist_id}","starred_url":"https://api.github.com/users/EvgeniGordeev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvgeniGordeev/subscriptions","organizations_url":"https://api.github.com/users/EvgeniGordeev/orgs","repos_url":"https://api.github.com/users/EvgeniGordeev/repos","events_url":"https://api.github.com/users/EvgeniGordeev/events{/privacy}","received_events_url":"https://api.github.com/users/EvgeniGordeev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jutzig/github-release-plugin/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"jutzig","id":1630764,"avatar_url":"https://avatars.githubusercontent.com/u/1630764?v=3","gravatar_id":"","url":"https://api.github.com/users/jutzig","html_url":"https://github.com/jutzig","followers_url":"https://api.github.com/users/jutzig/followers","following_url":"https://api.github.com/users/jutzig/following{/other_user}","gists_url":"https://api.github.com/users/jutzig/gists{/gist_id}","starred_url":"https://api.github.com/users/jutzig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jutzig/subscriptions","organizations_url":"https://api.github.com/users/jutzig/orgs","repos_url":"https://api.github.com/users/jutzig/repos","events_url":"https://api.github.com/users/jutzig/events{/privacy}","received_events_url":"https://api.github.com/users/jutzig/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-07T20:34:05Z","updated_at":"2015-04-07T21:14:00Z","closed_at":"2015-04-07T21:14:00Z","body":"overwriteArtifact is set to false. So I expect kind of message (like for release):\r\n``` Artifact *.zip already exists. Not creating```\r\ninstead of exception\r\n```\r\njava.io.IOException: {\"message\":\"Validation Failed\",\"request_id\":\"950033d3-dd64-11e4-8b9b-7bf14e76e838\",\"documentation_url\":\"https://developer.github.com/v3\",\"errors\":[{\"resource\":\"ReleaseAsset\",\"code\":\"already_exists\",\"field\":\"name\"}]}\r\n\tat org.kohsuke.github.Requester.handleApiError(Requester.java:367)\r\n\tat org.kohsuke.github.Requester._to(Requester.java:202)\r\n\tat org.kohsuke.github.Requester.to(Requester.java:154)\r\n\tat org.kohsuke.github.GHRelease.uploadAsset(GHRelease.java:182)\r\n\tat de.jutzig.github.release.plugin.UploadMojo.execute(UploadMojo.java:173)\r\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\r\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)\r\n\tat org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)\r\n\tat org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)\r\n\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)\r\n\tat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)\r\n\tat org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)\r\n\tat org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)\r\n\tat org.apache.maven.cli.MavenCli.main(MavenCli.java:160)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)\r\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)\r\nCaused by: java.io.IOException: Server returned HTTP response code: 422 for URL: https://uploads.github.com/repos/:user/:repo/releases/1135731/assets?name=name.zip\r\n\tat sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1839)\r\n\tat sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)\r\n\tat sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)\r\n\tat org.kohsuke.github.Requester.parse(Requester.java:323)\r\n\tat org.kohsuke.github.Requester._to(Requester.java:200)\r\n\t... 24 more\r\n```"}}