{"action":"created","issue":{"url":"https://api.github.com/repos/jcabi/jcabi-maven-plugin/issues/40","labels_url":"https://api.github.com/repos/jcabi/jcabi-maven-plugin/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/jcabi/jcabi-maven-plugin/issues/40/comments","events_url":"https://api.github.com/repos/jcabi/jcabi-maven-plugin/issues/40/events","html_url":"https://github.com/jcabi/jcabi-maven-plugin/issues/40","id":114190185,"number":40,"title":"Jar Hell","user":{"login":"benoitdechateauvieux","id":1567831,"avatar_url":"https://avatars.githubusercontent.com/u/1567831?v=3","gravatar_id":"","url":"https://api.github.com/users/benoitdechateauvieux","html_url":"https://github.com/benoitdechateauvieux","followers_url":"https://api.github.com/users/benoitdechateauvieux/followers","following_url":"https://api.github.com/users/benoitdechateauvieux/following{/other_user}","gists_url":"https://api.github.com/users/benoitdechateauvieux/gists{/gist_id}","starred_url":"https://api.github.com/users/benoitdechateauvieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoitdechateauvieux/subscriptions","organizations_url":"https://api.github.com/users/benoitdechateauvieux/orgs","repos_url":"https://api.github.com/users/benoitdechateauvieux/repos","events_url":"https://api.github.com/users/benoitdechateauvieux/events{/privacy}","received_events_url":"https://api.github.com/users/benoitdechateauvieux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-30T03:05:12Z","updated_at":"2015-11-03T03:28:31Z","closed_at":null,"body":"Hi,\r\n\r\nI use the following settings:\r\n```xml\r\n<plugin>\r\n          <groupId>com.jcabi</groupId>\r\n          <artifactId>jcabi-maven-plugin</artifactId>\r\n          <version>${version.jcabi.plugin}</version>\r\n          <executions>\r\n            <execution>\r\n              <id>weave-classes</id>\r\n              <phase>process-classes</phase>\r\n              <goals>\r\n                <goal>ajc</goal>\r\n              </goals>\r\n              <configuration>\r\n                <classesDirectory>${project.build.outputDirectory}</classesDirectory>\r\n              </configuration>\r\n            </execution>\r\n            <execution>\r\n              <id>weave-test-classes</id>\r\n              <phase>process-test-classes</phase>\r\n              <goals>\r\n                <goal>ajc</goal>\r\n              </goals>\r\n              <configuration>\r\n                <classesDirectory>${project.build.testOutputDirectory}</classesDirectory>\r\n              </configuration>\r\n            </execution>\r\n          </executions>\r\n        </plugin>\r\n```\r\n\r\nThe result is:\r\n- all the classes declared in src/main/java are compiled in target/classes\r\n- all the classes declared in src/test/java **and src/main/java** are compiled in target/test-classes\r\n\r\nThis doesn't match the Maven convention (src/main/xxx => target/classes, src/test/xxx => target/test-classes)\r\n\r\nThis jar hell is detected by Elasticsearch BootstrapForTesting tool and thus Elasticsearch refuses to start.\r\n\r\nAm I wrong in the way I setup the plugin ?\r\nI there any way to fix that?\r\nThanks !"},"comment":{"url":"https://api.github.com/repos/jcabi/jcabi-maven-plugin/issues/comments/153231346","html_url":"https://github.com/jcabi/jcabi-maven-plugin/issues/40#issuecomment-153231346","issue_url":"https://api.github.com/repos/jcabi/jcabi-maven-plugin/issues/40","id":153231346,"user":{"login":"yegor256","id":526301,"avatar_url":"https://avatars.githubusercontent.com/u/526301?v=3","gravatar_id":"","url":"https://api.github.com/users/yegor256","html_url":"https://github.com/yegor256","followers_url":"https://api.github.com/users/yegor256/followers","following_url":"https://api.github.com/users/yegor256/following{/other_user}","gists_url":"https://api.github.com/users/yegor256/gists{/gist_id}","starred_url":"https://api.github.com/users/yegor256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yegor256/subscriptions","organizations_url":"https://api.github.com/users/yegor256/orgs","repos_url":"https://api.github.com/users/yegor256/repos","events_url":"https://api.github.com/users/yegor256/events{/privacy}","received_events_url":"https://api.github.com/users/yegor256/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T03:28:30Z","updated_at":"2015-11-03T03:28:30Z","body":"@benoitdechateauvieux indeed, it's a good idea, we'll implement it, thanks"}}