Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Complete
-
1.2.3.RELEASE
-
None
-
Java 6
Description
As Alan said in https://jira.springsource.org/browse/ROO-3121 , aspectj-maven-plugin 1.4 has an issue with implementing interfaces via ITDs (ie declare parents). Try the Roo pizzashop sample with the aspectj-maven-plugin set to 1.4 to see the issue.
I have tested Tim's workaround (see https://jira.springsource.org/browse/ROO-3121) on pizzashop sample and it works fine, so I think Roo could use aspectj-maven-plugin 1.4 including Tim's workaround.
The aspectj-maven-plugin config that works for pizzashop sample is:
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>aspectj-maven-plugin</artifactId> <version>1.4</version> <dependencies> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjrt</artifactId> <version>${aspectj.version}</version> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjtools</artifactId> <version>${aspectj.version}</version> </dependency> </dependencies> <executions> <execution> <phase>process-sources</phase> <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> <source>${java.version}</source> <target>${java.version}</target> <weaveWithAspectsInMainSourceFolder>false</weaveWithAspectsInMainSourceFolder> </configuration> </plugin>
Notes about this config:
- It includes the workaround at https://jira.springsource.org/browse/ROO-3121)
- It was generated with Roo 1.2.4-SNAPSHOT