{"action":"created","issue":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-java-client/issues/119","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-java-client/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-java-client/issues/119/comments","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-java-client/issues/119/events","html_url":"https://github.com/rabbitmq/rabbitmq-java-client/pull/119","id":123570619,"number":119,"title":"#37 Migrate build system away from Ant (WIP)","user":{"login":"PatrickSauts","id":1509382,"avatar_url":"https://avatars.githubusercontent.com/u/1509382?v=3","gravatar_id":"","url":"https://api.github.com/users/PatrickSauts","html_url":"https://github.com/PatrickSauts","followers_url":"https://api.github.com/users/PatrickSauts/followers","following_url":"https://api.github.com/users/PatrickSauts/following{/other_user}","gists_url":"https://api.github.com/users/PatrickSauts/gists{/gist_id}","starred_url":"https://api.github.com/users/PatrickSauts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatrickSauts/subscriptions","organizations_url":"https://api.github.com/users/PatrickSauts/orgs","repos_url":"https://api.github.com/users/PatrickSauts/repos","events_url":"https://api.github.com/users/PatrickSauts/events{/privacy}","received_events_url":"https://api.github.com/users/PatrickSauts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"michaelklishin","id":1090,"avatar_url":"https://avatars.githubusercontent.com/u/1090?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelklishin","html_url":"https://github.com/michaelklishin","followers_url":"https://api.github.com/users/michaelklishin/followers","following_url":"https://api.github.com/users/michaelklishin/following{/other_user}","gists_url":"https://api.github.com/users/michaelklishin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelklishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelklishin/subscriptions","organizations_url":"https://api.github.com/users/michaelklishin/orgs","repos_url":"https://api.github.com/users/michaelklishin/repos","events_url":"https://api.github.com/users/michaelklishin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelklishin/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-java-client/milestones/4","html_url":"https://github.com/rabbitmq/rabbitmq-java-client/milestones/n/a","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-java-client/milestones/4/labels","id":1034769,"number":4,"title":"n/a","description":"Not applicable to a specific release","creator":{"login":"dumbbell","id":159804,"avatar_url":"https://avatars.githubusercontent.com/u/159804?v=3","gravatar_id":"","url":"https://api.github.com/users/dumbbell","html_url":"https://github.com/dumbbell","followers_url":"https://api.github.com/users/dumbbell/followers","following_url":"https://api.github.com/users/dumbbell/following{/other_user}","gists_url":"https://api.github.com/users/dumbbell/gists{/gist_id}","starred_url":"https://api.github.com/users/dumbbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumbbell/subscriptions","organizations_url":"https://api.github.com/users/dumbbell/orgs","repos_url":"https://api.github.com/users/dumbbell/repos","events_url":"https://api.github.com/users/dumbbell/events{/privacy}","received_events_url":"https://api.github.com/users/dumbbell/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":71,"state":"closed","created_at":"2015-03-23T17:45:01Z","updated_at":"2015-12-23T15:15:39Z","due_on":null,"closed_at":"2015-03-24T10:00:40Z"},"comments":3,"created_at":"2015-12-22T22:44:06Z","updated_at":"2015-12-23T22:31:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-java-client/pulls/119","html_url":"https://github.com/rabbitmq/rabbitmq-java-client/pull/119","diff_url":"https://github.com/rabbitmq/rabbitmq-java-client/pull/119.diff","patch_url":"https://github.com/rabbitmq/rabbitmq-java-client/pull/119.patch"},"body":"Fixed #37 (at least to a large extent).\r\n\r\nThe tests can be run with `mvn clean test`\r\nor with `ant`, I kept it compatible.\r\n\r\nAnd also with the right `settings.xml` in your `~/.m2` directory like\r\n```\r\n<settings xmlns=\"http://maven.apache.org/SETTINGS/1.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.0.0\r\n                      http://maven.apache.org/xsd/settings-1.0.0.xsd\">\r\n<servers>\r\n    <server>\r\n      <id>sonatype-nexus-staging</id>\r\n      <username>my_login</username>\r\n      <password>my_password</password>\r\n    </server>\r\n  </servers>\r\n</settings>\r\n```\r\nyou can run `mvn clean deploy` that would compile, run the tests, and deploy to the repository if the tests pass.\r\n\r\nI also added maven version plugin, so to set a version you can do it that way\r\n`mvn versions:set -DnewVersion=<new.version> && mvn versions:commit`\r\n\r\nThat's a better alternative than the release plugin.\r\nSo basically to release a new version the maven commands would be:\r\n`mvn versions:set -DnewVersion=<new.version> && mvn versions:commit && mvn clean deploy`\r\n"},"comment":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-java-client/issues/comments/167002698","html_url":"https://github.com/rabbitmq/rabbitmq-java-client/pull/119#issuecomment-167002698","issue_url":"https://api.github.com/repos/rabbitmq/rabbitmq-java-client/issues/119","id":167002698,"user":{"login":"PatrickSauts","id":1509382,"avatar_url":"https://avatars.githubusercontent.com/u/1509382?v=3","gravatar_id":"","url":"https://api.github.com/users/PatrickSauts","html_url":"https://github.com/PatrickSauts","followers_url":"https://api.github.com/users/PatrickSauts/followers","following_url":"https://api.github.com/users/PatrickSauts/following{/other_user}","gists_url":"https://api.github.com/users/PatrickSauts/gists{/gist_id}","starred_url":"https://api.github.com/users/PatrickSauts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PatrickSauts/subscriptions","organizations_url":"https://api.github.com/users/PatrickSauts/orgs","repos_url":"https://api.github.com/users/PatrickSauts/repos","events_url":"https://api.github.com/users/PatrickSauts/events{/privacy}","received_events_url":"https://api.github.com/users/PatrickSauts/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T22:31:46Z","updated_at":"2015-12-23T22:31:46Z","body":"By the way you can also run the perf tests like this\r\n`mvn -q exec:java -Dexec.classpathScope=test -Dexec.mainClass=\"com.rabbitmq.examples.PerfTest\"`\r\n\r\nor with arguments\r\n```\r\nmvn -q exec:java -Dexec.classpathScope=test -Dexec.mainClass=\"com.rabbitmq.examples.PerfTest\" -Dexec.args=\"arg0 arg1 arg2\" \r\n```\r\n\r\nBasically any class with a main inside  package com.rabbitmq.examples without the need to moving any jar around, the classpath is defined by maven.\r\n\r\nI added a `runperftestMaven.sh` and `stresspersisterMaven.sh` inside the script folder.\r\n"}}