AspectJ 1.7 problems

Hello I am trying to compile an Amazon Work Flow application, which requires AspectJ.  I am having trouble getting it to compile.  My code contains Java 7 syntax such as switches with string cases which are not supported.

My project is imported from Maven, and the Maven build works (see the POM below)

I notice that my POM file specifies 1.4, but when I try to set that in Compiler Settings, it doesn't work.  I think this is because IntelliJ is using an old version of ajc.  

But when I download the latest version AspectJ 1.7.3, Released 13 Jun 2013, and point the IntelliJ AJC path to it, IntelliJ doesn't like it.

Does IntelliJ support the latest versions of AJC?  How can I get it to compile my code?

Thank you
Peter

Here is the plug-in in my POM.XML

            <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>aspectj-maven-plugin</artifactId>
                 <version>1.4</version>
                 <configuration>
                     <source>1.7</source>
                     <target>1.7</target>
                     <complianceLevel>1.7.0</complianceLevel>
                     <showWeaveInfo>true</showWeaveInfo>
                     <verbose>true</verbose>
                     <sources>
                         <source>
                             <basedir>${project.basedir}/src/main/java</basedir>
                             <includes>
                                 <include>**/*Workflow.java</include>
                                 <include>**/*Activities.java</include>
                             </includes>
                         </source>
                     </sources>
                     <aspectLibraries>
                         <aspectLibrary>
                             <groupId>com.amazonaws</groupId>
                             <artifactId>aws-java-sdk</artifactId>
                         </aspectLibrary>
                     </aspectLibraries>
                 </configuration>
                 <executions>
                     <execution>
                         <goals>
                             <goal>compile</goal>
                             <goal>test-compile</goal>
                         </goals>
                     </execution>
                 </executions>
             </plugin>
         </plugins>

Please sign in to leave a comment.