<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
- <version>1.8</version>
<executions>
<execution>
<id>aspectj-main</id>
<goal>run</goal>
</goals>
<configuration>
- <target>
- <property name="spring.aspects.jar" value="${settings.localRepository}/org/springframework/spring-aspects/${spring.version}/spring-aspects-${spring.version}.jar" />
+ <tasks>
+ <property name="spring.aspects.jar" value="${settings.localRepository}/org/springframework/org.springframework.aspects/${spring.version}/org.springframework.aspects-${spring.version}.jar" />
<path id="aspectPath">
<pathelement location="${spring.aspects.jar}" />
</path>
<pathelement location="src/main/java" />
</sourceroots>
</iajc>
- </target>
+ </tasks>
</configuration>
</execution>
<execution>
<goal>run</goal>
</goals>
<configuration>
- <target>
+ <tasks>
<taskdef classname="org.aspectj.tools.ant.taskdefs.AjcTask" name="iajc">
<classpath refid="maven.plugin.classpath" />
</taskdef>
<pathelement location="src/test/java" />
</sourceroots>
</iajc>
- </target>
+ </tasks>
</configuration>
</execution>
</executions>