Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
improved xml formatting
Source Link
Kristijan Iliev
  • 5k
  • 10
  • 32
  • 52

I think I was missing aspectj-maven-plugin. It required for spring to weaving of aspects. None tutorial provide this information though. Added following to my pom.xml. `

 <plugin>   <groupId>org.codehaus.mojo</groupId>   <artifactId>aspectj-maven-plugin</artifactId>   <version>1.0</version>   <dependencies>   <dependency>   <groupId>org.aspectj</groupId>   <artifactId>aspectjrt</artifactId>   <version>1.6.1</version>   </dependency>   <dependency>   <groupId>org.aspectj</groupId>   <artifactId>aspectjtools</artifactId>   <version>1.6.1</version>   </dependency>   </dependencies>   <executions>   <execution>   <goals>   <goal>compile</goal>   <goal>test-compile</goal>   </goals>   </execution>   </executions>   <configuration>   <outxml>true</outxml>   <verbose>true</verbose>   <showWeaveInfo>true</showWeaveInfo>   <aspectLibraries>   <aspectLibrary>   <groupId>org.springframework</groupId>   <artifactId>spring-aspects</artifactId>   </aspectLibrary>   </aspectLibraries>   <source>1.6</source>   <target>1.6</target>   </configuration>  </plugin>` plugin> 

I think I was missing aspectj-maven-plugin. It required for spring to weaving of aspects. None tutorial provide this information though. Added following to my pom.xml. `

 <plugin>   <groupId>org.codehaus.mojo</groupId>   <artifactId>aspectj-maven-plugin</artifactId>   <version>1.0</version>   <dependencies>   <dependency>   <groupId>org.aspectj</groupId>   <artifactId>aspectjrt</artifactId>   <version>1.6.1</version>   </dependency>   <dependency>   <groupId>org.aspectj</groupId>   <artifactId>aspectjtools</artifactId>   <version>1.6.1</version>   </dependency>   </dependencies>   <executions>   <execution>   <goals>   <goal>compile</goal>   <goal>test-compile</goal>   </goals>   </execution>   </executions>   <configuration>   <outxml>true</outxml>   <verbose>true</verbose>   <showWeaveInfo>true</showWeaveInfo>   <aspectLibraries>   <aspectLibrary>   <groupId>org.springframework</groupId>   <artifactId>spring-aspects</artifactId>   </aspectLibrary>   </aspectLibraries>   <source>1.6</source>   <target>1.6</target>   </configuration>  </plugin>`  

I think I was missing aspectj-maven-plugin. It required for spring to weaving of aspects. None tutorial provide this information though. Added following to my pom.xml.

<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>aspectj-maven-plugin</artifactId> <version>1.0</version> <dependencies> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjrt</artifactId> <version>1.6.1</version> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjtools</artifactId> <version>1.6.1</version> </dependency> </dependencies> <executions> <execution> <goals> <goal>compile</goal> <goal>test-compile</goal> </goals> </execution> </executions> <configuration> <outxml>true</outxml> <verbose>true</verbose> <showWeaveInfo>true</showWeaveInfo> <aspectLibraries> <aspectLibrary> <groupId>org.springframework</groupId> <artifactId>spring-aspects</artifactId> </aspectLibrary> </aspectLibraries> <source>1.6</source> <target>1.6</target> </configuration> </plugin> 
Source Link
bhavin
  • 347
  • 1
  • 2
  • 9

Finally SOLVED it.

I think I was missing aspectj-maven-plugin. It required for spring to weaving of aspects. None tutorial provide this information though. Added following to my pom.xml. `

 <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>aspectj-maven-plugin</artifactId> <version>1.0</version> <dependencies> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjrt</artifactId> <version>1.6.1</version> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjtools</artifactId> <version>1.6.1</version> </dependency> </dependencies> <executions> <execution> <goals> <goal>compile</goal> <goal>test-compile</goal> </goals> </execution> </executions> <configuration> <outxml>true</outxml> <verbose>true</verbose> <showWeaveInfo>true</showWeaveInfo> <aspectLibraries> <aspectLibrary> <groupId>org.springframework</groupId> <artifactId>spring-aspects</artifactId> </aspectLibrary> </aspectLibraries> <source>1.6</source> <target>1.6</target> </configuration> </plugin>` 

Thanks guys