{"action":"created","issue":{"url":"https://api.github.com/repos/iluwatar/java-design-patterns/issues/397","repository_url":"https://api.github.com/repos/iluwatar/java-design-patterns","labels_url":"https://api.github.com/repos/iluwatar/java-design-patterns/issues/397/labels{/name}","comments_url":"https://api.github.com/repos/iluwatar/java-design-patterns/issues/397/comments","events_url":"https://api.github.com/repos/iluwatar/java-design-patterns/issues/397/events","html_url":"https://github.com/iluwatar/java-design-patterns/pull/397","id":139076426,"number":397,"title":"Lock Pattern #71: Added mutex and semaphore modules to demonstrate locks ","user":{"login":"gwildor28","id":16000365,"avatar_url":"https://avatars.githubusercontent.com/u/16000365?v=3","gravatar_id":"","url":"https://api.github.com/users/gwildor28","html_url":"https://github.com/gwildor28","followers_url":"https://api.github.com/users/gwildor28/followers","following_url":"https://api.github.com/users/gwildor28/following{/other_user}","gists_url":"https://api.github.com/users/gwildor28/gists{/gist_id}","starred_url":"https://api.github.com/users/gwildor28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwildor28/subscriptions","organizations_url":"https://api.github.com/users/gwildor28/orgs","repos_url":"https://api.github.com/users/gwildor28/repos","events_url":"https://api.github.com/users/gwildor28/events{/privacy}","received_events_url":"https://api.github.com/users/gwildor28/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/iluwatar/java-design-patterns/labels/under%20review","name":"under review","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-07T19:53:22Z","updated_at":"2016-03-30T08:11:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/iluwatar/java-design-patterns/pulls/397","html_url":"https://github.com/iluwatar/java-design-patterns/pull/397","diff_url":"https://github.com/iluwatar/java-design-patterns/pull/397.diff","patch_url":"https://github.com/iluwatar/java-design-patterns/pull/397.patch"},"body":"Added two modules to demonstrate locks.\r\n\r\nMutex demonstrates a simple mutual exclusion lock. This is a binary lock which only allows one thread at a time to access the resource. See: [Locks on Wikipedia](https://en.wikipedia.org/wiki/Lock_(computer_science))\r\n\r\nSemaphore demonstrates a semaphore for controlling access to a pool of resources. See [Semaphores on Wikipedia](https://en.wikipedia.org/wiki/Semaphore_(programming))\r\n\r\nThe main class of both programs is App.java.\r\n\r\nI haven't created any documentation yet. Let me know if you want any changes or need some explanations of the code, etc. "},"comment":{"url":"https://api.github.com/repos/iluwatar/java-design-patterns/issues/comments/203311313","html_url":"https://github.com/iluwatar/java-design-patterns/pull/397#issuecomment-203311313","issue_url":"https://api.github.com/repos/iluwatar/java-design-patterns/issues/397","id":203311313,"user":{"login":"gwildor28","id":16000365,"avatar_url":"https://avatars.githubusercontent.com/u/16000365?v=3","gravatar_id":"","url":"https://api.github.com/users/gwildor28","html_url":"https://github.com/gwildor28","followers_url":"https://api.github.com/users/gwildor28/followers","following_url":"https://api.github.com/users/gwildor28/following{/other_user}","gists_url":"https://api.github.com/users/gwildor28/gists{/gist_id}","starred_url":"https://api.github.com/users/gwildor28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwildor28/subscriptions","organizations_url":"https://api.github.com/users/gwildor28/orgs","repos_url":"https://api.github.com/users/gwildor28/repos","events_url":"https://api.github.com/users/gwildor28/events{/privacy}","received_events_url":"https://api.github.com/users/gwildor28/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T08:11:40Z","updated_at":"2016-03-30T08:11:40Z","body":"I've merged your code into my branch, unfortunately Maven is complaining of problems in project dao. The first issue is a missing version tag in the pom.xml file, for junit-hierarchicalcontextrunner. Even after putting the tag in the file, Maven fails the tests for this project:\r\n\r\ncom.iluwatar.dao.AppTest - fails with a java.io.IOException related to the location of the database\r\ncom.iluwatar.dao.InMemoryCustomerDaoTest and com.iluwatar.dao.DbCustomerDaoTest - fail with java.lang.NoClassDefFoundError related to org/junit/internal/runners/rules/RuleFieldValidator\r\nand de.bechte.junit.runners.validation.RuleValidator\r\n\r\nHave you added any requirements for other software to be installed on this system?\r\nThe error in the pom.xml is the same problem that is failing the checks for this pull request"}}