{"id":82,"date":"2011-04-14T19:14:17","date_gmt":"2011-04-15T01:14:17","guid":{"rendered":"http:\/\/sha.nnoncarey.com\/blog\/?p=82"},"modified":"2012-11-16T18:10:21","modified_gmt":"2012-11-17T00:10:21","slug":"aspectj-with-intellij-idea","status":"publish","type":"post","link":"https:\/\/sha.nnoncarey.com\/blog\/archives\/82","title":{"rendered":"AspectJ with IntelliJ IDEA"},"content":{"rendered":"<p>So you&#8217;re trying to use AspectJ in a Maven project with IntelliJ IDEA. You add the basic dependency and plugin to your POM file, when IDEA gives you this message:<\/p>\n<blockquote><p>\nIDEA was unable to find AspectJ compiler JAR among plugin dependencies.<br \/>\nPlease check Settings | Compiler | Java Compiler\n<\/p><\/blockquote>\n<p>The solution is to add a dependency on aspectjtools. For example:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&amp;lt;dependency&amp;gt;\r\n    &amp;lt;groupId&amp;gt;org.aspectj&amp;lt;\/groupId&amp;gt;\r\n    &amp;lt;artifactId&amp;gt;aspectjtools&amp;lt;\/artifactId&amp;gt;\r\n    &amp;lt;version&amp;gt;1.6.9&amp;lt;\/version&amp;gt;\r\n&amp;lt;\/dependency&amp;gt;\r\n<\/pre>\n<p>When IDEA imports the POM changes it will automatically set the AJC compiler and perform some extra indexing work, and then you&#8217;re done!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you&#8217;re trying to use AspectJ in a Maven project with IntelliJ IDEA. You add the basic dependency and plugin to your POM file, when IDEA gives you this message: IDEA was unable to find AspectJ compiler JAR among plugin dependencies. Please check Settings | Compiler | Java Compiler The solution is to add a &hellip; <a href=\"https:\/\/sha.nnoncarey.com\/blog\/archives\/82\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;AspectJ with IntelliJ IDEA&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":4,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":196,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/posts\/82\/revisions\/196"}],"wp:attachment":[{"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sha.nnoncarey.com\/blog\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}