[
https://jira.codehaus.org/browse/MASPECTJ-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292034#comment-292034
]
Robert Scholte commented on MASPECTJ-108:
-----------------------------------------
The [project
dependencies|http://mojo.codehaus.org/aspectj-maven-plugin/dependencies.html]
shows that the plugin still depends on aspectj-1.6.11, although IIRC the trunk
already uses a newer 1.6.x version.
It looks like there's no 1.7 version in Maven central yet. If you need it now,
you have to install a milestone version of aspectj in your repository. With a
bit of luck you don't have to touch the code of the plugin, only define the new
dependencies.
> Java 1.7 source code not supported
> ----------------------------------
>
> Key: MASPECTJ-108
> URL: https://jira.codehaus.org/browse/MASPECTJ-108
> Project: Mojo AspectJ Plugin
> Issue Type: New Feature
> Affects Versions: 1.4
> Reporter: Camilo Horovitz
>
> When trying to set the source code to 1.7 the plugin ignores it and uses a
> lower than 1.5 source code compliance level (that is, it treats code with
> generics as an error). This prevents me from using the new 1.7 features such
> as the switch statement with strings, or the try-with-resources.
> My plugin configuration is this:
> {code}
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>aspectj-maven-plugin</artifactId>
> <version>1.4</version>
> <executions>
> <execution>
> <goals>
> <goal>compile</goal>
> <goal>test-compile</goal>
> </goals>
> </execution>
> </executions>
> <configuration>
> <outxml>true</outxml>
> <aspectLibraries>
> <aspectLibrary>
> <groupId>org.springframework</groupId>
> <artifactId>spring-aspects</artifactId>
> </aspectLibrary>
> </aspectLibraries>
> <weaveDependencies>
> <weaveDependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-aspects</artifactId>
> </weaveDependency>
> </weaveDependencies>
> <source>1.6</source>
> <target>1.6</target>
> </configuration>
> </plugin>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email