[
https://jira.codehaus.org/browse/MASPECTJ-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=286688#comment-286688
]
Oliver Boehm commented on MASPECTJ-92:
--------------------------------------
As a workaround (as discussed on
http://stackoverflow.com/questions/2610633/maven-compile-aspectj-project-containing-java-1-6-source)
I bound the AspectJ plugin to the process-sources phase:
<execution>
<phase>process-sources</phase>
<goals>
<goal>compile</goal>
<goal>test-compile</goal>
</goals>
</execution>
With this workaround I succeed to use the actual aspectj-maven-plugin 1.4
> no weaving in phase "test-compile" after upgrade from 1.2 to 1.3
> ----------------------------------------------------------------
>
> Key: MASPECTJ-92
> URL: https://jira.codehaus.org/browse/MASPECTJ-92
> Project: Mojo AspectJ Plugin
> Issue Type: Bug
> Affects Versions: 1.3
> Environment: MacOS 10.6.5
> Reporter: Oliver Boehm
> Priority: Critical
> Attachments: demo.zip
>
>
> After upgrading from 1.2 to 1.3 our Maven builds failed. It seems that 'mvn
> test-compile' fails because the aspects are not weaved to the test classes.
> I stripped down the problem to a simple demo project which is attached
> (demo.zip). If you switch the aspectj-maven-plugin to version 1.2 you will
> see that 'mvn test-compile' will work. With 1.3 you will get a compiler error.
--
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