{"action":"opened","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/990","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/990/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/990/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/990/events","html_url":"https://github.com/bazelbuild/bazel/issues/990","id":137372305,"number":990,"title":"maven_jar forces ijar usage","user":{"login":"johnynek","id":67958,"avatar_url":"https://avatars.githubusercontent.com/u/67958?v=3","gravatar_id":"","url":"https://api.github.com/users/johnynek","html_url":"https://github.com/johnynek","followers_url":"https://api.github.com/users/johnynek/followers","following_url":"https://api.github.com/users/johnynek/following{/other_user}","gists_url":"https://api.github.com/users/johnynek/gists{/gist_id}","starred_url":"https://api.github.com/users/johnynek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnynek/subscriptions","organizations_url":"https://api.github.com/users/johnynek/orgs","repos_url":"https://api.github.com/users/johnynek/repos","events_url":"https://api.github.com/users/johnynek/events{/privacy}","received_events_url":"https://api.github.com/users/johnynek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-29T20:58:22Z","updated_at":"2016-02-29T20:58:22Z","closed_at":null,"body":"When you add a maven_jar, it adds a java_import rule that exports the jar.\r\n\r\nThe problem is that in scala, macros are code in jars that is run at compile time. So, using ijar on them breaks compilation.\r\n\r\nWhat we need is a way in maven_jar to control this.\r\n\r\nOne possibility is to add the ability to pass the BUILD to the rule, but to use this from java would mean solving #970 \r\n\r\nthe work around now is to use http_file and special case handling that in the scala.bzl rules:\r\n\r\nhttps://github.com/bazelbuild/rules_scala/blob/master/scala/scala.bzl#L185"}}