Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3396

Upgrade aspectj-maven-plugin to 1.4

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.2.3.RELEASE
    • Fix Version/s: 1.2.4.RELEASE
    • Component/s: @ CORE
    • Labels:
      None
    • Environment:
      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:

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            eruiz Enrique Ruiz (DiSiD)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: